	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_bmi_done                ## -- Begin function ath6kl_bmi_done
	.p2align	4, 0x90
_ath6kl_bmi_done:                       ## @ath6kl_bmi_done
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_BMI_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -12(%rbp)
	cmpl	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_ATH6KL_DBG_BMI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_ath6kl_dbg
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_2:
	movl	$1, (%rdi)
	leaq	-12(%rbp), %rsi
	movl	$4, %edx
	callq	_ath6kl_hif_bmi_write
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_ath6kl_err
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BMI_DONE,4,2                   ## @BMI_DONE
	.comm	_ATH6KL_DBG_BMI,4,2             ## @ATH6KL_DBG_BMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bmi done skipped\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to send bmi done: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_bmi_done                ; -- Begin function ath6kl_bmi_done
	.p2align	2
_ath6kl_bmi_done:                       ; @ath6kl_bmi_done
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _BMI_DONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BMI_DONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ATH6KL_DBG_BMI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH6KL_DBG_BMI@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ath6kl_dbg
	mov	w19, #0
	b	LBB0_4
LBB0_2:
	mov	w8, #1
	str	w8, [x0]
	add	x1, sp, #12
	mov	w2, #4
	bl	_ath6kl_hif_bmi_write
	mov	x19, x0
	cbz	w0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_ath6kl_err
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_BMI_DONE,4,2                   ; @BMI_DONE
	.comm	_ATH6KL_DBG_BMI,4,2             ; @ATH6KL_DBG_BMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bmi done skipped\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to send bmi done: %d\n"

.subsections_via_symbols
