	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wcn36xx_hw_scan
_wcn36xx_hw_scan:                       ## @wcn36xx_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	(%rdi), %rbx
	leaq	12(%rbx), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	$0, (%rbx)
	movq	%r14, 16(%rbx)
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	8(%rbx), %edi
	movq	_SCAN_OFFLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_get_feat_caps
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wcn36xx_smd_start_hw_scan      ## TAILCALL
LBB0_3:
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_schedule_work
	xorl	%eax, %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_SCAN_OFFLOAD,4,2               ## @SCAN_OFFLOAD
	.no_dead_strip	_wcn36xx_hw_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wcn36xx_hw_scan
_wcn36xx_hw_scan:                       ; @wcn36xx_hw_scan
	.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, x2
	mov	x20, x1
	ldr	x21, [x0]
	add	x22, x21, #12
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x22
	bl	_mutex_unlock
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	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
LBB0_3:
	str	wzr, [x21]
	str	x19, [x21, #16]
	mov	x0, x22
	bl	_mutex_unlock
	ldr	w0, [x21, #8]
Lloh3:
	adrp	x8, _SCAN_OFFLOAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCAN_OFFLOAD@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_get_feat_caps
	cbz	w0, LBB0_5
; %bb.4:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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	_wcn36xx_smd_start_hw_scan
LBB0_5:
	add	x0, x21, #4
	bl	_schedule_work
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_SCAN_OFFLOAD,4,2               ; @SCAN_OFFLOAD
	.no_dead_strip	_wcn36xx_hw_scan
.subsections_via_symbols
