	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wcn36xx_smd_hw_scan_ind
_wcn36xx_smd_hw_scan_ind:               ## @wcn36xx_smd_hw_scan_ind
	.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	$0, -32(%rbp)
	cmpq	$4, %rdx
	jne	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_WCN36XX_DBG_HAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rsi), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_wcn36xx_dbg
	movl	(%rbx), %esi
	xorl	%ebx, %ebx
	leal	-128(%rsi), %eax
	cmpl	$4, %eax
	jb	LBB0_10
## %bb.3:
	leal	-132(%rsi), %eax
	cmpl	$2, %eax
	jae	LBB0_4
## %bb.6:
	movl	$1, -32(%rbp)
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wcn36xx_warn
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_4:
	cmpl	$134, %esi
	jne	LBB0_5
LBB0_7:
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	$0, 16(%r14)
	cmpl	$0, 8(%r14)
	je	LBB0_9
## %bb.8:
	movl	$1, -32(%rbp)
LBB0_9:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	(%r14), %edi
	leaq	-32(%rbp), %rsi
	callq	_ieee80211_scan_completed
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_wcn36xx_warn
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Corrupted delete scan indication\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_WCN36XX_DBG_HAL,4,2            ## @WCN36XX_DBG_HAL
L_.str.1:                               ## @.str.1
	.asciz	"scan indication (type %x)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unknown scan indication type %x\n"

	.no_dead_strip	_wcn36xx_smd_hw_scan_ind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wcn36xx_smd_hw_scan_ind
_wcn36xx_smd_hw_scan_ind:               ; @wcn36xx_smd_hw_scan_ind
	.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
	str	wzr, [sp, #8]
	cmp	x2, #4
	b.ne	LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _WCN36XX_DBG_HAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WCN36XX_DBG_HAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x1]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wcn36xx_dbg
	ldr	w8, [x20]
	sub	w9, w8, #128
	cmp	w9, #4
	b.lo	LBB0_10
; %bb.2:
	sub	w9, w8, #132
	cmp	w9, #2
	b.hs	LBB0_5
; %bb.3:
	mov	w8, #1
	str	w8, [sp, #8]
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_wcn36xx_warn
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_5:
	cmp	w8, #134
	b.ne	LBB0_9
LBB0_6:
	add	x20, x19, #4
	mov	x0, x20
	bl	_mutex_lock
	str	xzr, [x19, #16]
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_8
; %bb.7:
	mov	w8, #1
	str	w8, [sp, #8]
LBB0_8:
	mov	x0, x20
	bl	_mutex_unlock
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_ieee80211_scan_completed
	b	LBB0_10
LBB0_9:
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_wcn36xx_warn
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Corrupted delete scan indication\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_WCN36XX_DBG_HAL,4,2            ; @WCN36XX_DBG_HAL
l_.str.1:                               ; @.str.1
	.asciz	"scan indication (type %x)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unknown scan indication type %x\n"

	.no_dead_strip	_wcn36xx_smd_hw_scan_ind
.subsections_via_symbols
