	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_btmrvl_send_module_cfg_cmd     ## -- Begin function btmrvl_send_module_cfg_cmd
	.p2align	4, 0x90
_btmrvl_send_module_cfg_cmd:            ## @btmrvl_send_module_cfg_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_bt_skb_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$24, %esi
	callq	_skb_put
	movq	%rax, %r12
	movq	_OGF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BT_CMD_MODULE_CFG_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hci_opcode_pack
	movl	%eax, %edi
	callq	_cpu_to_le16
	movl	%eax, 16(%r12)
	movl	$1, (%r12)
	movq	8(%r12), %rax
	movl	%r14d, (%rax)
	movq	_MRVL_VENDOR_PKT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_bt_cb
	movl	%r12d, (%rax)
	movq	8(%r15), %rax
	movq	%rax, (%rbx)
	movq	16(%r15), %rdi
	addq	$8, %rdi
	movq	%rbx, %rsi
	callq	_skb_queue_head
	movl	$1, (%r15)
	movq	16(%r15), %rax
	movl	$0, (%rax)
	leaq	L_.str.1(%rip), %rdi
	callq	_BT_DBG
	leaq	24(%r15), %rdi
	callq	_wake_up_interruptible
	movq	16(%r15), %rax
	movl	(%rax), %r12d
	movl	4(%rax), %ebx
	movq	_WAIT_UNTIL_CMD_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movl	%ebx, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_wait_event_interruptible_timeout
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movl	(%r15), %edx
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_BT_ERR
LBB0_4:
	leaq	L_.str.3(%rip), %rdi
	callq	_BT_DBG
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BT_ERR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No free skb"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_OGF,4,2                        ## @OGF
	.comm	_BT_CMD_MODULE_CFG_REQ,4,2      ## @BT_CMD_MODULE_CFG_REQ
	.comm	_MRVL_VENDOR_PKT,4,2            ## @MRVL_VENDOR_PKT
L_.str.1:                               ## @.str.1
	.asciz	"Queue module cfg Command"

	.comm	_WAIT_UNTIL_CMD_RESP,4,2        ## @WAIT_UNTIL_CMD_RESP
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.2:                               ## @.str.2
	.asciz	"module_cfg_cmd(%x): timeout: %d"

L_.str.3:                               ## @.str.3
	.asciz	"module cfg Command done"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_btmrvl_send_module_cfg_cmd     ; -- Begin function btmrvl_send_module_cfg_cmd
	.p2align	2
_btmrvl_send_module_cfg_cmd:            ; @btmrvl_send_module_cfg_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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_bt_skb_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	mov	w1, #24
	bl	_skb_put
	mov	x22, x0
Lloh3:
	adrp	x8, _OGF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OGF@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _BT_CMD_MODULE_CFG_REQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BT_CMD_MODULE_CFG_REQ@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_hci_opcode_pack
	bl	_cpu_to_le16
	str	w0, [x22, #16]
	mov	w23, #1
	str	w23, [x22]
	ldr	x8, [x22, #8]
	str	w19, [x8]
Lloh9:
	adrp	x8, _MRVL_VENDOR_PKT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MRVL_VENDOR_PKT@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_bt_cb
	str	w22, [x0]
	ldp	x8, x9, [x20, #8]
	str	x8, [x21]
	add	x0, x9, #8
	mov	x1, x21
	bl	_skb_queue_head
	str	w23, [x20]
	ldr	x8, [x20, #16]
	str	wzr, [x8]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BT_DBG
	add	x0, x20, #24
	bl	_wake_up_interruptible
	ldr	x8, [x20, #16]
	ldp	w22, w21, [x8]
Lloh14:
	adrp	x8, _WAIT_UNTIL_CMD_RESP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WAIT_UNTIL_CMD_RESP@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_wait_event_interruptible_timeout
	mov	w21, #0
	cbnz	w0, LBB0_3
; %bb.2:
Lloh17:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	w8, [x20]
	stp	x19, x8, [sp]
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_BT_ERR
LBB0_3:
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_BT_DBG
	b	LBB0_5
LBB0_4:
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_ERR
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No free skb"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_OGF,4,2                        ; @OGF
	.comm	_BT_CMD_MODULE_CFG_REQ,4,2      ; @BT_CMD_MODULE_CFG_REQ
	.comm	_MRVL_VENDOR_PKT,4,2            ; @MRVL_VENDOR_PKT
l_.str.1:                               ; @.str.1
	.asciz	"Queue module cfg Command"

	.comm	_WAIT_UNTIL_CMD_RESP,4,2        ; @WAIT_UNTIL_CMD_RESP
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.2:                               ; @.str.2
	.asciz	"module_cfg_cmd(%x): timeout: %d"

l_.str.3:                               ; @.str.3
	.asciz	"module cfg Command done"

.subsections_via_symbols
