	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_sysctl
_do_sysctl:                             ## @do_sysctl
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	movl	$0, %eax
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	testq	%rcx, %rcx
	setne	%r15b
	je	LBB0_2
## %bb.1:
	movq	_CAP_SYSCTL_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movq	_CAP_SYSCTL_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_4:
	orl	%eax, %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_nvlist_add_number
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	sete	%r13b
	andb	%r15b, %r13b
	cmpb	$1, %r13b
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_nvlist_add_null
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_6:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_8
## %bb.7:
	movl	(%r15), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_nvlist_add_number
LBB0_8:
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_nvlist_add_binary
LBB0_10:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_cap_xfer_nvlist
	movl	$-1, %r12d
	testq	%rax, %rax
	je	LBB0_20
## %bb.11:
	movq	%rax, %r14
	leaq	L_.str.4(%rip), %rsi
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_dnvlist_get_number
	movq	%rax, %rbx
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_nvlist_destroy
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	jmp	LBB0_20
LBB0_13:
	testb	%r13b, %r13b
	je	LBB0_15
## %bb.14:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_nvlist_get_number
	jmp	LBB0_18
LBB0_15:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.16:
	leaq	L_.str.5(%rip), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	_nvlist_get_binary
	movq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_memcpy
	testq	%r15, %r15
	je	LBB0_19
## %bb.17:
	movq	-56(%rbp), %rax
LBB0_18:
	movq	%rax, (%r15)
LBB0_19:
	movq	%r14, %rdi
	callq	_nvlist_destroy
	xorl	%r12d, %r12d
LBB0_20:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAP_SYSCTL_READ,8,3            ## @CAP_SYSCTL_READ
	.comm	_CAP_SYSCTL_WRITE,8,3           ## @CAP_SYSCTL_WRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"operation"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"newp"

L_.str.4:                               ## @.str.4
	.asciz	"error"

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

	.no_dead_strip	_do_sysctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_sysctl
_do_sysctl:                             ; @do_sysctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x5
	mov	x24, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	cmp	x3, #0
	cset	w25, ne
Lloh0:
	adrp	x8, _CAP_SYSCTL_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAP_SYSCTL_READ@GOTPAGEOFF]
Lloh2:
	adrp	x9, _CAP_SYSCTL_WRITE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CAP_SYSCTL_WRITE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	csel	w8, w8, wzr, ne
	cmp	x4, #0
	csel	w9, wzr, w9, eq
	orr	w2, w9, w8
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_nvlist_add_number
	cmp	x20, #0
	cset	w8, eq
	and	w25, w8, w25
	cmp	w25, #1
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_nvlist_add_null
	b	LBB0_4
LBB0_2:
	cbz	x19, LBB0_4
; %bb.3:
	ldr	w2, [x19]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_nvlist_add_number
LBB0_4:
	cbz	x24, LBB0_6
; %bb.5:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x2, x24
	mov	x3, x23
	bl	_nvlist_add_binary
LBB0_6:
	mov	x0, x22
	mov	x1, x21
	bl	_cap_xfer_nvlist
	cbz	x0, LBB0_9
; %bb.7:
	mov	x21, x0
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w2, #0
	bl	_dnvlist_get_number
	mov	x22, x0
	cbz	w22, LBB0_10
; %bb.8:
	mov	x0, x21
	bl	_nvlist_destroy
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	str	w22, [x8]
LBB0_9:
	mov	w0, #-1
	b	LBB0_17
LBB0_10:
	cbz	w25, LBB0_12
; %bb.11:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_nvlist_get_number
	b	LBB0_15
LBB0_12:
	cbz	x20, LBB0_16
; %bb.13:
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x2, sp, #8
	mov	x0, x21
	bl	_nvlist_get_binary
	mov	x1, x0
	ldr	x2, [sp, #8]
	mov	x0, x20
	bl	_memcpy
	cbz	x19, LBB0_16
; %bb.14:
	ldr	x0, [sp, #8]
LBB0_15:
	str	x0, [x19]
LBB0_16:
	mov	x0, x21
	bl	_nvlist_destroy
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_CAP_SYSCTL_READ,8,3            ; @CAP_SYSCTL_READ
	.comm	_CAP_SYSCTL_WRITE,8,3           ; @CAP_SYSCTL_WRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"operation"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"newp"

l_.str.4:                               ; @.str.4
	.asciz	"error"

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

	.no_dead_strip	_do_sysctl
.subsections_via_symbols
