	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sysctl_command
_sysctl_command:                        ## @sysctl_command
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_30
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_29
LBB0_4:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_sysctl_valid
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_5
LBB0_29:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nametomib                      ## TAILCALL
LBB0_5:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_sysctl_allowed
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_nvlist_get_number
	movl	%eax, %ebx
	movq	_CAP_SYSCTL_WRITE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.8:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_nvlist_exists_binary
	testl	%eax, %eax
	je	LBB0_3
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	leaq	-80(%rbp), %rdx
	movq	%r15, %rdi
	callq	_nvlist_get_binary
	movq	%rax, %r13
	testq	%rax, %rax
	setne	%al
	cmpq	$0, -80(%rbp)
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	jmp	LBB0_11
LBB0_6:
	movq	_ENOTCAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_29
LBB0_10:
	movq	$0, -80(%rbp)
	xorl	%r13d, %r13d
LBB0_11:
	movq	_CAP_SYSCTL_READ@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_19
## %bb.12:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_nvlist_exists_null
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	$0, -56(%rbp)
	leaq	-56(%rbp), %r13
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_20
LBB0_19:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	$0, -56(%rbp)
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
LBB0_20:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_21
## %bb.22:
	leaq	L_.str.8(%rip), %rsi
	leaq	-88(%rbp), %rdx
	movq	%r15, %rdi
	callq	_nvlist_get_binary
	movq	-88(%rbp), %rsi
	shrq	$2, %rsi
	movq	-80(%rbp), %r9
	movq	%rax, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r13, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_sysctl
	testl	%eax, %eax
	je	LBB0_25
LBB0_24:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_29
LBB0_21:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_nvlist_get_string
	movq	-80(%rbp), %r8
	movq	%rax, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_sysctlbyname
	testl	%eax, %eax
	jne	LBB0_24
LBB0_25:
	xorl	%r13d, %r13d
	movq	_CAP_SYSCTL_READ@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_29
## %bb.26:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_nvlist_exists_null
	movq	-56(%rbp), %rcx
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movl	%ecx, %edx
	callq	_nvlist_add_number
	jmp	LBB0_29
LBB0_14:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_nvlist_exists_number
	testl	%eax, %eax
	je	LBB0_3
## %bb.15:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_nvlist_get_number
	movslq	%eax, %rsi
	movq	%rsi, -56(%rbp)
	testl	%esi, %esi
	je	LBB0_3
## %bb.16:
	movl	$1, %edi
	callq	_calloc
	movq	%rax, %rcx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %r13
	jmp	LBB0_20
LBB0_28:
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_nvlist_move_binary
	jmp	LBB0_29
LBB0_18:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sysctlnametomib"

L_.str.1:                               ## @.str.1
	.asciz	"sysctlbyname"

L_.str.2:                               ## @.str.2
	.asciz	"sysctl"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOTCAPABLE,4,2                ## @ENOTCAPABLE
L_.str.3:                               ## @.str.3
	.asciz	"operation"

	.comm	_CAP_SYSCTL_WRITE,4,2           ## @CAP_SYSCTL_WRITE
L_.str.4:                               ## @.str.4
	.asciz	"newp"

	.comm	_CAP_SYSCTL_READ,4,2            ## @CAP_SYSCTL_READ
L_.str.5:                               ## @.str.5
	.asciz	"justsize"

L_.str.6:                               ## @.str.6
	.asciz	"oldlen"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.7:                               ## @.str.7
	.asciz	"name"

L_.str.8:                               ## @.str.8
	.asciz	"mib"

	.comm	_errno,4,2                      ## @errno
L_.str.9:                               ## @.str.9
	.asciz	"oldp"

	.no_dead_strip	_sysctl_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sysctl_command
_sysctl_command:                        ; @sysctl_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.2:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	mov	w1, #0
	bl	_sysctl_valid
	mov	x23, x0
	cbz	w0, LBB0_7
LBB0_5:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_nametomib
LBB0_7:
	mov	x0, x21
	mov	x1, x20
	bl	_sysctl_allowed
	cbz	w0, LBB0_11
; %bb.8:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_nvlist_get_number
	mov	x21, x0
Lloh11:
	adrp	x8, _CAP_SYSCTL_WRITE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CAP_SYSCTL_WRITE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_12
; %bb.9:
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_nvlist_exists_binary
	cbz	w0, LBB0_3
