	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function frontend_orbis_exec
_frontend_orbis_exec:                   ## @frontend_orbis_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
	subq	$520, %rsp                      ## imm = 0x208
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	-544(%rbp), %rdi
	movl	$512, %esi                      ## imm = 0x200
	callq	___bzero
	xorl	%r15d, %r15d
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	movq	_RARCH_PATH_CONTENT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_path_is_empty
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movb	$0, -544(%rbp)
	movl	(%rbx), %edi
	callq	_path_get
	leaq	-544(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$512, %edx                      ## imm = 0x200
	callq	_strlcat
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %r15
	incl	%r15d
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_RARCH_LOG
	leaq	L_.str.1(%rip), %rdi
	leaq	-544(%rbp), %rdx
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_RARCH_LOG
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$520, %rsp                      ## imm = 0x208
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RARCH_PATH_CONTENT,4,2         ## @RARCH_PATH_CONTENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attempt to load executable: [%s].\n"

L_.str.1:                               ## @.str.1
	.asciz	"Attempt to load executable: %d [%s].\n"

	.no_dead_strip	_frontend_orbis_exec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function frontend_orbis_exec
_frontend_orbis_exec:                   ; @frontend_orbis_exec
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -40
	.cfi_offset w28, -48
	sub	sp, sp, #544
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #496]
	stp	q0, q0, [sp, #464]
	stp	q0, q0, [sp, #432]
	stp	q0, q0, [sp, #400]
	stp	q0, q0, [sp, #368]
	stp	q0, q0, [sp, #336]
	stp	q0, q0, [sp, #304]
	stp	q0, q0, [sp, #272]
	stp	q0, q0, [sp, #240]
	stp	q0, q0, [sp, #208]
	stp	q0, q0, [sp, #176]
	stp	q0, q0, [sp, #144]
	stp	q0, q0, [sp, #112]
	stp	q0, q0, [sp, #80]
	stp	q0, q0, [sp, #48]
	stp	q0, q0, [sp, #16]
	cbz	w1, LBB0_2
; %bb.1:
Lloh3:
	adrp	x20, _RARCH_PATH_CONTENT@GOTPAGE
Lloh4:
	ldr	x20, [x20, _RARCH_PATH_CONTENT@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_path_is_empty
	cbz	w0, LBB0_3
LBB0_2:
	mov	w20, #0
	b	LBB0_4
LBB0_3:
	strb	wzr, [sp, #16]
	ldr	w0, [x20]
	bl	_path_get
	mov	x1, x0
	add	x0, sp, #16
	mov	w2, #512
	bl	_strlcat
	add	x0, sp, #16
	bl	_strlen
	add	w20, w0, #1
LBB0_4:
	str	x19, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_LOG
	add	x8, sp, #16
	stp	x20, x8, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_RARCH_LOG
	ldur	x8, [x29, #-40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	add	sp, sp, #544
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_RARCH_PATH_CONTENT,4,2         ; @RARCH_PATH_CONTENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attempt to load executable: [%s].\n"

l_.str.1:                               ; @.str.1
	.asciz	"Attempt to load executable: %d [%s].\n"

	.no_dead_strip	_frontend_orbis_exec
.subsections_via_symbols
