	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function save_int_sysctl
_save_int_sysctl:                       ## @save_int_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	$4, -48(%rbp)
	leaq	-52(%rbp), %r14
	leaq	-48(%rbp), %rdx
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	movq	_errno@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%r12, %rdx
	movl	%eax, %ecx
	callq	_ATF_REQUIRE_MSG
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_WRONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r15, %rdi
	movl	$384, %edx                      ## imm = 0x180
	callq	_open
	movl	%eax, %r12d
	movl	%eax, %ebx
	notl	%ebx
	shrl	$31, %ebx
	movl	(%r13), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_ATF_REQUIRE_MSG
	movq	-48(%rbp), %rdx
	movl	%r12d, %edi
	movq	%r14, %rsi
	callq	_write
	testq	%rax, %rax
	setns	%cl
	cmpq	-48(%rbp), %rax
	sete	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_ATF_REQUIRE
	movl	%r12d, %edi
	callq	_close
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_ATF_REQUIRE
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sysctlbyname(%s): %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
L_.str.1:                               ## @.str.1
	.asciz	"open(%s): %s"

	.no_dead_strip	_save_int_sysctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function save_int_sysctl
_save_int_sysctl:                       ; @save_int_sysctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	mov	w8, #4
	str	x8, [sp, #8]
	add	x1, sp, #4
	add	x2, sp, #8
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	cmp	w0, #0
	cset	w21, eq
Lloh0:
	adrp	x22, _errno@GOTPAGE
Lloh1:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_strerror
	mov	x3, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_ATF_REQUIRE_MSG
Lloh4:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _O_WRONLY@GOTPAGE
Lloh8:
	ldr	x9, [x9, _O_WRONLY@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	mov	w2, #384
	bl	_open
	mov	x20, x0
	mvn	w8, w0
	lsr	w21, w8, #31
	ldr	w0, [x22]
	bl	_strerror
	mov	x3, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_ATF_REQUIRE_MSG
	ldr	x2, [sp, #8]
	add	x1, sp, #4
	mov	x0, x20
	bl	_write
	cmp	x0, #0
	ldr	x8, [sp, #8]
	ccmp	x0, x8, #0, ge
	cset	w0, eq
	bl	_ATF_REQUIRE
	mov	x0, x20
	bl	_close
	cmp	w0, #0
	cset	w0, eq
	bl	_ATF_REQUIRE
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sysctlbyname(%s): %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
l_.str.1:                               ; @.str.1
	.asciz	"open(%s): %s"

	.no_dead_strip	_save_int_sysctl
.subsections_via_symbols
