	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_app_booter_main                ## -- Begin function app_booter_main
	.p2align	4, 0x90
_app_booter_main:                       ## @app_booter_main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_EXECUTABLE_MEM_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_valid_elf_image
	movq	%rbx, %rdi
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.1:
	callq	_load_elf_image
	jmp	LBB0_3
LBB0_2:
	callq	_load_dol_image
LBB0_3:
	movq	%rax, %rdx
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	_SYSTEM_ARGV@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%rsi), %rax
	movq	_ARGV_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	leaq	8(%rdx), %rbx
	movq	%rbx, %rdi
	movq	%rdx, %r14
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_sync_before_exec
	movq	%r14, %rdx
LBB0_6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*%rdx                           ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXECUTABLE_MEM_ADDR,8,3        ## @EXECUTABLE_MEM_ADDR
	.comm	_SYSTEM_ARGV,8,3                ## @SYSTEM_ARGV
	.comm	_ARGV_MAGIC,8,3                 ## @ARGV_MAGIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_app_booter_main                ; -- Begin function app_booter_main
	.p2align	2
_app_booter_main:                       ; @app_booter_main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _EXECUTABLE_MEM_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXECUTABLE_MEM_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	mov	x0, x19
	bl	_valid_elf_image
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_load_elf_image
	cbz	x0, LBB0_6
LBB0_2:
Lloh3:
	adrp	x8, _SYSTEM_ARGV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SYSTEM_ARGV@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	ldr	x8, [x1]
Lloh6:
	adrp	x9, _ARGV_MAGIC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ARGV_MAGIC@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	add	x19, x0, #8
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	x0, x19
	mov	w2, #4
	bl	_memcpy
	mov	x0, x19
	mov	w1, #4
	bl	_sync_before_exec
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	br	x0
LBB0_5:
	mov	x0, x19
	bl	_load_dol_image
	cbnz	x0, LBB0_2
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EXECUTABLE_MEM_ADDR,8,3        ; @EXECUTABLE_MEM_ADDR
	.comm	_SYSTEM_ARGV,8,3                ; @SYSTEM_ARGV
	.comm	_ARGV_MAGIC,8,3                 ; @ARGV_MAGIC
.subsections_via_symbols
