	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IOSUHAX_usb_startup
_IOSUHAX_usb_startup:                   ## @IOSUHAX_usb_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_FSA_REF_USB@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_IOSUHAX_disc_io_fsa_open
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_usbFd@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jns	LBB0_6
## %bb.3:
	movq	_fsaFdUsb@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movq	_usbFd@GOTPCREL(%rip), %rdx
	callq	_IOSUHAX_FSA_RawOpen
	testl	%eax, %eax
	jns	LBB0_6
## %bb.4:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	_usbFd@GOTPCREL(%rip), %r14
	movq	%r14, %rdx
	callq	_IOSUHAX_FSA_RawOpen
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	movl	(%rbx), %edi
	callq	_IOSUHAX_disc_io_fsa_close
	movl	$-1, (%r14)
LBB0_6:
	movl	(%r15), %eax
	notl	%eax
	shrl	$31, %eax
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FSA_REF_USB,4,2                ## @FSA_REF_USB
	.comm	_usbFd,4,2                      ## @usbFd
	.comm	_fsaFdUsb,4,2                   ## @fsaFdUsb
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/usb01"

L_.str.1:                               ## @.str.1
	.asciz	"/dev/usb02"

	.no_dead_strip	_IOSUHAX_usb_startup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IOSUHAX_usb_startup
_IOSUHAX_usb_startup:                   ; @IOSUHAX_usb_startup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x20, _FSA_REF_USB@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FSA_REF_USB@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_IOSUHAX_disc_io_fsa_open
	cbz	w0, LBB0_6
; %bb.1:
Lloh2:
	adrp	x21, _usbFd@GOTPAGE
Lloh3:
	ldr	x21, [x21, _usbFd@GOTPAGEOFF]
	ldr	w8, [x21]
	tbz	w8, #31, LBB0_5
; %bb.2:
Lloh4:
	adrp	x19, _fsaFdUsb@GOTPAGE
Lloh5:
	ldr	x19, [x19, _fsaFdUsb@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
Lloh8:
	adrp	x2, _usbFd@GOTPAGE
Lloh9:
	ldr	x2, [x2, _usbFd@GOTPAGEOFF]
	bl	_IOSUHAX_FSA_RawOpen
	tbz	w0, #31, LBB0_5
; %bb.3:
	ldr	w0, [x19]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh12:
	adrp	x19, _usbFd@GOTPAGE
Lloh13:
	ldr	x19, [x19, _usbFd@GOTPAGEOFF]
	mov	x2, x19
	bl	_IOSUHAX_FSA_RawOpen
	tbz	w0, #31, LBB0_5
; %bb.4:
	ldr	w0, [x20]
	bl	_IOSUHAX_disc_io_fsa_close
	mov	w8, #-1
	str	w8, [x19]
LBB0_5:
	ldr	w8, [x21]
	mvn	w8, w8
	lsr	w0, w8, #31
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_FSA_REF_USB,4,2                ; @FSA_REF_USB
	.comm	_usbFd,4,2                      ; @usbFd
	.comm	_fsaFdUsb,4,2                   ; @fsaFdUsb
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/usb01"

l_.str.1:                               ; @.str.1
	.asciz	"/dev/usb02"

	.no_dead_strip	_IOSUHAX_usb_startup
.subsections_via_symbols
