	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_uart_tx_wakeup             ## -- Begin function hci_uart_tx_wakeup
	.p2align	4, 0x90
_hci_uart_tx_wakeup:                    ## @hci_uart_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, %r12
	movq	16(%rdi), %r13
	movq	24(%rdi), %r14
	movq	_HCI_UART_SENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_HCI_UART_TX_WAKEUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_set_bit
	jmp	LBB0_10
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_BT_DBG
	leaq	8(%r14), %r15
	movq	_HCI_UART_TX_WAKEUP@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, 8(%r12)
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_HCI_UART_TX_WAKEUP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_9
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	(%rbx), %edi
	movq	%r12, %rsi
	callq	_clear_bit
	movq	%r12, %rdi
	callq	_hci_uart_dequeue
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_TTY_DO_WRITE_WAKEUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_set_bit
	movq	(%r14), %rax
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	*(%rax)
	addl	%eax, (%r13)
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_skb_pull
	cmpl	$0, (%rbx)
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%rbx, %rdi
	callq	_bt_cb
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_hci_uart_tx_complete
	movq	%rbx, %rdi
	callq	_kfree_skb
	movq	%r12, %rdi
	callq	_hci_uart_dequeue
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_8
LBB0_9:
	movq	_HCI_UART_SENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_clear_bit
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCI_UART_SENDING,4,2           ## @HCI_UART_SENDING
	.comm	_HCI_UART_TX_WAKEUP,4,2         ## @HCI_UART_TX_WAKEUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_TTY_DO_WRITE_WAKEUP,4,2        ## @TTY_DO_WRITE_WAKEUP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_uart_tx_wakeup             ; -- Begin function hci_uart_tx_wakeup
	.p2align	2
_hci_uart_tx_wakeup:                    ; @hci_uart_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
	ldp	x24, x20, [x0, #16]
Lloh0:
	adrp	x23, _HCI_UART_SENDING@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HCI_UART_SENDING@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x19
	bl	_test_and_set_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _HCI_UART_TX_WAKEUP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HCI_UART_TX_WAKEUP@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
	b	LBB0_10
LBB0_2:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_DBG
	add	x21, x20, #8
Lloh7:
	adrp	x25, _HCI_UART_TX_WAKEUP@GOTPAGE
Lloh8:
	ldr	x25, [x25, _HCI_UART_TX_WAKEUP@GOTPAGEOFF]
Lloh9:
	adrp	x26, _TTY_DO_WRITE_WAKEUP@GOTPAGE
Lloh10:
	ldr	x26, [x26, _TTY_DO_WRITE_WAKEUP@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x22, [x19, #8]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x25]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_9
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w0, [x25]
	mov	x1, x19
	bl	_clear_bit
	mov	x0, x19
	bl	_hci_uart_dequeue
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x0
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x26]
	mov	x1, x21
	bl	_set_bit
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldp	w2, w1, [x22]
	mov	x0, x20
	blr	x8
	mov	x1, x0
	ldr	w8, [x24]
	add	w8, w8, w0
	str	w8, [x24]
	mov	x0, x22
	bl	_skb_pull
	ldr	w8, [x22]
	cbnz	w8, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x22
	bl	_bt_cb
	ldr	w1, [x0]
	mov	x0, x19
	bl	_hci_uart_tx_complete
	mov	x0, x22
	bl	_kfree_skb
	mov	x0, x19
	bl	_hci_uart_dequeue
	mov	x22, x0
	cbnz	x0, LBB0_7
	b	LBB0_4
LBB0_9:
	ldr	w0, [x23]
	mov	x1, x19
	bl	_clear_bit
LBB0_10:
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_HCI_UART_SENDING,4,2           ; @HCI_UART_SENDING
	.comm	_HCI_UART_TX_WAKEUP,4,2         ; @HCI_UART_TX_WAKEUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_TTY_DO_WRITE_WAKEUP,4,2        ; @TTY_DO_WRITE_WAKEUP
.subsections_via_symbols
