	.file	"extr_kern_sysctl.c_kern___sysctlbyname.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	kern___sysctlbyname
	.type	kern___sysctlbyname, @function
kern___sysctlbyname:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	.cfi_offset 12, -48
	mov	r12, rsi
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 104
	mov	QWORD PTR -104[rbp], rcx
	movsx	rcx, DWORD PTR CTL_MAXNAME[rip]
	mov	QWORD PTR -112[rbp], r8
	mov	rsi, rsp
	mov	r14, QWORD PTR 24[rbp]
	mov	QWORD PTR -120[rbp], r9
	sal	rcx, 2
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	lea	rax, 15[rcx]
	mov	rdx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rdx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L3
.L24:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L24
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L25
.L4:
	lea	r15, 3[rsp]
	mov	rax, r15
	and	r15, -4
	shr	rax, 2
	cmp	QWORD PTR MAXPATHLEN[rip], rbx
	mov	QWORD PTR -128[rbp], rax
	jb	.L14
	test	rbx, rbx
	je	.L14
	mov	QWORD PTR -144[rbp], rcx
	cmp	rbx, 16
	ja	.L26
	lea	r9, -80[rbp]
	mov	rdi, r12
	mov	rdx, rbx
	mov	rsi, r9
	mov	QWORD PTR -136[rbp], r9
	call	copyin@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L27
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L28
	lea	rsp, -40[rbp]
	mov	eax, r12d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	r12d, DWORD PTR EINVAL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rdi, QWORD PTR -128[rbp]
	sub	rsp, 8
	lea	r8, -88[rbp]
	mov	rsi, r15
	mov	eax, DWORD PTR CTL_SYSCTL[rip]
	mov	rcx, QWORD PTR -144[rbp]
	mov	edx, 2
	mov	r9, QWORD PTR -136[rbp]
	mov	DWORD PTR 0[0+rdi*4], eax
	mov	eax, DWORD PTR CTL_SYSCTL_NAME2OID[rip]
	mov	QWORD PTR -88[rbp], rcx
	mov	rcx, r15
	mov	DWORD PTR 4[0+rdi*4], eax
	mov	eax, DWORD PTR 32[rbp]
	mov	rdi, r13
	mov	QWORD PTR -128[rbp], r9
	push	rax
	push	r14
	push	rbx
	call	kernel_sysctl@PLT
	add	rsp, 32
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	r9, QWORD PTR -128[rbp]
	mov	QWORD PTR -136[rbp], r9
.L12:
	mov	eax, DWORD PTR 32[rbp]
	mov	rdx, QWORD PTR [r14]
	mov	rsi, r15
	mov	rdi, r13
	mov	r9d, DWORD PTR 40[rbp]
	mov	r8, QWORD PTR -112[rbp]
	push	rax
	mov	rcx, QWORD PTR -104[rbp]
	shr	rdx, 2
	push	r14
	push	QWORD PTR 16[rbp]
	push	QWORD PTR -120[rbp]
	call	userland_sysctl@PLT
	add	rsp, 32
	mov	r12d, eax
	cmp	rbx, 16
	jbe	.L1
.L9:
	mov	esi, DWORD PTR M_SYSCTL[rip]
	mov	rdi, QWORD PTR -136[rbp]
	call	free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edx, DWORD PTR M_WAITOK[rip]
	mov	esi, DWORD PTR M_SYSCTL[rip]
	mov	rdi, rbx
	call	malloc@PLT
	mov	rdi, r12
	mov	rdx, rbx
	mov	rsi, rax
	mov	QWORD PTR -136[rbp], rax
	call	copyin@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L9
	mov	rdi, QWORD PTR -128[rbp]
	sub	rsp, 8
	lea	r8, -88[rbp]
	mov	rsi, r15
	mov	eax, DWORD PTR CTL_SYSCTL[rip]
	mov	rcx, QWORD PTR -144[rbp]
	mov	edx, 2
	mov	r9, QWORD PTR -136[rbp]
	mov	DWORD PTR 0[0+rdi*4], eax
	mov	eax, DWORD PTR CTL_SYSCTL_NAME2OID[rip]
	mov	QWORD PTR -88[rbp], rcx
	mov	rcx, r15
	mov	DWORD PTR 4[0+rdi*4], eax
	mov	eax, DWORD PTR 32[rbp]
	mov	rdi, r13
	push	rax
	push	r14
	push	rbx
	call	kernel_sysctl@PLT
	add	rsp, 32
	mov	r12d, eax
	test	eax, eax
	jne	.L9
	jmp	.L12
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	kern___sysctlbyname, .-kern___sysctlbyname
	.comm	M_WAITOK,4,4
	.comm	M_SYSCTL,4,4
	.comm	MAXPATHLEN,8,8
	.comm	EINVAL,4,4
	.comm	CTL_SYSCTL_NAME2OID,4,4
	.comm	CTL_SYSCTL,4,4
	.comm	CTL_MAXNAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_kern_sysctl.c_kern___sysctlbyname.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	kern___sysctlbyname
	.syntax unified
	.arm
	.fpu softvfp
	.type	kern___sysctlbyname, %function
