	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwlagn_mac_hw_scan
_iwlagn_mac_hw_scan:                    ## @iwlagn_mac_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, %r12
	movq	%rsi, %r15
	callq	_IWL_MAC80211_GET_DVM
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_IWL_DEBUG_MAC80211
	cmpq	$0, (%r12)
	je	LBB0_4
## %bb.1:
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rdx
	movq	_IWL_SCAN_NORMAL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_5
## %bb.2:
	movq	%r12, 24(%rbx)
	movq	%r15, 16(%rbx)
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_iwl_scan_initiate
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %r15d
	movq	%rbx, %rax
	addq	$16, %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	jmp	LBB0_7
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_DEBUG_SCAN
	movq	%r12, 24(%rbx)
	movq	%r15, 16(%rbx)
LBB0_6:
	xorl	%r15d, %r15d
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_DEBUG_MAC80211
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_8:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enter\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IWL_SCAN_NORMAL,8,3            ## @IWL_SCAN_NORMAL
L_.str.1:                               ## @.str.1
	.asciz	"SCAN request during internal scan - defer\n"

L_.str.2:                               ## @.str.2
	.asciz	"leave\n"

	.no_dead_strip	_iwlagn_mac_hw_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwlagn_mac_hw_scan
_iwlagn_mac_hw_scan:                    ; @iwlagn_mac_hw_scan
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x2
	mov	x21, x1
	bl	_IWL_MAC80211_GET_DVM
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_IWL_DEBUG_MAC80211
	ldr	x8, [x22]
	cbz	x8, LBB0_4
; %bb.1:
	add	x20, x19, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	x2, [x19]
Lloh2:
	adrp	x8, _IWL_SCAN_NORMAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IWL_SCAN_NORMAL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_5
; %bb.2:
	str	x22, [x19, #24]
	mov	x24, x19
	str	x21, [x24, #16]!
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_iwl_scan_initiate
	mov	x23, x0
	cbz	w0, LBB0_6
; %bb.3:
	stp	xzr, xzr, [x24]
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_SCAN
	mov	w23, #0
	stp	x21, x22, [x19, #16]
LBB0_6:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_MAC80211
	mov	x0, x20
	bl	_mutex_unlock
LBB0_7:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enter\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IWL_SCAN_NORMAL,8,3            ; @IWL_SCAN_NORMAL
l_.str.1:                               ; @.str.1
	.asciz	"SCAN request during internal scan - defer\n"

l_.str.2:                               ; @.str.2
	.asciz	"leave\n"

	.no_dead_strip	_iwlagn_mac_hw_scan
.subsections_via_symbols
