	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function __usb_register
LCPI0_0:
	.long	2                               ## 0x2
	.long	130                             ## 0x82
	.long	129                             ## 0x81
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
___usb_register:                        ## @__usb_register
	.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
	movl	%edi, %r15d
	movq	___usbdev@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	$5, (%r14)
	xorl	%eax, %eax
	callq	___IPC_ClntInit
	testq	%rax, %rax
	js	LBB0_5
## %bb.1:
	xorl	%eax, %eax
	callq	_USB_Initialize
	testq	%rax, %rax
	js	LBB0_5
## %bb.2:
	movl	$-1, 4(%r14)
	movl	%r15d, 32(%r14)
	movq	___ntd_vid_pid_specified@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.3:
	movq	___ntd_vid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 8(%r14)
	movq	___ntd_pid@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_7
LBB0_5:
	movq	%rax, %rbx
	jmp	LBB0_9
LBB0_6:
	movl	$1406, 8(%r14)                  ## imm = 0x57E
	movl	$773, %esi                      ## imm = 0x305
	movl	$1406, %edi                     ## imm = 0x57E
LBB0_7:
	movl	%esi, 12(%r14)
	callq	___getDeviceId
	movq	%rax, %rbx
	testq	%rax, %rax
	js	LBB0_9
## %bb.8:
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [2,130,129,0]
	movups	%xmm0, 16(%r14)
	movq	_CTRL_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NUM_CTRL_BUFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ctrlbufs@GOTPCREL(%rip), %rdi
	callq	___initUsbIOBuffer
	movq	_ACL_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NUM_ACL_BUFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_aclbufs@GOTPCREL(%rip), %rdi
	callq	___initUsbIOBuffer
	movl	$4, (%r14)
	movq	___wait4hci@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___usbdev,36,2                  ## @__usbdev
	.comm	___ntd_vid_pid_specified,8,3    ## @__ntd_vid_pid_specified
	.comm	___ntd_vid,4,2                  ## @__ntd_vid
	.comm	___ntd_pid,4,2                  ## @__ntd_pid
	.comm	_ctrlbufs,4,2                   ## @ctrlbufs
	.comm	_CTRL_BUF_SIZE,4,2              ## @CTRL_BUF_SIZE
	.comm	_NUM_CTRL_BUFS,4,2              ## @NUM_CTRL_BUFS
	.comm	_aclbufs,4,2                    ## @aclbufs
	.comm	_ACL_BUF_SIZE,4,2               ## @ACL_BUF_SIZE
	.comm	_NUM_ACL_BUFS,4,2               ## @NUM_ACL_BUFS
	.comm	___wait4hci,4,2                 ## @__wait4hci
	.no_dead_strip	___usb_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function __usb_register
lCPI0_0:
	.long	2                               ; 0x2
	.long	130                             ; 0x82
	.long	129                             ; 0x81
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
___usb_register:                        ; @__usb_register
	.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
	mov	x21, x0
Lloh0:
	adrp	x19, ___usbdev@GOTPAGE
Lloh1:
	ldr	x19, [x19, ___usbdev@GOTPAGEOFF]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w8, #5
	str	w8, [x19]
	bl	___IPC_ClntInit
	tbnz	x0, #63, LBB0_4
; %bb.1:
	bl	_USB_Initialize
	tbnz	x0, #63, LBB0_4
; %bb.2:
	mov	w8, #-1
	str	w8, [x19, #4]
	str	w21, [x19, #32]
Lloh2:
	adrp	x8, ___ntd_vid_pid_specified@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___ntd_vid_pid_specified@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
Lloh5:
	adrp	x8, ___ntd_vid@GOTPAGE
Lloh6:
	ldr	x8, [x8, ___ntd_vid@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	str	w0, [x19, #8]
Lloh8:
	adrp	x8, ___ntd_pid@GOTPAGE
Lloh9:
	ldr	x8, [x8, ___ntd_pid@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	b	LBB0_6
LBB0_4:
	mov	x20, x0
	b	LBB0_8
LBB0_5:
	mov	w0, #1406
	str	w0, [x19, #8]
	mov	w1, #773
LBB0_6:
	str	w1, [x19, #12]
	bl	___getDeviceId
	mov	x20, x0
	tbnz	x0, #63, LBB0_8
; %bb.7:
Lloh11:
	adrp	x8, lCPI0_0@PAGE
Lloh12:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [x19, #16]
Lloh13:
	adrp	x8, _CTRL_BUF_SIZE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CTRL_BUF_SIZE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _NUM_CTRL_BUFS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NUM_CTRL_BUFS@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x0, _ctrlbufs@GOTPAGE
Lloh20:
	ldr	x0, [x0, _ctrlbufs@GOTPAGEOFF]
	bl	___initUsbIOBuffer
Lloh21:
	adrp	x8, _ACL_BUF_SIZE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ACL_BUF_SIZE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _NUM_ACL_BUFS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NUM_ACL_BUFS@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
Lloh27:
	adrp	x0, _aclbufs@GOTPAGE
Lloh28:
	ldr	x0, [x0, _aclbufs@GOTPAGEOFF]
	bl	___initUsbIOBuffer
	mov	w8, #4
	str	w8, [x19]
Lloh29:
	adrp	x8, ___wait4hci@GOTPAGE
Lloh30:
	ldr	x8, [x8, ___wait4hci@GOTPAGEOFF]
	mov	w9, #1
Lloh31:
	str	w9, [x8]
LBB0_8:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdrp	Lloh11, Lloh13
	.loh AdrpLdr	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	___usbdev,36,2                  ; @__usbdev
	.comm	___ntd_vid_pid_specified,8,3    ; @__ntd_vid_pid_specified
	.comm	___ntd_vid,4,2                  ; @__ntd_vid
	.comm	___ntd_pid,4,2                  ; @__ntd_pid
	.comm	_ctrlbufs,4,2                   ; @ctrlbufs
	.comm	_CTRL_BUF_SIZE,4,2              ; @CTRL_BUF_SIZE
	.comm	_NUM_CTRL_BUFS,4,2              ; @NUM_CTRL_BUFS
	.comm	_aclbufs,4,2                    ; @aclbufs
	.comm	_ACL_BUF_SIZE,4,2               ; @ACL_BUF_SIZE
	.comm	_NUM_ACL_BUFS,4,2               ; @NUM_ACL_BUFS
	.comm	___wait4hci,4,2                 ; @__wait4hci
	.no_dead_strip	___usb_register
.subsections_via_symbols
