	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elf64_exec
_elf64_exec:                            ## @elf64_exec
	.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	%rdi, %rbx
	movq	_MODINFOMD_ELFHDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_file_findmetadata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	(%rbx), %edi
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	xorl	%esi, %esi
	movl	$1, %r8d
	callq	_bi_load64
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_PT4@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_bzero
	movq	_PT3@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movl	(%r14), %esi
	callq	_bzero
	movq	_PT2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%r14), %esi
	callq	_bzero
	movq	(%r15), %rdi
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	callq	_VTOP
	movq	_PT4@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx,%r13,4)
	movq	_PG_V@GOTPCREL(%rip), %r15
	orl	(%r15), %eax
	movq	_PG_RW@GOTPCREL(%rip), %r12
	orl	(%r12), %eax
	movq	_PG_U@GOTPCREL(%rip), %r14
	orl	(%r14), %eax
	movl	%eax, (%rcx,%r13,4)
	movq	_PT2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_VTOP
	movq	_PT3@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movl	%eax, (%rdi,%r13,4)
	orl	(%r15), %eax
	orl	(%r12), %eax
	orl	(%r14), %eax
	movl	%eax, (%rdi,%r13,4)
	movq	_PT2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, (%rax,%r13,4)
	movl	(%r15), %ecx
	orl	%ebx, %ecx
	orl	(%r12), %ecx
	movq	_PG_PS@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	orl	(%r14), %ecx
	movl	%ecx, (%rax,%r13,4)
	incq	%r13
	addl	$2097152, %ebx                  ## imm = 0x200000
	cmpq	$512, %r13                      ## imm = 0x200
	jne	LBB0_4
## %bb.5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	_entry_lo@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_dev_cleanup
	movq	_amd64_tramp@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_VTOP
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	movq	%rax, %rdi
	callq	___exec
	leaq	L_.str(%rip), %rdi
	callq	_panic
                                        ## implicit-def: $eax
	jmp	LBB0_6
LBB0_1:
	movq	_EFTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODINFOMD_ELFHDR,4,2           ## @MODINFOMD_ELFHDR
	.comm	_EFTYPE,4,2                     ## @EFTYPE
	.comm	_PT4,8,3                        ## @PT4
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PT3,8,3                        ## @PT3
	.comm	_PT2,8,3                        ## @PT2
	.comm	_PG_V,4,2                       ## @PG_V
	.comm	_PG_RW,4,2                      ## @PG_RW
	.comm	_PG_U,4,2                       ## @PG_U
	.comm	_PG_PS,4,2                      ## @PG_PS
	.comm	_entry_lo,4,2                   ## @entry_lo
	.comm	_entry_hi,4,2                   ## @entry_hi
	.comm	_amd64_tramp,8,3                ## @amd64_tramp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"exec returned"

	.no_dead_strip	_elf64_exec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elf64_exec
_elf64_exec:                            ; @elf64_exec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _MODINFOMD_ELFHDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MODINFOMD_ELFHDR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_file_findmetadata
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w0, [x20]
	add	x2, sp, #12
	add	x3, sp, #8
	mov	w1, #0
	mov	w4, #1
	bl	_bi_load64
	cbnz	w0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x20, _PT4@GOTPAGE
Lloh4:
	ldr	x20, [x20, _PT4@GOTPAGEOFF]
	ldr	x0, [x20]
Lloh5:
	adrp	x23, _PAGE_SIZE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_bzero
Lloh7:
	adrp	x21, _PT3@GOTPAGE
Lloh8:
	ldr	x21, [x21, _PT3@GOTPAGEOFF]
	ldr	x0, [x21]
	ldr	w1, [x23]
	bl	_bzero
Lloh9:
	adrp	x22, _PT2@GOTPAGE
Lloh10:
	ldr	x22, [x22, _PT2@GOTPAGEOFF]
	ldr	x0, [x22]
	ldr	w1, [x23]
	bl	_bzero
	mov	x23, #0
	mov	w24, #0
	ldr	x0, [x21]
Lloh11:
	adrp	x25, _PG_V@GOTPAGE
Lloh12:
	ldr	x25, [x25, _PG_V@GOTPAGEOFF]
Lloh13:
	adrp	x26, _PG_RW@GOTPAGE
Lloh14:
	ldr	x26, [x26, _PG_RW@GOTPAGEOFF]
Lloh15:
	adrp	x27, _PG_U@GOTPAGE
Lloh16:
	ldr	x27, [x27, _PG_U@GOTPAGEOFF]
Lloh17:
	adrp	x28, _PG_PS@GOTPAGE
Lloh18:
	ldr	x28, [x28, _PG_PS@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_VTOP
	ldr	x8, [x20]
	str	w0, [x8, x23]
	ldr	w9, [x25]
	ldr	w10, [x26]
	ldr	w11, [x27]
	orr	w9, w9, w0
	orr	w9, w9, w10
	orr	w9, w9, w11
	str	w9, [x8, x23]
	ldr	x0, [x22]
	bl	_VTOP
	mov	x8, x0
	ldr	x0, [x21]
	str	w8, [x0, x23]
	ldr	w9, [x25]
	ldr	w10, [x26]
	ldr	w11, [x27]
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w8, w8, w11
	str	w8, [x0, x23]
	ldr	x8, [x22]
	str	w24, [x8, x23]
	ldr	w9, [x25]
	ldr	w10, [x26]
	ldr	w11, [x28]
	ldr	w12, [x27]
	orr	w9, w9, w24
	orr	w9, w9, w10
	orr	w9, w9, w11
	orr	w9, w9, w12
	str	w9, [x8, x23]
	add	w24, w24, #512, lsl #12         ; =2097152
	add	x23, x23, #4
	cmp	x23, #2048
	b.ne	LBB0_3
; %bb.4:
	ldr	w8, [x19]
Lloh19:
	adrp	x9, _entry_lo@GOTPAGE
Lloh20:
	ldr	x9, [x9, _entry_lo@GOTPAGEOFF]
Lloh21:
	str	w8, [x9]
	bl	_dev_cleanup
Lloh22:
	adrp	x8, _amd64_tramp@GOTPAGE
Lloh23:
	ldr	x8, [x8, _amd64_tramp@GOTPAGEOFF]
Lloh24:
	ldr	x0, [x8]
	bl	_VTOP
	ldp	w2, w1, [sp, #8]
	bl	___exec
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
                                        ; implicit-def: $w0
	b	LBB0_6
LBB0_5:
Lloh27:
	adrp	x8, _EFTYPE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EFTYPE@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_MODINFOMD_ELFHDR,4,2           ; @MODINFOMD_ELFHDR
	.comm	_EFTYPE,4,2                     ; @EFTYPE
	.comm	_PT4,8,3                        ; @PT4
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PT3,8,3                        ; @PT3
	.comm	_PT2,8,3                        ; @PT2
	.comm	_PG_V,4,2                       ; @PG_V
	.comm	_PG_RW,4,2                      ; @PG_RW
	.comm	_PG_U,4,2                       ; @PG_U
	.comm	_PG_PS,4,2                      ; @PG_PS
	.comm	_entry_lo,4,2                   ; @entry_lo
	.comm	_entry_hi,4,2                   ; @entry_hi
	.comm	_amd64_tramp,8,3                ; @amd64_tramp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"exec returned"

	.no_dead_strip	_elf64_exec
.subsections_via_symbols
