	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elf32_exec
_elf32_exec:                            ## @elf32_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	%rbx
	pushq	%rax
	movl	$4136, %eax                     ## imm = 0x1028
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_MODINFOMD_ELFHDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_file_findmetadata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	(%rbx), %edi
	leaq	-4136(%rbp), %rsi
	leaq	-4132(%rbp), %rdx
	leaq	-4148(%rbp), %rcx
	leaq	-4144(%rbp), %r8
	leaq	-4140(%rbp), %r9
	callq	_bi_load32
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	$16777215, %r14d                ## imm = 0xFFFFFF
	andl	(%r15), %r14d
	xorl	%eax, %eax
	callq	_dev_cleanup
	leaq	-4128(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_memset
	movl	-4140(%rbp), %eax
	movl	%eax, -36(%rbp)
	movl	-4144(%rbp), %eax
	movl	%eax, -40(%rbp)
	movl	-4148(%rbp), %eax
	movl	%eax, -44(%rbp)
	movl	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	movl	-4132(%rbp), %eax
	movl	%eax, -60(%rbp)
	movl	-4136(%rbp), %eax
	movl	%eax, -64(%rbp)
	movl	$-1091568946, -68(%rbp)         ## imm = 0xBEEFFACE
	movq	_copyin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GUEST_STACK@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	movl	$4096, %ecx                     ## imm = 0x1000
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_CALLBACK
	movq	_setreg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4060, %edx                     ## imm = 0xFDC
	addq	(%rbx), %rdx
	movl	$4, %esi
	xorl	%eax, %eax
	callq	_CALLBACK
	movq	_setgdt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GUEST_GDT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$31, %edx
	xorl	%eax, %eax
	callq	_CALLBACK
	movq	_exec@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_CALLBACK
	leaq	L_.str(%rip), %rdi
	callq	_panic
                                        ## implicit-def: $eax
	jmp	LBB0_4
LBB0_1:
	movq	_EFTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$4136, %rsp                     ## imm = 0x1028
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MODINFOMD_ELFHDR,4,2           ## @MODINFOMD_ELFHDR
	.comm	_EFTYPE,4,2                     ## @EFTYPE
	.comm	_copyin,4,2                     ## @copyin
	.comm	_GUEST_STACK,8,3                ## @GUEST_STACK
	.comm	_setreg,4,2                     ## @setreg
	.comm	_setgdt,4,2                     ## @setgdt
	.comm	_GUEST_GDT,4,2                  ## @GUEST_GDT
	.comm	_exec,4,2                       ## @exec
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"exec returned"

	.no_dead_strip	_elf32_exec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elf32_exec
_elf32_exec:                            ; @elf32_exec
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -56
	.cfi_offset w28, -64
	mov	w9, #4160
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #64
	mov	x20, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh5:
	adrp	x8, _MODINFOMD_ELFHDR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MODINFOMD_ELFHDR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_file_findmetadata
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w0, [x20]
	add	x1, sp, #40
	add	x2, sp, #36
	add	x3, sp, #52
	add	x4, sp, #48
	add	x5, sp, #44
	bl	_bi_load32
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w8, [x19]
	and	w19, w8, #0xffffff
	bl	_dev_cleanup
	add	x20, sp, #56
	mov	w21, #4096
	add	x0, sp, #56
	mov	w1, #0
	mov	w2, #4096
	bl	_memset
	ldr	w8, [sp, #44]
	str	w8, [sp, #4148]
	ldr	w8, [sp, #48]
	str	w8, [sp, #4144]
	ldr	w8, [sp, #52]
	str	w8, [sp, #4140]
	str	wzr, [sp, #4136]
	str	xzr, [sp, #4128]
	ldr	w8, [sp, #36]
	str	w8, [sp, #4124]
	ldr	w8, [sp, #40]
	str	w8, [sp, #4120]
	mov	w8, #64206
	movk	w8, #48879, lsl #16
	str	w8, [sp, #4116]
Lloh8:
	adrp	x8, _copyin@GOTPAGE
Lloh9:
	ldr	x8, [x8, _copyin@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x22, _GUEST_STACK@GOTPAGE
Lloh12:
	ldr	x22, [x22, _GUEST_STACK@GOTPAGEOFF]
	ldr	x8, [x22]
	stp	x8, x21, [sp, #8]
	str	x20, [sp]
	bl	_CALLBACK
Lloh13:
	adrp	x8, _setreg@GOTPAGE
Lloh14:
	ldr	x8, [x8, _setreg@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	x8, [x22]
	add	x8, x8, #4060
	mov	w9, #4
	stp	x9, x8, [sp]
	bl	_CALLBACK
Lloh16:
	adrp	x8, _setgdt@GOTPAGE
Lloh17:
	ldr	x8, [x8, _setgdt@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _GUEST_GDT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GUEST_GDT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	mov	w9, #31
	stp	x8, x9, [sp]
	bl	_CALLBACK
Lloh22:
	adrp	x8, _exec@GOTPAGE
Lloh23:
	ldr	x8, [x8, _exec@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	str	x19, [sp]
	bl	_CALLBACK
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
                                        ; implicit-def: $w0
	b	LBB0_4
LBB0_3:
Lloh27:
	adrp	x8, _EFTYPE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EFTYPE@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
LBB0_4:
	ldur	x8, [x29, #-56]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #64
	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	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_MODINFOMD_ELFHDR,4,2           ; @MODINFOMD_ELFHDR
	.comm	_EFTYPE,4,2                     ; @EFTYPE
	.comm	_copyin,4,2                     ; @copyin
	.comm	_GUEST_STACK,8,3                ; @GUEST_STACK
	.comm	_setreg,4,2                     ; @setreg
	.comm	_setgdt,4,2                     ; @setgdt
	.comm	_GUEST_GDT,4,2                  ; @GUEST_GDT
	.comm	_exec,4,2                       ; @exec
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"exec returned"

	.no_dead_strip	_elf32_exec
.subsections_via_symbols
