	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_send_cmd                   ## -- Begin function hci_send_cmd
	.p2align	4, 0x90
_hci_send_cmd:                          ## @hci_send_cmd
	.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	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	_HCI_COMMAND_HDR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	%edx, %ebx
	movl	4(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%r12d, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_BT_DBG
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_bt_skb_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_HCI_COMMAND_HDR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_skb_put
	movq	%rax, %r15
	movl	%r12d, %edi
	callq	_cpu_to_le16
	movl	%eax, 4(%r15)
	movl	%r13d, (%r15)
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_skb_put
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_memcpy
LBB0_4:
	movl	8(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_BT_DBG
	movq	_HCI_COMMAND_PKT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_bt_cb
	movl	%r12d, (%rax)
	movq	%r14, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_skb_queue_tail
	movq	%r14, %rdi
	callq	_hci_sched_cmd
	jmp	LBB0_5
LBB0_1:
	movl	4(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_BT_ERR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCI_COMMAND_HDR_SIZE,4,2       ## @HCI_COMMAND_HDR_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s opcode 0x%x plen %d"

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.1:                               ## @.str.1
	.asciz	"%s no memory for command"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"skb len %d"

	.comm	_HCI_COMMAND_PKT,4,2            ## @HCI_COMMAND_PKT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_send_cmd                   ; -- Begin function hci_send_cmd
	.p2align	2
_hci_send_cmd:                          ; @hci_send_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _HCI_COMMAND_HDR_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HCI_COMMAND_HDR_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	add	w22, w8, w2
	ldr	w1, [x0, #4]
	stp	x23, x21, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_DBG
Lloh4:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_bt_skb_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	ldr	w1, [x24]
	bl	_skb_put
	mov	x24, x0
	mov	x0, x23
	bl	_cpu_to_le16
	stp	w21, w0, [x24]
	cbz	w21, LBB0_3
; %bb.2:
	mov	x0, x22
	mov	x1, x21
	bl	_skb_put
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
LBB0_3:
	ldr	w1, [x22, #8]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_BT_DBG
Lloh9:
	adrp	x8, _HCI_COMMAND_PKT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HCI_COMMAND_PKT@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
	mov	x0, x22
	bl	_bt_cb
	str	w20, [x0]
	str	x19, [x22]
	mov	x0, x19
	mov	x1, x22
	bl	_skb_queue_tail
	mov	x0, x19
	bl	_hci_sched_cmd
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	ldr	w1, [x19, #4]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BT_ERR
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HCI_COMMAND_HDR_SIZE,4,2       ; @HCI_COMMAND_HDR_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s opcode 0x%x plen %d"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.1:                               ; @.str.1
	.asciz	"%s no memory for command"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"skb len %d"

	.comm	_HCI_COMMAND_PKT,4,2            ; @HCI_COMMAND_PKT
.subsections_via_symbols
