	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btsdio_send_frame
_btsdio_send_frame:                     ## @btsdio_send_frame
	.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	%rdi, %r15
	movq	(%rdi), %rbx
	movq	24(%rbx), %r14
	movl	16(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_BT_DBG
	movq	_HCI_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%r15, %rdi
	callq	_bt_cb
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.4:
	cmpl	$130, %eax
	je	LBB0_9
## %bb.5:
	cmpl	$129, %eax
	jne	LBB0_8
## %bb.6:
	incl	8(%rbx)
	jmp	LBB0_10
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_7:
	incl	(%rbx)
	jmp	LBB0_10
LBB0_9:
	incl	4(%rbx)
LBB0_10:
	leaq	4(%r14), %rdi
	movq	%r15, %rsi
	callq	_skb_queue_tail
	movq	%r14, %rdi
	callq	_schedule_work
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_8:
	movq	_EILSEQ@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	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	_HCI_RUNNING,4,2                ## @HCI_RUNNING
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.no_dead_strip	_btsdio_send_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btsdio_send_frame
_btsdio_send_frame:                     ; @btsdio_send_frame
	.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	x20, x0
	ldr	x21, [x0]
	ldr	x19, [x21, #24]
	ldr	w1, [x21, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_DBG
Lloh2:
	adrp	x8, _HCI_RUNNING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HCI_RUNNING@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x21, #12
	bl	_test_bit
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_bt_cb
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #130
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_9
; %bb.4:
	ldr	w8, [x21, #8]
	add	w8, w8, #1
	str	w8, [x21, #8]
	b	LBB0_8
LBB0_5:
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	b	LBB0_8
LBB0_7:
	ldr	w8, [x21, #4]
	add	w8, w8, #1
	str	w8, [x21, #4]
LBB0_8:
	add	x0, x19, #4
	mov	x1, x20
	bl	_skb_queue_tail
	mov	x0, x19
	bl	_schedule_work
	mov	w0, #0
	b	LBB0_11
LBB0_9:
Lloh7:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_HCI_RUNNING,4,2                ; @HCI_RUNNING
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.no_dead_strip	_btsdio_send_frame
.subsections_via_symbols
