	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_phys_buffer
_get_phys_buffer:                       ## @get_phys_buffer
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_nkexec_segments@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	testl	%edx, %edx
	jle	LBB0_5
## %bb.1:
	movq	_loaded_segments@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	16(%rax), %rsi
	xorl	%ecx, %ecx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	addq	$32, %rsi
	cmpq	%rcx, %rdx
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rdi
	cmpq	%rbx, %rdi
	jg	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	-16(%rsi), %rdi
	cmpq	%rbx, %rdi
	jle	LBB0_4
	jmp	LBB0_6
LBB0_5:
	movl	$4194304, %edi                  ## imm = 0x400000
	callq	_host_getmem
	movq	_loaded_segments@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movslq	(%r12), %rdx
	shlq	$5, %rdx
	movq	%rax, 24(%rcx,%rdx)
	movq	(%r13), %rax
	movq	$4194304, 8(%rax,%rdx)          ## imm = 0x400000
	movl	$4194304, %esi                  ## imm = 0x400000
	movq	%rbx, %rdi
	callq	_rounddown2
	movq	(%r13), %rdx
	movslq	(%r12), %rcx
	movq	%rcx, %rsi
	shlq	$5, %rsi
	movq	%rax, 16(%rdx,%rsi)
	movq	(%r13), %rax
	movq	$4194304, (%rax,%rsi)           ## imm = 0x400000
	leal	1(%rcx), %edx
	movl	%edx, (%r12)
LBB0_6:
	shlq	$5, %rcx
	movq	%rbx, %rdx
	subq	16(%rax,%rcx), %rdx
	addq	24(%rax,%rcx), %rdx
	movq	%rdx, (%r15)
	movq	_loaded_segments@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax,%rcx), %rsi
	subq	%rbx, %rsi
	addq	16(%rax,%rcx), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_min                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_nkexec_segments,4,2            ## @nkexec_segments
	.comm	_loaded_segments,8,3            ## @loaded_segments
	.no_dead_strip	_get_phys_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_phys_buffer
_get_phys_buffer:                       ; @get_phys_buffer
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _nkexec_segments@GOTPAGE
Lloh1:
	ldr	x23, [x23, _nkexec_segments@GOTPAGEOFF]
	ldr	w10, [x23]
Lloh2:
	adrp	x22, _loaded_segments@GOTPAGE
Lloh3:
	ldr	x22, [x22, _loaded_segments@GOTPAGEOFF]
	cmp	w10, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x8, #0
	ldr	x9, [x22]
	add	x11, x9, #16
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	add	x11, x11, #32
	cmp	x10, x8
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11]
	cmp	x12, x20
	b.gt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x13, [x11, #-16]
	add	x12, x13, x12
	cmp	x12, x20
	b.le	LBB0_2
	b	LBB0_6
LBB0_5:
	mov	w24, #4194304
	mov	w0, #4194304
	bl	_host_getmem
	ldr	x8, [x22]
	ldrsw	x9, [x23]
	lsl	x9, x9, #5
	add	x8, x8, x9
	str	x0, [x8, #24]
	ldr	x8, [x22]
	add	x8, x8, x9
	str	x24, [x8, #8]
	mov	x0, x20
	mov	w1, #4194304
	bl	_rounddown2
	ldr	x9, [x22]
	ldrsw	x8, [x23]
	lsl	x10, x8, #5
	add	x9, x9, x10
	str	x0, [x9, #16]
	ldr	x9, [x22]
	str	x24, [x9, x10]
	add	w10, w8, #1
	str	w10, [x23]
LBB0_6:
	lsl	x8, x8, #5
	add	x9, x9, x8
	ldp	x9, x10, [x9, #16]
	sub	x9, x20, x9
	add	x9, x10, x9
	str	x9, [x21]
	ldr	x9, [x22]
	add	x8, x9, x8
	ldp	x9, x8, [x8, #8]
	sub	x9, x9, x20
	add	x1, x9, x8
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_min
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_nkexec_segments,4,2            ; @nkexec_segments
	.comm	_loaded_segments,8,3            ; @loaded_segments
	.no_dead_strip	_get_phys_buffer
.subsections_via_symbols
