	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1271_op_hw_scan
_wl1271_op_hw_scan:                     ## @wl1271_op_hw_scan
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	(%rdi), %r15
	movq	_DEBUG_MAC80211@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wl1271_debug
	cmpq	$0, 8(%rbx)
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movq	(%rax), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_3:
	leaq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%r15), %rax
	movq	_WLCORE_STATE_ON@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_11
LBB0_5:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	12(%r15), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	16(%r15), %edi
	movq	_WL12XX_MAX_ROLES@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	callq	_find_first_bit
	cmpq	(%r13), %rax
	jge	LBB0_9
## %bb.8:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_10
LBB0_6:
	movl	%eax, %r13d
	movl	12(%r15), %edi
	callq	_pm_runtime_put_noidle
	jmp	LBB0_11
LBB0_9:
	movq	(%r12), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, %r8
	callq	_wlcore_scan
	movl	%eax, %r13d
LBB0_10:
	movl	12(%r15), %edi
	callq	_pm_runtime_mark_last_busy
	movl	12(%r15), %edi
	callq	_pm_runtime_put_autosuspend
LBB0_11:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_MAC80211,4,2             ## @DEBUG_MAC80211
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac80211 hw scan"

	.comm	_WLCORE_STATE_ON,8,3            ## @WLCORE_STATE_ON
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_WL12XX_MAX_ROLES,8,3           ## @WL12XX_MAX_ROLES
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_wl1271_op_hw_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1271_op_hw_scan
_wl1271_op_hw_scan:                     ; @wl1271_op_hw_scan
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x26, [x0]
Lloh0:
	adrp	x8, _DEBUG_MAC80211@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG_MAC80211@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1271_debug
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldp	x24, x23, [x8]
	b	LBB0_3
LBB0_2:
	mov	x23, #0
	mov	x24, #0
LBB0_3:
	add	x19, x26, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x26]
Lloh5:
	adrp	x9, _WLCORE_STATE_ON@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WLCORE_STATE_ON@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_11
LBB0_5:
	ldr	w0, [x26, #12]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_8
; %bb.6:
	ldr	w0, [x26, #16]
Lloh11:
	adrp	x25, _WL12XX_MAX_ROLES@GOTPAGE
Lloh12:
	ldr	x25, [x25, _WL12XX_MAX_ROLES@GOTPAGEOFF]
	ldr	x1, [x25]
	bl	_find_first_bit
	ldr	x8, [x25]
	cmp	x0, x8
	b.ge	LBB0_9
; %bb.7:
Lloh13:
	adrp	x8, _EBUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_10
LBB0_8:
	mov	x25, x0
	ldr	w0, [x26, #12]
	bl	_pm_runtime_put_noidle
	b	LBB0_11
LBB0_9:
	ldr	x0, [x22]
	mov	x1, x21
	mov	x2, x23
	mov	x3, x24
	mov	x4, x20
	bl	_wlcore_scan
	mov	x25, x0
LBB0_10:
	ldr	w0, [x26, #12]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x26, #12]
	bl	_pm_runtime_put_autosuspend
LBB0_11:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x25
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_MAC80211,4,2             ; @DEBUG_MAC80211
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac80211 hw scan"

	.comm	_WLCORE_STATE_ON,8,3            ; @WLCORE_STATE_ON
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_WL12XX_MAX_ROLES,8,3           ; @WL12XX_MAX_ROLES
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_wl1271_op_hw_scan
.subsections_via_symbols
