	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bfusb_tx_wakeup
_bfusb_tx_wakeup:                       ## @bfusb_tx_wakeup
	.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	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_BT_DBG
	movq	_BFUSB_TX_PROCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:
	movq	_BFUSB_TX_WAKEUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_bit                        ## TAILCALL
LBB0_1:
	leaq	8(%r14), %r15
	leaq	4(%r14), %r12
	movq	_BFUSB_TX_WAKEUP@GOTPCREL(%rip), %rbx
	movq	_BFUSB_MAX_BULK_TX@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_BFUSB_TX_WAKEUP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	callq	_atomic_read
	cmpq	(%r13), %rax
	jge	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%r12, %rdi
	callq	_skb_dequeue
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_bfusb_send_bulk
	testq	%rax, %rax
	jns	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_skb_queue_head
	jmp	LBB0_7
LBB0_8:
	movq	_BFUSB_TX_PROCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clear_bit                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bfusb %p"

	.comm	_BFUSB_TX_PROCESS,4,2           ## @BFUSB_TX_PROCESS
	.comm	_BFUSB_TX_WAKEUP,4,2            ## @BFUSB_TX_WAKEUP
	.comm	_BFUSB_MAX_BULK_TX,8,3          ## @BFUSB_MAX_BULK_TX
	.no_dead_strip	_bfusb_tx_wakeup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bfusb_tx_wakeup
_bfusb_tx_wakeup:                       ; @bfusb_tx_wakeup
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_BT_DBG
Lloh2:
	adrp	x23, _BFUSB_TX_PROCESS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _BFUSB_TX_PROCESS@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x19
	bl	_test_and_set_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _BFUSB_TX_WAKEUP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BFUSB_TX_WAKEUP@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_set_bit
LBB0_2:
	add	x20, x19, #8
	add	x21, x19, #4
Lloh7:
	adrp	x24, _BFUSB_TX_WAKEUP@GOTPAGE
Lloh8:
	ldr	x24, [x24, _BFUSB_TX_WAKEUP@GOTPAGEOFF]
Lloh9:
	adrp	x25, _BFUSB_MAX_BULK_TX@GOTPAGE
Lloh10:
	ldr	x25, [x25, _BFUSB_MAX_BULK_TX@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w0, [x24]
	mov	x1, x19
	bl	_clear_bit
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_atomic_read
	ldr	x8, [x25]
	cmp	x0, x8
	b.ge	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x21
	bl	_skb_dequeue
	cbz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_bfusb_send_bulk
	tbz	x0, #63, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_skb_queue_head
	b	LBB0_3
LBB0_9:
	ldr	w0, [x23]
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_clear_bit
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bfusb %p"

	.comm	_BFUSB_TX_PROCESS,4,2           ; @BFUSB_TX_PROCESS
	.comm	_BFUSB_TX_WAKEUP,4,2            ; @BFUSB_TX_WAKEUP
	.comm	_BFUSB_MAX_BULK_TX,8,3          ; @BFUSB_MAX_BULK_TX
	.no_dead_strip	_bfusb_tx_wakeup
.subsections_via_symbols
