	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btsdio_tx_packet
_btsdio_tx_packet:                      ## @btsdio_tx_packet
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	4(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_BT_DBG
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_skb_push
	movzbl	8(%rbx), %eax
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movzbl	9(%rbx), %eax
	movl	%eax, 4(%rcx)
	movzbl	10(%rbx), %eax
	movl	%eax, 8(%rcx)
	movq	%rbx, %rdi
	callq	_bt_cb
	movl	(%rax), %eax
	movq	(%rbx), %rdx
	movl	%eax, 12(%rdx)
	movl	8(%r14), %edi
	movq	_REG_TDAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %ecx
	callq	_sdio_writesb
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	8(%rbx), %eax
	movq	(%r14), %rcx
	addl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_kfree_skb
	xorl	%r15d, %r15d
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_skb_pull
	movl	8(%r14), %edi
	movq	_REG_PC_WRT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %esi
	xorl	%ecx, %ecx
	callq	_sdio_writeb
LBB0_3:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_REG_TDAT,4,2                   ## @REG_TDAT
	.comm	_REG_PC_WRT,4,2                 ## @REG_PC_WRT
	.no_dead_strip	_btsdio_tx_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btsdio_tx_packet
_btsdio_tx_packet:                      ; @btsdio_tx_packet
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	w1, [x8, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_DBG
	mov	x0, x19
	mov	w1, #4
	bl	_skb_push
	ldrb	w8, [x19, #8]
	ldr	x9, [x19]
	str	w8, [x9]
	ldrb	w8, [x19, #9]
	str	w8, [x9, #4]
	ldrb	w8, [x19, #10]
	str	w8, [x9, #8]
	mov	x0, x19
	bl	_bt_cb
	ldr	w8, [x0]
	ldr	x2, [x19]
	str	w8, [x2, #12]
	ldr	w0, [x20, #8]
Lloh2:
	adrp	x8, _REG_TDAT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REG_TDAT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w3, [x19, #8]
	bl	_sdio_writesb
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	w8, [x19, #8]
	ldr	x9, [x20]
	ldr	w10, [x9]
	add	w8, w10, w8
	str	w8, [x9]
	mov	x0, x19
	bl	_kfree_skb
	mov	w21, #0
	b	LBB0_3
LBB0_2:
	mov	x21, x0
	mov	x0, x19
	mov	w1, #4
	bl	_skb_pull
	ldr	w0, [x20, #8]
Lloh5:
	adrp	x8, _REG_PC_WRT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_PC_WRT@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #1
	mov	x3, #0
	bl	_sdio_writeb
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_REG_TDAT,4,2                   ; @REG_TDAT
	.comm	_REG_PC_WRT,4,2                 ; @REG_PC_WRT
	.no_dead_strip	_btsdio_tx_packet
.subsections_via_symbols
