	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bfusb_rx_submit
_bfusb_rx_submit:                       ## @bfusb_rx_submit
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_HCI_MAX_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_BT_DBG
	testq	%r12, %r12
	jne	LBB0_2
## %bb.1:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_7
LBB0_2:
	addl	$32, %r15d
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	%r15d, %edi
	callq	_bt_skb_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %rbx
	movq	%r14, 16(%rax)
	movq	8(%rax), %rax
	movq	%r12, (%rax)
	movl	16(%r14), %edi
	movl	20(%r14), %esi
	callq	_usb_rcvbulkpipe
	movl	16(%r14), %esi
	movl	(%rbx), %ecx
	movq	_bfusb_rx_complete@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%rbx, (%rsp)
	movq	%r12, %rdi
	movl	%eax, %edx
	movl	%r15d, %r8d
	callq	_usb_fill_bulk_urb
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_skb_queue_tail
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %r13d
	movq	8(%r14), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	callq	_BT_ERR
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_skb_unlink
	movq	%rbx, %rdi
	callq	_kfree_skb
	movq	%r12, %rdi
	callq	_usb_free_urb
	jmp	LBB0_9
LBB0_5:
	movq	%r12, %rdi
	callq	_usb_free_urb
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	jmp	LBB0_8
LBB0_6:
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %r13d
LBB0_9:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCI_MAX_FRAME_SIZE,4,2         ## @HCI_MAX_FRAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bfusb %p urb %p"

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bfusb_rx_complete,4,2          ## @bfusb_rx_complete
L_.str.1:                               ## @.str.1
	.asciz	"%s bulk rx submit failed urb %p err %d"

	.no_dead_strip	_bfusb_rx_submit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bfusb_rx_submit
_bfusb_rx_submit:                       ; @bfusb_rx_submit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _HCI_MAX_FRAME_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCI_MAX_FRAME_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_BT_DBG
Lloh5:
	adrp	x23, _GFP_ATOMIC@GOTPAGE
Lloh6:
	ldr	x23, [x23, _GFP_ATOMIC@GOTPAGEOFF]
	cbnz	x19, LBB0_2
; %bb.1:
	ldr	w1, [x23]
	mov	w0, #0
	bl	_usb_alloc_urb
	mov	x19, x0
	cbz	x0, LBB0_6
LBB0_2:
	add	w22, w21, #32
	ldr	w1, [x23]
	mov	x0, x22
	bl	_bt_skb_alloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	str	x20, [x0, #16]
	ldr	x8, [x0, #8]
	str	x19, [x8]
	ldp	w0, w1, [x20, #16]
	bl	_usb_rcvbulkpipe
	mov	x2, x0
	ldr	w1, [x20, #16]
	ldr	w3, [x21]
Lloh7:
	adrp	x8, _bfusb_rx_complete@GOTPAGE
Lloh8:
	ldr	x8, [x8, _bfusb_rx_complete@GOTPAGEOFF]
Lloh9:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x4, x22
	mov	x6, x21
	bl	_usb_fill_bulk_urb
	mov	x0, x20
	mov	x1, x21
	bl	_skb_queue_tail
	ldr	w1, [x23]
	mov	x0, x19
	bl	_usb_submit_urb
	mov	x22, x0
	cbz	w0, LBB0_7
; %bb.4:
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x19
	mov	x3, x22
	bl	_BT_ERR
	mov	x0, x21
	mov	x1, x20
	bl	_skb_unlink
	mov	x0, x21
	bl	_kfree_skb
	mov	x0, x19
	bl	_usb_free_urb
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_usb_free_urb
LBB0_6:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HCI_MAX_FRAME_SIZE,4,2         ; @HCI_MAX_FRAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bfusb %p urb %p"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bfusb_rx_complete,4,2          ; @bfusb_rx_complete
l_.str.1:                               ; @.str.1
	.asciz	"%s bulk rx submit failed urb %p err %d"

	.no_dead_strip	_bfusb_rx_submit
.subsections_via_symbols
