	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function procstat_getauxv_sysctl
_procstat_getauxv_sysctl:               ## @procstat_getauxv_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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_CTL_KERN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_KERN_PROC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_KERN_PROC_AUXV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	%edi, -52(%rbp)
	movq	_PROC_AUXV_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	shlq	$2, %rbx
	movq	%rbx, -72(%rbp)
	movq	%rbx, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_nitems
	leaq	-72(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.7:
	movq	-72(%rbp), %rax
	shrq	$2, %rax
	movl	%eax, (%r15)
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%r12d, %r12d
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_warn
	jmp	LBB0_8
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_ESRCH@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_6
## %bb.4:
	movq	_EPERM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_warn
LBB0_6:
	movq	%r12, %rdi
	callq	_free
	xorl	%r12d, %r12d
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movq	%r12, %rax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_KERN,4,2                   ## @CTL_KERN
	.comm	_KERN_PROC,4,2                  ## @KERN_PROC
	.comm	_KERN_PROC_AUXV,4,2             ## @KERN_PROC_AUXV
	.comm	_PROC_AUXV_MAX,4,2              ## @PROC_AUXV_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc(%zu)"

	.comm	_errno,8,3                      ## @errno
	.comm	_ESRCH,8,3                      ## @ESRCH
	.comm	_EPERM,8,3                      ## @EPERM
L_.str.1:                               ## @.str.1
	.asciz	"sysctl: kern.proc.auxv: %d: %d"

	.no_dead_strip	_procstat_getauxv_sysctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function procstat_getauxv_sysctl
_procstat_getauxv_sysctl:               ; @procstat_getauxv_sysctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, _CTL_KERN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTL_KERN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _KERN_PROC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _KERN_PROC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #24]
Lloh9:
	adrp	x8, _KERN_PROC_AUXV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KERN_PROC_AUXV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	stp	w8, w0, [sp, #32]
Lloh12:
	adrp	x8, _PROC_AUXV_MAX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PROC_AUXV_MAX@GOTPAGEOFF]
Lloh14:
	ldrsw	x8, [x8]
	lsl	x22, x8, #2
	str	x22, [sp, #16]
	mov	x0, x22
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	add	x0, sp, #24
	bl	_nitems
	mov	x1, x0
	add	x0, sp, #24
	add	x3, sp, #16
	mov	x2, x19
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [sp, #16]
	lsr	x8, x8, #2
	str	w8, [x21]
	b	LBB0_7
LBB0_3:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_warn
	b	LBB0_7
LBB0_4:
Lloh17:
	adrp	x8, _errno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _ESRCH@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ESRCH@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
Lloh23:
	adrp	x10, _EPERM@GOTPAGE
Lloh24:
	ldr	x10, [x10, _EPERM@GOTPAGEOFF]
Lloh25:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_6
; %bb.5:
	str	x8, [sp]
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_warn
LBB0_6:
	mov	x0, x19
	bl	_free
	mov	x19, #0
LBB0_7:
	ldr	x8, [sp, #40]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL_KERN,4,2                   ; @CTL_KERN
	.comm	_KERN_PROC,4,2                  ; @KERN_PROC
	.comm	_KERN_PROC_AUXV,4,2             ; @KERN_PROC_AUXV
	.comm	_PROC_AUXV_MAX,4,2              ; @PROC_AUXV_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc(%zu)"

	.comm	_errno,8,3                      ; @errno
	.comm	_ESRCH,8,3                      ; @ESRCH
	.comm	_EPERM,8,3                      ; @EPERM
l_.str.1:                               ; @.str.1
	.asciz	"sysctl: kern.proc.auxv: %d: %d"

	.no_dead_strip	_procstat_getauxv_sysctl
.subsections_via_symbols
