	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bfusb_send_bulk
_bfusb_send_bulk:                       ## @bfusb_send_bulk
	.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, %rbx
	movq	%rdi, %r14
	movq	8(%rsi), %r13
	callq	_bfusb_get_completed
	movq	%rax, %r15
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_BT_DBG
	testq	%r15, %r15
	jne	LBB0_3
## %bb.1:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movl	16(%r14), %edi
	movl	20(%r14), %esi
	callq	_usb_sndbulkpipe
	movl	16(%r14), %esi
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	movq	_bfusb_tx_complete@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%rbx, (%rsp)
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_usb_fill_bulk_urb
	movq	%r15, (%r13)
	leaq	4(%r14), %r13
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_skb_queue_tail
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	movq	8(%r14), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	callq	_BT_ERR
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_skb_unlink
	movq	%r15, %rdi
	callq	_usb_free_urb
	jmp	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	callq	_atomic_inc
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bfusb %p skb %p len %d"

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

	.no_dead_strip	_bfusb_send_bulk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bfusb_send_bulk
_bfusb_send_bulk:                       ; @bfusb_send_bulk
	.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
	ldr	x22, [x1, #8]
	bl	_bfusb_get_completed
	mov	x21, x0
	ldr	w3, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_BT_DBG
Lloh2:
	adrp	x24, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x24, [x24, _GFP_ATOMIC@GOTPAGEOFF]
	cbnz	x21, LBB0_2
; %bb.1:
	ldr	w1, [x24]
	mov	w0, #0
	bl	_usb_alloc_urb
	mov	x21, x0
	cbz	x0, LBB0_5
LBB0_2:
	ldp	w0, w1, [x20, #16]
	bl	_usb_sndbulkpipe
	mov	x2, x0
	ldr	w1, [x20, #16]
	ldp	w4, w3, [x19]
Lloh4:
	adrp	x8, _bfusb_tx_complete@GOTPAGE
Lloh5:
	ldr	x8, [x8, _bfusb_tx_complete@GOTPAGEOFF]
Lloh6:
	ldr	w5, [x8]
	mov	x0, x21
	mov	x6, x19
	bl	_usb_fill_bulk_urb
	str	x21, [x22]
	add	x23, x20, #4
	mov	x0, x23
	mov	x1, x19
	bl	_skb_queue_tail
	ldr	w1, [x24]
	mov	x0, x21
	bl	_usb_submit_urb
	mov	x22, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x21
	mov	x3, x22
	bl	_BT_ERR
	mov	x0, x19
	mov	x1, x23
	bl	_skb_unlink
	mov	x0, x21
	bl	_usb_free_urb
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	bl	_atomic_inc
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	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	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bfusb %p skb %p len %d"

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

	.no_dead_strip	_bfusb_send_bulk
.subsections_via_symbols
