	.file	"504768.c"
	.intel_syntax noprefix
	.text
	.local	sbuf
	.comm	sbuf,1024,32
	.section	.rodata
.LC0:
	.string	"usage: kenv [-h] [variable]\n"
	.text
	.type	usage, @function
usage:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.section	.rodata
.LC1:
	.string	"h"
.LC2:
	.string	"kern.environment"
	.align 8
.LC3:
	.string	"cannot find kern.environment base sysctl OID"
	.align 8
.LC4:
	.string	"kern.environment base OID too large"
.LC5:
	.string	"sysctl kern.environment.%d\n"
	.align 8
.LC6:
	.string	"malformed environment string: %s\n"
.LC7:
	.string	"hint."
.LC8:
	.string	"%s=\""
.LC9:
	.string	"\""
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 136
	.cfi_offset 3, -24
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -128[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	jmp	.L3
.L5:
	cmp	DWORD PTR -120[rbp], 104
	jne	.L4
	add	DWORD PTR -128[rbp], 1
	jmp	.L3
.L4:
	call	usage
.L3:
	mov	rcx, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR -132[rbp]
	lea	rdx, .LC1[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -120[rbp], eax
	cmp	DWORD PTR -120[rbp], -1
	jne	.L5
	mov	eax, DWORD PTR optind[rip]
	sub	DWORD PTR -132[rbp], eax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -144[rbp], rax
	cmp	DWORD PTR -132[rbp], 0
	jle	.L6
	mov	rax, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -96[rbp], rax
	add	QWORD PTR -144[rbp], 8
	sub	DWORD PTR -132[rbp], 1
.L6:
	cmp	DWORD PTR -132[rbp], 0
	jle	.L7
	call	usage
.L7:
	lea	rax, -64[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	__arysize@PLT
	cdqe
	mov	QWORD PTR -112[rbp], rax
	lea	rdx, -112[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	sysctlnametomib@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	je	.L8
	lea	rsi, .LC3[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L8:
	mov	rax, QWORD PTR -112[rbp]
	lea	rbx, 1[rax]
	lea	rax, -64[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	__arysize@PLT
	cdqe
	cmp	rbx, rax
	jb	.L9
	lea	rsi, .LC4[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L9:
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR -64[rbp+rax*4], 0
	mov	DWORD PTR -124[rbp], 0
.L24:
	mov	rax, QWORD PTR -112[rbp]
	lea	rdx, 1[rax]
	mov	eax, DWORD PTR -124[rbp]
	mov	DWORD PTR -64[rbp+rdx*4], eax
	mov	QWORD PTR -104[rbp], 1023
	mov	rax, QWORD PTR -112[rbp]
	add	eax, 2
	mov	esi, eax
	lea	rdx, -104[rbp]
	lea	rax, -64[rbp]
	mov	r9d, 0
	mov	r8d, 0
	mov	rcx, rdx
	lea	rdx, sbuf[rip]
	mov	rdi, rax
	call	sysctl@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	jns	.L10
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	je	.L27
	mov	eax, DWORD PTR -124[rbp]
	mov	edx, eax
	lea	rsi, .LC5[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L10:
	mov	BYTE PTR sbuf[rip+1023], 0
	mov	esi, 61
	lea	rdi, sbuf[rip]
	call	strchr@PLT
	mov	QWORD PTR -80[rbp], rax
	cmp	QWORD PTR -80[rbp], 0
	jne	.L13
	lea	rdx, sbuf[rip]
	lea	rsi, .LC6[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L13:
	lea	rax, sbuf[rip]
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 1
	mov	QWORD PTR -88[rbp], rax
	cmp	QWORD PTR -96[rbp], 0
	je	.L14
	mov	rdx, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L28
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	puts@PLT
	jmp	.L12
.L14:
	cmp	DWORD PTR -128[rbp], 0
	je	.L17
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, 5
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L29
.L17:
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L23:
	mov	rax, QWORD PTR -88[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 34
	je	.L19
	cmp	eax, 92
	je	.L20
	jmp	.L26
.L19:
	mov	edi, 92
	call	putchar@PLT
	mov	edi, 34
	call	putchar@PLT
	jmp	.L22
.L20:
	mov	edi, 92
	call	putchar@PLT
	mov	edi, 92
	call	putchar@PLT
	jmp	.L22
.L26:
	mov	rax, QWORD PTR -88[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	nop
.L22:
	add	QWORD PTR -88[rbp], 1
.L18:
	mov	rax, QWORD PTR -88[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L23
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L16
.L28:
	nop
	jmp	.L16
.L29:
	nop
.L16:
	add	DWORD PTR -124[rbp], 1
	jmp	.L24
.L27:
	nop
.L12:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"504768.c"
	.text
	.local	sbuf
	.comm	sbuf,1024,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: kenv [-h] [variable]\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L2+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC1:
	.ascii	"h\000"
	.align	2
.LC2:
	.ascii	"kern.environment\000"
	.align	2
.LC3:
	.ascii	"cannot find kern.environment base sysctl OID\000"
	.align	2
.LC4:
	.ascii	"kern.environment base OID too large\000"
	.align	2
.LC5:
	.ascii	"sysctl kern.environment.%d\012\000"
	.align	2
.LC6:
	.ascii	"malformed environment string: %s\012\000"
	.align	2
.LC7:
	.ascii	"hint.\000"
	.align	2
.LC8:
	.ascii	"%s=\"\000"
	.align	2
.LC9:
	.ascii	"\"\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #108
	str	r0, [fp, #-104]
	str	r1, [fp, #-108]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-88]
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L5
.L7:
	ldr	r3, [fp, #-72]
	cmp	r3, #104
	bne	.L6
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
	b	.L5
.L6:
	bl	usage
.L5:
	ldr	r2, .L32+4
	ldr	r1, [fp, #-108]
	ldr	r0, [fp, #-104]
	bl	getopt
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmn	r3, #1
	bne	.L7
	ldr	r3, .L32+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-104]
	sub	r3, r2, r3
	str	r3, [fp, #-104]
	ldr	r3, .L32+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-108]
	add	r3, r2, r3
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	ble	.L8
	ldr	r3, [fp, #-108]
	ldr	r3, [r3]
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-108]
	add	r3, r3, #4
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-104]
	sub	r3, r3, #1
	str	r3, [fp, #-104]
.L8:
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	ble	.L9
	bl	usage
.L9:
	sub	r3, fp, #56
	mov	r0, r3
	bl	__arysize
	mov	r3, r0
	str	r3, [fp, #-96]
	sub	r2, fp, #96
	sub	r3, fp, #56
	mov	r1, r3
	ldr	r0, .L32+12
	bl	sysctlnametomib
	str	r0, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L10
	ldr	r1, .L32+16
	mov	r0, #1
	bl	err
.L10:
	ldr	r3, [fp, #-96]
	add	r4, r3, #1
	sub	r3, fp, #56
	mov	r0, r3
	bl	__arysize
	mov	r3, r0
	cmp	r4, r3
	bcc	.L11
	ldr	r1, .L32+20
	mov	r0, #1
	bl	errx
.L11:
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-44]
	mov	r3, #0
	str	r3, [fp, #-84]
.L26:
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [fp, #-84]
	str	r2, [r3, #-44]
	ldr	r3, .L32+24
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-96]
	add	r3, r3, #2
	mov	r1, r3
	sub	r3, fp, #92
	sub	r0, fp, #56
	mov	r2, #0
	str	r2, [sp, #4]
	mov	r2, #0
	str	r2, [sp]
	ldr	r2, .L32+28
	bl	sysctl
	str	r0, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bge	.L12
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L29
	ldr	r2, [fp, #-84]
	ldr	r1, .L32+32
	mov	r0, #1
	bl	err
.L12:
	ldr	r3, .L32+28
	mov	r2, #0
	strb	r2, [r3, #1023]
	mov	r1, #61
	ldr	r0, .L32+28
	bl	strchr
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L15
	ldr	r2, .L32+28
	ldr	r1, .L32+36
	mov	r0, #1
	bl	err
.L15:
	ldr	r3, .L32+28
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-64]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	beq	.L16
	ldr	r1, [fp, #-80]
	ldr	r0, [fp, #-60]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	ldr	r0, [fp, #-76]
	bl	puts
	b	.L14
.L16:
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	beq	.L19
	mov	r2, #5
	ldr	r1, .L32+40
	ldr	r0, [fp, #-60]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L31
.L19:
	ldr	r1, [fp, #-60]
	ldr	r0, .L32+44
	bl	printf
	b	.L20
.L25:
	ldr	r3, [fp, #-76]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #34
	beq	.L21
	cmp	r3, #92
	beq	.L22
	b	.L28
.L21:
	mov	r0, #92
	bl	putchar
	mov	r0, #34
	bl	putchar
	b	.L24
.L22:
	mov	r0, #92
	bl	putchar
	mov	r0, #92
	bl	putchar
	b	.L24
.L28:
	ldr	r3, [fp, #-76]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	nop
.L24:
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L20:
	ldr	r3, [fp, #-76]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L25
	ldr	r0, .L32+48
	bl	puts
	b	.L18
.L30:
	nop
	b	.L18
.L31:
	nop
.L18:
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
	b	.L26
.L29:
	nop
.L14:
	mov	r0, #0
	bl	exit
.L33:
	.align	2
.L32:
	.word	.LC10
	.word	.LC1
	.word	optind
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	1023
	.word	sbuf
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
