	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IOSUHAX_disc_io_fsa_open
_IOSUHAX_disc_io_fsa_open:              ## @IOSUHAX_disc_io_fsa_open
	.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
	movl	%edi, %ebx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_IOSUHAX_disc_io_initialize
	xorl	%edi, %edi
	callq	_IOSUHAX_Open
	testq	%rax, %rax
	js	LBB0_8
## %bb.1:
	movq	_FSA_REF_SD@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	_fsaFdSd@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
LBB0_3:
	movq	_FSA_REF_USB@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_7
## %bb.4:
	movq	_fsaFdUsb@GOTPCREL(%rip), %rbx
LBB0_5:
	movl	$1, %r14d
	cmpq	$0, (%rbx)
	jns	LBB0_8
## %bb.6:
	xorl	%eax, %eax
	callq	_IOSUHAX_FSA_Open
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jns	LBB0_8
LBB0_7:
	xorl	%r14d, %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FSA_REF_SD,4,2                 ## @FSA_REF_SD
	.comm	_fsaFdSd,8,3                    ## @fsaFdSd
	.comm	_FSA_REF_USB,4,2                ## @FSA_REF_USB
	.comm	_fsaFdUsb,8,3                   ## @fsaFdUsb
	.no_dead_strip	_IOSUHAX_disc_io_fsa_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IOSUHAX_disc_io_fsa_open
_IOSUHAX_disc_io_fsa_open:              ; @IOSUHAX_disc_io_fsa_open
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_IOSUHAX_disc_io_initialize
	mov	x0, #0
	bl	_IOSUHAX_Open
	tbnz	x0, #63, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _FSA_REF_SD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FSA_REF_SD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x19, _fsaFdSd@GOTPAGE
Lloh4:
	ldr	x19, [x19, _fsaFdSd@GOTPAGEOFF]
	ldr	x8, [x19]
	tbz	x8, #63, LBB0_6
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _FSA_REF_USB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FSA_REF_USB@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_7
; %bb.4:
Lloh8:
	adrp	x19, _fsaFdUsb@GOTPAGE
Lloh9:
	ldr	x19, [x19, _fsaFdUsb@GOTPAGEOFF]
	ldr	x8, [x19]
	tbz	x8, #63, LBB0_6
LBB0_5:
	bl	_IOSUHAX_FSA_Open
	str	x0, [x19]
	tbnz	x0, #63, LBB0_7
LBB0_6:
	mov	w0, #1
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_FSA_REF_SD,4,2                 ; @FSA_REF_SD
	.comm	_fsaFdSd,8,3                    ; @fsaFdSd
	.comm	_FSA_REF_USB,4,2                ; @FSA_REF_USB
	.comm	_fsaFdUsb,8,3                   ; @fsaFdUsb
	.no_dead_strip	_IOSUHAX_disc_io_fsa_open
.subsections_via_symbols