; %bb.10:
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #16
	mov	x0, x20
	bl	_nvlist_get_binary
	mov	x23, x0
	cmp	x0, #0
	ldr	x8, [sp, #16]
	ccmp	x8, #0, #4, ne
	cset	w0, ne
	bl	_assert
	b	LBB0_13
LBB0_11:
Lloh18:
	adrp	x8, _ENOTCAPABLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOTCAPABLE@GOTPAGEOFF]
Lloh20:
	ldr	w23, [x8]
	b	LBB0_5
LBB0_12:
	mov	x23, #0
	str	xzr, [sp, #16]
LBB0_13:
Lloh21:
	adrp	x26, _CAP_SYSCTL_READ@GOTPAGE
Lloh22:
	ldr	x26, [x26, _CAP_SYSCTL_READ@GOTPAGEOFF]
	ldr	w8, [x26]
	tst	w8, w21
	b.eq	LBB0_16
; %bb.14:
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_nvlist_exists_null
	cbz	x0, LBB0_24
; %bb.15:
	mov	x24, #0
	str	xzr, [sp, #24]
	add	x25, sp, #24
	b	LBB0_17
LBB0_16:
	mov	x24, #0
	mov	x25, #0
	str	xzr, [sp, #24]
LBB0_17:
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_20
; %bb.18:
Lloh27:
	adrp	x1, l_.str.8@PAGE
Lloh28:
	add	x1, x1, l_.str.8@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	bl	_nvlist_get_binary
	ldp	x8, x5, [sp, #8]
	lsr	x1, x8, #2
	mov	x2, x24
	mov	x3, x25
	mov	x4, x23
	bl	_sysctl
	cbz	w0, LBB0_21
LBB0_19:
Lloh29:
	adrp	x8, _errno@GOTPAGE
Lloh30:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh31:
	ldr	w23, [x8]
	mov	x0, x24
	bl	_free
	b	LBB0_5
LBB0_20:
Lloh32:
	adrp	x1, l_.str.7@PAGE
Lloh33:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_nvlist_get_string
	ldr	x4, [sp, #16]
	mov	x1, x24
	mov	x2, x25
	mov	x3, x23
	bl	_sysctlbyname
	cbnz	w0, LBB0_19
LBB0_21:
	ldr	w8, [x26]
	tst	w8, w21
	b.eq	LBB0_29
; %bb.22:
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_nvlist_exists_null
	ldr	x3, [sp, #24]
	cbz	x0, LBB0_28
; %bb.23:
Lloh36:
	adrp	x1, l_.str.6@PAGE
Lloh37:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x2, x3
	bl	_nvlist_add_number
	b	LBB0_29
LBB0_24:
Lloh38:
	adrp	x1, l_.str.6@PAGE
Lloh39:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_nvlist_exists_number
	cbz	w0, LBB0_3
; %bb.25:
Lloh40:
	adrp	x1, l_.str.6@PAGE
Lloh41:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_nvlist_get_number
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	str	x1, [sp, #24]
	cbz	w0, LBB0_3
; %bb.26:
	mov	w0, #1
	bl	_calloc
	cbz	x0, LBB0_30
; %bb.27:
	mov	x24, x0
	add	x25, sp, #24
	b	LBB0_17
LBB0_28:
Lloh42:
	adrp	x1, l_.str.9@PAGE
Lloh43:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	mov	x2, x24
	bl	_nvlist_move_binary
LBB0_29:
	mov	w23, #0
	b	LBB0_5
LBB0_30:
Lloh44:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh46:
	ldr	w23, [x8]
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sysctlnametomib"

l_.str.1:                               ; @.str.1
	.asciz	"sysctlbyname"

l_.str.2:                               ; @.str.2
	.asciz	"sysctl"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOTCAPABLE,4,2                ; @ENOTCAPABLE
l_.str.3:                               ; @.str.3
	.asciz	"operation"

	.comm	_CAP_SYSCTL_WRITE,4,2           ; @CAP_SYSCTL_WRITE
l_.str.4:                               ; @.str.4
	.asciz	"newp"

	.comm	_CAP_SYSCTL_READ,4,2            ; @CAP_SYSCTL_READ
l_.str.5:                               ; @.str.5
	.asciz	"justsize"

l_.str.6:                               ; @.str.6
	.asciz	"oldlen"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.7:                               ; @.str.7
	.asciz	"name"

l_.str.8:                               ; @.str.8
	.asciz	"mib"

	.comm	_errno,4,2                      ; @errno
l_.str.9:                               ; @.str.9
	.asciz	"oldp"

	.no_dead_strip	_sysctl_command
.subsections_via_symbols
