	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bpa10x_probe
_bpa10x_probe:                          ## @bpa10x_probe
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rdx
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_BT_DBG
	movq	8(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
LBB0_3:
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_interface_to_usbdev
	movl	%eax, 16(%r14)
	leaq	12(%r14), %rdi
	callq	_init_usb_anchor
	movq	%r14, %rdi
	addq	$8, %rdi
	callq	_init_usb_anchor
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_hci_alloc_dev
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	%rax, %r12
	movq	_HCI_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
	movq	%r14, 32(%r12)
	movq	%r12, (%r14)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_SET_HCIDEV_DEV
	movq	_bpa10x_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_bpa10x_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	_bpa10x_flush@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_bpa10x_send_frame@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	_bpa10x_destruct@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_HCI_QUIRK_NO_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_set_bit
	movq	%r12, %rdi
	callq	_hci_register_dev
	testl	%eax, %eax
	js	LBB0_11
## %bb.8:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_usb_set_intfdata
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	movq	%r14, %rdi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_11:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_hci_free_dev
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"intf %p id %p"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HCI_USB,4,2                    ## @HCI_USB
	.comm	_bpa10x_open,4,2                ## @bpa10x_open
	.comm	_bpa10x_close,4,2               ## @bpa10x_close
	.comm	_bpa10x_flush,4,2               ## @bpa10x_flush
	.comm	_bpa10x_send_frame,4,2          ## @bpa10x_send_frame
	.comm	_bpa10x_destruct,4,2            ## @bpa10x_destruct
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_HCI_QUIRK_NO_RESET,4,2         ## @HCI_QUIRK_NO_RESET
	.no_dead_strip	_bpa10x_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bpa10x_probe
_bpa10x_probe:                          ; @bpa10x_probe
	.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	x2, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_BT_DBG
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, x0
	mov	x0, x19
	bl	_interface_to_usbdev
	str	w0, [x20, #16]
	add	x0, x20, #12
	bl	_init_usb_anchor
	add	x0, x20, #8
	bl	_init_usb_anchor
	bl	_hci_alloc_dev
	cbz	x0, LBB0_6
; %bb.4:
	mov	x21, x0
Lloh7:
	adrp	x8, _HCI_USB@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HCI_USB@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x0, #40]
	str	x20, [x0, #32]
	str	x0, [x20]
	mov	x1, x19
	bl	_SET_HCIDEV_DEV
Lloh10:
	adrp	x8, _bpa10x_open@GOTPAGE
Lloh11:
	ldr	x8, [x8, _bpa10x_open@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _bpa10x_close@GOTPAGE
Lloh14:
	ldr	x9, [x9, _bpa10x_close@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _bpa10x_flush@GOTPAGE
Lloh17:
	ldr	x10, [x10, _bpa10x_flush@GOTPAGEOFF]
	stp	w9, w8, [x21, #20]
Lloh18:
	ldr	w8, [x10]
Lloh19:
	adrp	x9, _bpa10x_send_frame@GOTPAGE
Lloh20:
	ldr	x9, [x9, _bpa10x_send_frame@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #12]
Lloh22:
	adrp	x8, _bpa10x_destruct@GOTPAGE
Lloh23:
	ldr	x8, [x8, _bpa10x_destruct@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _THIS_MODULE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _THIS_MODULE@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #4]
Lloh28:
	adrp	x8, _HCI_QUIRK_NO_RESET@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HCI_QUIRK_NO_RESET@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_set_bit
	mov	x0, x21
	bl	_hci_register_dev
	tbnz	w0, #31, LBB0_10
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	_usb_set_intfdata
	mov	w22, #0
	b	LBB0_9
LBB0_6:
	mov	x0, x20
	bl	_kfree
LBB0_7:
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x22
	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
LBB0_10:
	mov	x22, x0
	mov	x0, x21
	bl	_hci_free_dev
	mov	x0, x20
	bl	_kfree
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"intf %p id %p"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HCI_USB,4,2                    ; @HCI_USB
	.comm	_bpa10x_open,4,2                ; @bpa10x_open
	.comm	_bpa10x_close,4,2               ; @bpa10x_close
	.comm	_bpa10x_flush,4,2               ; @bpa10x_flush
	.comm	_bpa10x_send_frame,4,2          ; @bpa10x_send_frame
	.comm	_bpa10x_destruct,4,2            ; @bpa10x_destruct
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_HCI_QUIRK_NO_RESET,4,2         ; @HCI_QUIRK_NO_RESET
	.no_dead_strip	_bpa10x_probe
.subsections_via_symbols
