	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function image_file_map
_image_file_map:                        ## @image_file_map
	.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, %r13
	movl	%edi, %r14d
	movq	_image_swap_pgsz@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rdi
	movq	%r13, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%r13, %rax
	xorl	%edx, %edx
	divq	%rdi
	movq	%rdx, %r12
	jmp	LBB0_3
LBB0_1:
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%edi
	movl	%edx, %r12d
LBB0_3:
	subq	%r12, %r13
	movq	%r12, (%rcx)
	movq	_secsz@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rsi), %rbx
	cmpq	%rbx, %rax
	cmovaq	%rax, %rbx
	leaq	-1(%rbx), %rax
	xorl	%edi, %edi
	testq	%rax, %rbx
	sete	%dil
	callq	_assert
	movq	_MAP_NOCORE@GOTPCREL(%rip), %rax
	movq	_MAP_NOSYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_MAP_SHARED@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movq	_image_swap_fd@GOTPCREL(%rip), %rsi
	movl	$0, %edx
	cmpl	%r14d, (%rsi)
	jne	LBB0_5
## %bb.4:
	movq	_PROT_WRITE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_5:
	orl	(%rax), %edx
	addq	%r12, %r15
	leaq	(%rbx,%r15), %rax
	decq	%rax
	negq	%rbx
	andq	%rax, %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movl	%r14d, %r8d
	movq	%r13, %r9
	callq	_mmap
	movq	_MAP_FAILED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$0, %ecx
	cmoveq	%rcx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_image_swap_pgsz,8,3            ## @image_swap_pgsz
	.comm	_secsz,8,3                      ## @secsz
	.comm	_MAP_NOCORE,4,2                 ## @MAP_NOCORE
	.comm	_MAP_NOSYNC,4,2                 ## @MAP_NOSYNC
	.comm	_MAP_SHARED,4,2                 ## @MAP_SHARED
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_image_swap_fd,4,2              ## @image_swap_fd
	.comm	_PROT_WRITE,4,2                 ## @PROT_WRITE
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
	.no_dead_strip	_image_file_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function image_file_map
_image_file_map:                        ; @image_file_map
	.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	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _image_swap_pgsz@GOTPAGE
Lloh1:
	ldr	x8, [x8, _image_swap_pgsz@GOTPAGEOFF]
	ldr	x9, [x8]
	udiv	x10, x1, x9
	mul	x21, x10, x9
	sub	x22, x1, x21
	str	x22, [x3]
Lloh2:
	adrp	x9, _secsz@GOTPAGE
Lloh3:
	ldr	x9, [x9, _secsz@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	x8, [x8]
	cmp	x9, x8
	csel	x23, x9, x8, hi
	sub	x8, x23, #1
	tst	x23, x8
	cset	w0, eq
	bl	_assert
Lloh5:
	adrp	x8, _MAP_NOCORE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAP_NOCORE@GOTPAGEOFF]
Lloh7:
	adrp	x9, _MAP_NOSYNC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MAP_NOSYNC@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _MAP_SHARED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MAP_SHARED@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w3, w8, w9
Lloh14:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _image_swap_fd@GOTPAGE
Lloh18:
	ldr	x9, [x9, _image_swap_fd@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _PROT_WRITE@GOTPAGE
Lloh21:
	ldr	x10, [x10, _PROT_WRITE@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	cmp	w9, w20
	csel	w9, w10, wzr, eq
	orr	w2, w9, w8
	add	x8, x19, x22
	add	x8, x8, x23
	sub	x8, x8, #1
	neg	x9, x23
	and	x1, x8, x9
	mov	x0, #0
	mov	x4, x20
	mov	x5, x21
	bl	_mmap
Lloh23:
	adrp	x8, _MAP_FAILED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MAP_FAILED@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x0, x8
	csel	x0, xzr, x0, eq
	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
	ret
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_image_swap_pgsz,8,3            ; @image_swap_pgsz
	.comm	_secsz,8,3                      ; @secsz
	.comm	_MAP_NOCORE,4,2                 ; @MAP_NOCORE
	.comm	_MAP_NOSYNC,4,2                 ; @MAP_NOSYNC
	.comm	_MAP_SHARED,4,2                 ; @MAP_SHARED
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_image_swap_fd,4,2              ; @image_swap_fd
	.comm	_PROT_WRITE,4,2                 ; @PROT_WRITE
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
	.no_dead_strip	_image_file_map
.subsections_via_symbols