kern___sysctlbyname:
	@ args = 24, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #68
	clz	ip, r2
	ldr	lr, .L16
	lsr	ip, ip, #5
	ldr	lr, [lr]
	mov	r7, r3
	cmp	lr, r2
	orrcc	ip, ip, #1
	ldr	r3, .L16+4
	cmp	ip, #0
	ldr	r5, [r3]
	mov	r3, r1
	ldr	r1, .L16+8
	lsl	r5, r5, #2
	ldr	r1, [r1]
	str	r1, [fp, #-40]
	mov	r1,#0
	add	ip, r5, #7
	ldr	r1, [fp, #8]
	bic	ip, ip, #7
	ldr	r9, [fp, #4]
	ldr	r10, [fp, #16]
	sub	sp, sp, ip
	str	r1, [fp, #-64]
	beq	.L2
	ldr	r3, .L16+12
	ldr	r3, [r3]
.L1:
	ldr	r2, .L16+8
	ldr	r1, [r2]
	ldr	r2, [fp, #-40]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L14
	mov	r0, r3
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	cmp	r2, #16
	mov	r4, r2
	mov	r6, r0
	add	r8, sp, #24
	bhi	.L15
	mov	r0, r3
	sub	r1, fp, #56
	bl	copyin
	subs	r3, r0, #0
	bne	.L1
	ldr	r2, .L16+16
	ldr	r3, .L16+20
	ldr	r1, [r2]
	ldr	r3, [r3]
	sub	r2, fp, #60
	stm	r8, {r1, r3}
	ldr	r1, [fp, #20]
	mov	r3, r8
	str	r1, [sp, #16]
	sub	r1, fp, #56
	str	r1, [sp, #4]
	str	r2, [sp]
	mov	r1, r8
	mov	r2, #2
	mov	r0, r6
	str	r10, [sp, #12]
	str	r4, [sp, #8]
	str	r5, [fp, #-60]
	bl	kernel_sysctl
	subs	r3, r0, #0
	subeq	r3, fp, #56
	streq	r3, [fp, #-68]
	bne	.L1
.L8:
	ldr	r3, [fp, #20]
	ldr	r2, [r10]
	str	r3, [sp, #20]
	ldr	r3, [fp, #12]
	mov	r1, r8
	str	r3, [sp, #12]
	ldr	r3, [fp, #-64]
	mov	r0, r6
	str	r3, [sp, #8]
	ldr	r3, [fp, #24]
	str	r10, [sp, #16]
	str	r3, [sp, #4]
	lsr	r2, r2, #2
	mov	r3, r7
	str	r9, [sp]
	bl	userland_sysctl
	cmp	r4, #16
	mov	r3, r0
	bls	.L1
	ldr	r2, .L16+24
	str	r2, [fp, #-72]
.L5:
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-72]
	ldr	r0, [fp, #-68]
	ldr	r1, [r3]
	bl	free
	ldr	r3, [fp, #-64]
	b	.L1
.L15:
	str	r3, [fp, #-76]
	ldr	r2, .L16+28
	ldr	r3, .L16+24
	ldr	r2, [r2]
	ldr	r1, [r3]
	mov	r0, r4
	str	r3, [fp, #-72]
	bl	malloc
	ldr	r3, [fp, #-76]
	mov	r1, r0
	str	r0, [fp, #-68]
	mov	r2, r4
	mov	r0, r3
	bl	copyin
	subs	r3, r0, #0
	bne	.L5
	ldr	r2, .L16+16
	ldr	r3, .L16+20
	ldr	r1, [r2]
	ldr	r3, [r3]
	sub	r2, fp, #60
	stm	r8, {r1, r3}
	ldr	r1, [fp, #20]
	mov	r3, r8
	str	r1, [sp, #16]
	ldr	r1, [fp, #-68]
	str	r2, [sp]
	str	r1, [sp, #4]
	mov	r2, #2
	mov	r1, r8
	mov	r0, r6
	str	r10, [sp, #12]
	str	r4, [sp, #8]
	str	r5, [fp, #-60]
	bl	kernel_sysctl
	subs	r3, r0, #0
	bne	.L5
	b	.L8
.L14:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	MAXPATHLEN
	.word	CTL_MAXNAME
	.word	.LC0
	.word	EINVAL
	.word	CTL_SYSCTL
	.word	CTL_SYSCTL_NAME2OID
	.word	M_SYSCTL
	.word	M_WAITOK
	.size	kern___sysctlbyname, .-kern___sysctlbyname
	.comm	M_WAITOK,4,4
	.comm	M_SYSCTL,4,4
	.comm	MAXPATHLEN,4,4
	.comm	EINVAL,4,4
	.comm	CTL_SYSCTL_NAME2OID,4,4
	.comm	CTL_SYSCTL,4,4
	.comm	CTL_MAXNAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
