	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_bmi_execute             ## -- Begin function ath10k_bmi_execute
	.p2align	4, 0x90
_ath10k_bmi_execute:                    ## @ath10k_bmi_execute
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r15
	movl	$4, -44(%rbp)
	movq	_ATH10K_DBG_BMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%ebx, %ebx
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_ath10k_dbg
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ath10k_warn
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_2:
	movq	_BMI_EXECUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le32
	movq	%rax, -56(%rbp)
	movl	%r13d, %edi
	callq	___cpu_to_le32
	movq	%rax, -64(%rbp)
	movl	%r12d, %edi
	callq	___cpu_to_le32
	movq	%rax, -72(%rbp)
	leaq	-72(%rbp), %rsi
	leaq	-48(%rbp), %rcx
	leaq	-44(%rbp), %r8
	movq	%r15, %rdi
	movl	$24, %edx
	callq	_ath10k_hif_exchange_bmi_msg
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ath10k_warn
	jmp	LBB0_7
LBB0_4:
	movl	-44(%rbp), %edx
	cmpl	$3, %edx
	ja	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ath10k_warn
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_6:
	movl	-48(%rbp), %edi
	callq	___le32_to_cpu
	movl	%eax, (%r14)
	movq	_ATH10K_DBG_BMI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.4(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_ath10k_dbg
LBB0_7:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_DBG_BMI,4,2             ## @ATH10K_DBG_BMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bmi execute address 0x%x param 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"command disallowed\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_BMI_EXECUTE,4,2                ## @BMI_EXECUTE
L_.str.2:                               ## @.str.2
	.asciz	"unable to read from the device\n"

L_.str.3:                               ## @.str.3
	.asciz	"invalid execute response length (%d)\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.4:                               ## @.str.4
	.asciz	"bmi execute result 0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_bmi_execute             ; -- Begin function ath10k_bmi_execute
	.p2align	2
_ath10k_bmi_execute:                    ; @ath10k_bmi_execute
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x1
	mov	x19, x0
	mov	w8, #4
	str	w8, [sp, #12]
Lloh0:
	adrp	x23, _ATH10K_DBG_BMI@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ATH10K_DBG_BMI@GOTPAGEOFF]
	ldr	w1, [x23]
	str	x21, [sp]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x22
	bl	_ath10k_dbg
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.1:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_3:
Lloh8:
	adrp	x8, _BMI_EXECUTE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BMI_EXECUTE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	___cpu_to_le32
	str	x0, [sp, #40]
	mov	x0, x22
	bl	___cpu_to_le32
	str	x0, [sp, #32]
	mov	x0, x21
	bl	___cpu_to_le32
	str	x0, [sp, #24]
	add	x1, sp, #24
	add	x3, sp, #16
	add	x4, sp, #12
	mov	x0, x19
	mov	w2, #24
	bl	_ath10k_hif_exchange_bmi_msg
	cbz	w0, LBB0_5
; %bb.4:
	mov	x21, x0
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
	b	LBB0_8
LBB0_5:
	ldr	w8, [sp, #12]
	cmp	w8, #3
	b.hi	LBB0_7
; %bb.6:
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_2
LBB0_7:
	ldr	w0, [sp, #16]
	bl	___le32_to_cpu
	mov	x3, x0
	str	w0, [x20]
	ldr	w1, [x23]
Lloh17:
	adrp	x2, l_.str.4@PAGE
Lloh18:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
	mov	w21, #0
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_DBG_BMI,4,2             ; @ATH10K_DBG_BMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bmi execute address 0x%x param 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"command disallowed\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_BMI_EXECUTE,4,2                ; @BMI_EXECUTE
l_.str.2:                               ; @.str.2
	.asciz	"unable to read from the device\n"

l_.str.3:                               ; @.str.3
	.asciz	"invalid execute response length (%d)\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.4:                               ; @.str.4
	.asciz	"bmi execute result 0x%x\n"

.subsections_via_symbols
