	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usb_init                       ## -- Begin function usb_init
	.p2align	4, 0x90
_usb_init:                              ## @usb_init
	.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
	movq	_usb_device@GOTPCREL(%rip), %r14
	movl	%edi, 20(%r14)
	callq	___usb_isgeckoalive
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	___usb_flush
LBB0_2:
	movq	_usbopen@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_usbclose@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_usbwait@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_usbread@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_usbwrite@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_usb_device,24,2                ## @usb_device
	.comm	_usbopen,4,2                    ## @usbopen
	.comm	_usbclose,4,2                   ## @usbclose
	.comm	_usbwait,4,2                    ## @usbwait
	.comm	_usbread,4,2                    ## @usbread
	.comm	_usbwrite,4,2                   ## @usbwrite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usb_init                       ; -- Begin function usb_init
	.p2align	2
_usb_init:                              ; @usb_init
	.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	x20, x0
Lloh0:
	adrp	x19, _usb_device@GOTPAGE
Lloh1:
	ldr	x19, [x19, _usb_device@GOTPAGEOFF]
	str	w0, [x19, #20]
	bl	___usb_isgeckoalive
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	___usb_flush
LBB0_2:
Lloh2:
	adrp	x8, _usbopen@GOTPAGE
Lloh3:
	ldr	x8, [x8, _usbopen@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh5:
	adrp	x8, _usbclose@GOTPAGE
Lloh6:
	ldr	x8, [x8, _usbclose@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _usbwait@GOTPAGE
Lloh9:
	ldr	x9, [x9, _usbwait@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
Lloh11:
	adrp	x8, _usbread@GOTPAGE
Lloh12:
	ldr	x8, [x8, _usbread@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _usbwrite@GOTPAGE
Lloh15:
	ldr	x9, [x9, _usbwrite@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	mov	x0, x19
	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	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_usb_device,24,2                ; @usb_device
	.comm	_usbopen,4,2                    ; @usbopen
	.comm	_usbclose,4,2                   ; @usbclose
	.comm	_usbwait,4,2                    ; @usbwait
	.comm	_usbread,4,2                    ; @usbread
	.comm	_usbwrite,4,2                   ; @usbwrite
.subsections_via_symbols
