	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_cfg80211_sta_bmiss_enhance
_ath6kl_cfg80211_sta_bmiss_enhance:     ## @ath6kl_cfg80211_sta_bmiss_enhance
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_WMI_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%rbx), %rsi
	addq	$16, %rsi
	callq	_test_bit
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	(%rbx), %rax
	movq	_INFRA_NETWORK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	_ATH6KL_FW_CAPABILITY_BMISS_ENHANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%rbx), %rax
	movq	8(%rax), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_ATH6KL_DBG_WLAN_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%r14d, %r14d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r15
	cmoveq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_ath6kl_dbg
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	movl	%r14d, %edx
	callq	_ath6kl_wmi_sta_bmiss_enhance_cmd
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath6kl_err                     ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_READY,4,2                  ## @WMI_READY
	.comm	_INFRA_NETWORK,8,3              ## @INFRA_NETWORK
	.comm	_ATH6KL_FW_CAPABILITY_BMISS_ENHANCE,4,2 ## @ATH6KL_FW_CAPABILITY_BMISS_ENHANCE
	.comm	_ATH6KL_DBG_WLAN_CFG,4,2        ## @ATH6KL_DBG_WLAN_CFG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s fw bmiss enhance\n"

L_.str.1:                               ## @.str.1
	.asciz	"enable"

L_.str.2:                               ## @.str.2
	.asciz	"disable"

L_.str.3:                               ## @.str.3
	.asciz	"failed to %s enhanced bmiss detection: %d\n"

	.no_dead_strip	_ath6kl_cfg80211_sta_bmiss_enhance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_cfg80211_sta_bmiss_enhance
_ath6kl_cfg80211_sta_bmiss_enhance:     ; @ath6kl_cfg80211_sta_bmiss_enhance
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _WMI_READY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_READY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x20, #16]
	add	x1, x8, #16
	bl	_test_bit
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _INFRA_NETWORK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INFRA_NETWORK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _ATH6KL_FW_CAPABILITY_BMISS_ENHANCE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATH6KL_FW_CAPABILITY_BMISS_ENHANCE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x8, [x20, #16]
	ldr	x1, [x8, #8]
	bl	_test_bit
	cbz	w0, LBB0_5
; %bb.3:
Lloh9:
	adrp	x8, _ATH6KL_DBG_WLAN_CFG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATH6KL_DBG_WLAN_CFG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, l_.str.1@PAGE
Lloh13:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh14:
	adrp	x9, l_.str.2@PAGE
Lloh15:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w19, #0
	csel	x21, x9, x8, eq
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_ath6kl_dbg
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
	mov	x2, x19
	bl	_ath6kl_wmi_sta_bmiss_enhance_cmd
	cbz	w0, LBB0_5
; %bb.4:
	mov	x2, x0
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	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
	b	_ath6kl_err
LBB0_5:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_READY,4,2                  ; @WMI_READY
	.comm	_INFRA_NETWORK,8,3              ; @INFRA_NETWORK
	.comm	_ATH6KL_FW_CAPABILITY_BMISS_ENHANCE,4,2 ; @ATH6KL_FW_CAPABILITY_BMISS_ENHANCE
	.comm	_ATH6KL_DBG_WLAN_CFG,4,2        ; @ATH6KL_DBG_WLAN_CFG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s fw bmiss enhance\n"

l_.str.1:                               ; @.str.1
	.asciz	"enable"

l_.str.2:                               ; @.str.2
	.asciz	"disable"

l_.str.3:                               ; @.str.3
	.asciz	"failed to %s enhanced bmiss detection: %d\n"

	.no_dead_strip	_ath6kl_cfg80211_sta_bmiss_enhance
.subsections_via_symbols
