	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sysctl_dynread                 ## -- Begin function sysctl_dynread
	.p2align	4, 0x90
_sysctl_dynread:                        ## @sysctl_dynread
	.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	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SD_MAXMIB@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movl	%ebx, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%rbx, -72(%rbp)
	movq	_SD_MARGIN@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	leaq	-72(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_sysctlnametomib
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.1:
	movq	_SD_NTRIES@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rcx)
	jle	LBB0_13
## %bb.2:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movabsq	$2951479051793528259, %rbx      ## imm = 0x28F5C28F5C28F5C3
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	leaq	-64(%rbp), %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rdi
	movq	%rdi, %rax
	imulq	%r14, %rax
	shrq	$2, %rax
	movq	%rbx, %r12
	mulq	%rbx
	shrq	$2, %rdx
	addq	%rdx, %rdi
	movq	%rdi, -64(%rbp)
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movq	-72(%rbp), %rsi
	movq	%r13, %rdi
	movq	%rax, %rdx
	leaq	-64(%rbp), %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	cmpl	$-1, %eax
	jne	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_free
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_SD_FACTOR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	imulq	%r14, %rax
	shrq	$2, %rax
	movq	%r12, %rbx
	mulq	%r12
	shrq	$2, %rdx
	addq	%rdx, %r14
	incl	%r15d
	movq	_SD_NTRIES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jl	LBB0_3
	jmp	LBB0_13
LBB0_8:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.9:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
LBB0_11:
	callq	_error
LBB0_12:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.14:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.16:
	movq	-64(%rbp), %rax
	movq	%rax, (%rcx)
LBB0_17:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_13
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SD_MAXMIB,4,2                  ## @SD_MAXMIB
	.comm	_SD_MARGIN,8,3                  ## @SD_MARGIN
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"XXX: SD_MAXMIB too small, please bump!"

	.comm	_SD_NTRIES,4,2                  ## @SD_NTRIES
L_.str.1:                               ## @.str.1
	.asciz	"Out of memory!"

	.comm	_SD_FACTOR,8,3                  ## @SD_FACTOR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sysctl_dynread                 ; -- Begin function sysctl_dynread
	.p2align	2
_sysctl_dynread:                        ; @sysctl_dynread
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _SD_MAXMIB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SD_MAXMIB@GOTPAGEOFF]
Lloh5:
	ldrsw	x12, [x8]
	and	x8, x12, #0xffffffff
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	stur	x12, [x29, #-96]
Lloh8:
	adrp	x8, _SD_MARGIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SD_MARGIN@GOTPAGEOFF]
Lloh10:
	ldr	x22, [x8]
	sub	x2, x29, #96
	mov	x1, x20
	bl	_sysctlnametomib
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.1:
Lloh11:
	adrp	x23, _SD_NTRIES@GOTPAGE
Lloh12:
	ldr	x23, [x23, _SD_NTRIES@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.2:
	mov	w24, #0
	mov	x25, #62915
	movk	x25, #23592, lsl #16
	movk	x25, #49807, lsl #32
	movk	x25, #10485, lsl #48
Lloh13:
	adrp	x26, _errno@GOTPAGE
Lloh14:
	ldr	x26, [x26, _errno@GOTPAGEOFF]
Lloh15:
	adrp	x27, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x27, [x27, _ENOMEM@GOTPAGEOFF]
Lloh17:
	adrp	x28, _SD_FACTOR@GOTPAGE
Lloh18:
	ldr	x28, [x28, _SD_FACTOR@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x1, [x29, #-96]
	sub	x3, x29, #104
	mov	x0, x20
	mov	x2, #0
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x8, [x29, #-104]
	mul	x9, x8, x22
	lsr	x9, x9, #2
	umulh	x9, x9, x25
	add	x0, x8, x9, lsr #2
	stur	x0, [x29, #-104]
	bl	_malloc
	mov	x21, x0
	cbz	x0, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x1, [x29, #-96]
	sub	x3, x29, #104
	mov	x0, x20
	mov	x2, x21
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	cmn	w0, #1
	b.ne	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_free
	ldr	x8, [x26]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x28]
	mul	x8, x8, x22
	lsr	x8, x8, #2
	umulh	x8, x8, x25
	add	x22, x22, x8, lsr #2
	add	w24, w24, #1
	ldr	w8, [x23]
	cmp	w24, w8
	b.lt	LBB0_3
	b	LBB0_10
LBB0_8:
Lloh19:
	adrp	x8, _errno@GOTPAGE
Lloh20:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_10:
	mov	x21, #0
LBB0_11:
	ldur	x8, [x29, #-88]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.12:
	mov	x0, x21
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh30:
	adrp	x0, l_.str.1@PAGE
Lloh31:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
	b	LBB0_11
LBB0_14:
	cbz	x19, LBB0_11
; %bb.15:
	ldur	x8, [x29, #-104]
	str	x8, [x19]
	b	LBB0_11
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_SD_MAXMIB,4,2                  ; @SD_MAXMIB
	.comm	_SD_MARGIN,8,3                  ; @SD_MARGIN
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"XXX: SD_MAXMIB too small, please bump!"

	.comm	_SD_NTRIES,4,2                  ; @SD_NTRIES
l_.str.1:                               ; @.str.1
	.asciz	"Out of memory!"

	.comm	_SD_FACTOR,8,3                  ; @SD_FACTOR
.subsections_via_symbols
