	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btuart_write_wakeup
_btuart_write_wakeup:                   ## @btuart_write_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
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	%rdi, %r15
	movq	_XMIT_SENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.12:
	movq	_XMIT_WAKEUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_bit                        ## TAILCALL
LBB0_11:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BT_ERR                         ## TAILCALL
LBB0_2:
	leaq	16(%r15), %r14
	movq	_XMIT_WAKEUP@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_skb_pull
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_skb_queue_head
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rax
	addl	%r12d, (%rax)
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movl	(%rax), %r12d
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	movq	24(%r15), %rdi
	callq	_pcmcia_dev_present
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_skb_dequeue
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	movl	%r12d, %edi
	movl	$16, %esi
	callq	_btuart_write
	movl	%eax, %r12d
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_set_bit
	cmpl	(%rbx), %r12d
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_kfree_skb
	jmp	LBB0_8
LBB0_9:
	movq	_XMIT_SENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clear_bit                      ## TAILCALL
LBB0_10:
	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	"Unknown device"

	.comm	_XMIT_SENDING,4,2               ## @XMIT_SENDING
	.comm	_XMIT_WAKEUP,4,2                ## @XMIT_WAKEUP
	.no_dead_strip	_btuart_write_wakeup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btuart_write_wakeup
_btuart_write_wakeup:                   ; @btuart_write_wakeup
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x23, _XMIT_SENDING@GOTPAGE
Lloh1:
	ldr	x23, [x23, _XMIT_SENDING@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x19
	bl	_test_and_set_bit
	cbz	x0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _XMIT_WAKEUP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XMIT_WAKEUP@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x19
	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
	b	_set_bit
LBB0_3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_BT_ERR
LBB0_4:
	add	x20, x19, #16
Lloh7:
	adrp	x24, _XMIT_WAKEUP@GOTPAGE
Lloh8:
	ldr	x24, [x24, _XMIT_WAKEUP@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_skb_pull
	mov	x0, x20
	mov	x1, x21
	bl	_skb_queue_head
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	add	w9, w9, w22
	str	w9, [x8]
	ldr	w0, [x24]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w22, [x8]
	ldr	w0, [x24]
	mov	x1, x19
	bl	_clear_bit
	ldr	x0, [x19, #24]
	bl	_pcmcia_dev_present
	cbz	w0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_skb_dequeue
	cbz	x0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x21, x0
	ldp	w3, w2, [x0]
	mov	x0, x22
	mov	w1, #16
	bl	_btuart_write
	mov	x22, x0
	ldr	w0, [x24]
	mov	x1, x19
	bl	_set_bit
	ldr	w8, [x21]
	cmp	w22, w8
	b.ne	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_kfree_skb
	b	LBB0_6
LBB0_11:
	ldr	w0, [x23]
	mov	x1, x19
	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
	b	_clear_bit
LBB0_12:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown device"

	.comm	_XMIT_SENDING,4,2               ; @XMIT_SENDING
	.comm	_XMIT_WAKEUP,4,2                ; @XMIT_WAKEUP
	.no_dead_strip	_btuart_write_wakeup
.subsections_via_symbols
