	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IOSUHAX_sdio_startup
_IOSUHAX_sdio_startup:                  ## @IOSUHAX_sdio_startup
	.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	_FSA_REF_SD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_IOSUHAX_disc_io_fsa_open
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_sdioFd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jns	LBB0_6
## %bb.3:
	movq	_fsaFdSd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	_sdioFd@GOTPCREL(%rip), %r14
	movq	%r14, %rdx
	callq	_IOSUHAX_FSA_RawOpen
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movl	(%r14), %eax
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	movl	(%rbx), %edi
	callq	_IOSUHAX_disc_io_fsa_close
	movl	$-1, (%r14)
	movl	$-1, %eax
LBB0_6:
	notl	%eax
	shrl	$31, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FSA_REF_SD,4,2                 ## @FSA_REF_SD
	.comm	_sdioFd,4,2                     ## @sdioFd
	.comm	_fsaFdSd,4,2                    ## @fsaFdSd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/sdcard01"

	.no_dead_strip	_IOSUHAX_sdio_startup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IOSUHAX_sdio_startup
_IOSUHAX_sdio_startup:                  ; @IOSUHAX_sdio_startup
	.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
Lloh0:
	adrp	x20, _FSA_REF_SD@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FSA_REF_SD@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_IOSUHAX_disc_io_fsa_open
	cbz	w0, LBB0_6
; %bb.1:
Lloh2:
	adrp	x8, _sdioFd@GOTPAGE
Lloh3:
	ldr	x8, [x8, _sdioFd@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tbz	w8, #31, LBB0_5
; %bb.2:
Lloh5:
	adrp	x8, _fsaFdSd@GOTPAGE
Lloh6:
	ldr	x8, [x8, _fsaFdSd@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
Lloh10:
	adrp	x19, _sdioFd@GOTPAGE
Lloh11:
	ldr	x19, [x19, _sdioFd@GOTPAGEOFF]
	mov	x2, x19
	bl	_IOSUHAX_FSA_RawOpen
	tbnz	w0, #31, LBB0_4
; %bb.3:
	ldr	w8, [x19]
	b	LBB0_5
LBB0_4:
	ldr	w0, [x20]
	bl	_IOSUHAX_disc_io_fsa_close
	mov	w8, #-1
	str	w8, [x19]
LBB0_5:
	mvn	w8, w8
	lsr	w0, w8, #31
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FSA_REF_SD,4,2                 ; @FSA_REF_SD
	.comm	_sdioFd,4,2                     ; @sdioFd
	.comm	_fsaFdSd,4,2                    ; @fsaFdSd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/sdcard01"

	.no_dead_strip	_IOSUHAX_sdio_startup
.subsections_via_symbols
