	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_active_scan_req_for_passive_chan
_mwifiex_active_scan_req_for_passive_chan: ## @mwifiex_active_scan_req_for_passive_chan
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_4
LBB0_1:
	movl	$0, (%rbx)
LBB0_2:
	xorl	%ebx, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rdi, %r15
	cmpq	$0, 16(%rdi)
	je	LBB0_1
## %bb.5:
	cmpq	$0, 24(%r15)
	jne	LBB0_1
## %bb.6:
	movq	8(%r15), %rax
	cmpl	$0, (%rax)
	je	LBB0_16
## %bb.7:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.8:
	movq	%rax, %r12
	leaq	8(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_MWIFIEX_USER_SCAN_CHAN_MAX@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.9:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	cmpl	$0, (%rsi,%r13)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	addq	%r13, %rsi
	movq	16(%r12), %rdi
	addq	%r13, %rdi
	movl	$4, %edx
	callq	_memcpy
	incq	%r14
	addq	$4, %r13
	movq	_MWIFIEX_USER_SCAN_CHAN_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jb	LBB0_10
LBB0_12:
	movl	$1, (%rbx)
	movq	16(%r15), %rax
	movq	_NL80211_SCAN_FLAG_RANDOM_ADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_14
## %bb.13:
	movl	8(%r12), %edi
	movl	12(%rax), %esi
	callq	_ether_addr_copy
	movq	16(%r15), %rax
LBB0_14:
	movl	8(%rax), %ecx
	movl	%ecx, 4(%r12)
	movl	4(%rax), %eax
	movl	%eax, (%r12)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mwifiex_scan_networks
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_kfree
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.15:
	movq	(%r15), %rax
	movl	4(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	callq	_dev_err
	movl	%r13d, %ebx
	jmp	LBB0_3
LBB0_16:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_mwifiex_dbg
	jmp	LBB0_2
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_INFO,4,2                       ## @INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No BSS with hidden SSID found on DFS channels\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MWIFIEX_USER_SCAN_CHAN_MAX,8,3 ## @MWIFIEX_USER_SCAN_CHAN_MAX
	.comm	_NL80211_SCAN_FLAG_RANDOM_ADDR,4,2 ## @NL80211_SCAN_FLAG_RANDOM_ADDR
L_.str.1:                               ## @.str.1
	.asciz	"scan failed: %d\n"

	.no_dead_strip	_mwifiex_active_scan_req_for_passive_chan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_active_scan_req_for_passive_chan
_mwifiex_active_scan_req_for_passive_chan: ; @mwifiex_active_scan_req_for_passive_chan
	.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
	ldr	x21, [x0]
	ldr	w8, [x21]
	cbz	w8, LBB0_3
LBB0_1:
	mov	w23, #0
	str	wzr, [x21]
LBB0_2:
	mov	x0, x23
	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
LBB0_3:
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_1
; %bb.4:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_1
; %bb.5:
	mov	x20, x19
	ldr	x8, [x20, #8]!
	ldr	w8, [x8]
	cbz	w8, LBB0_15
; %bb.6:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_16
; %bb.7:
	mov	x22, x0
Lloh3:
	adrp	x23, _MWIFIEX_USER_SCAN_CHAN_MAX@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MWIFIEX_USER_SCAN_CHAN_MAX@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_11
; %bb.8:
	mov	x24, #0
	mov	x25, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x1, x8, x24
	ldr	w8, [x1]
	cbz	w8, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x22, #16]
	add	x0, x8, x24
	mov	w2, #4
	bl	_memcpy
	add	x25, x25, #1
	ldr	x8, [x23]
	add	x24, x24, #4
	cmp	x25, x8
	b.lo	LBB0_9
LBB0_11:
	mov	w8, #1
	str	w8, [x21]
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
Lloh5:
	adrp	x10, _NL80211_SCAN_FLAG_RANDOM_ADDR@GOTPAGE
Lloh6:
	ldr	x10, [x10, _NL80211_SCAN_FLAG_RANDOM_ADDR@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_13
; %bb.12:
	ldr	w0, [x22, #8]
	ldr	w1, [x8, #12]
	bl	_ether_addr_copy
	ldr	x8, [x19, #16]
LBB0_13:
	ldur	d0, [x8, #4]
	str	d0, [x22]
	mov	x0, x19
	mov	x1, x22
	bl	_mwifiex_scan_networks
	mov	x23, x0
	mov	x0, x22
	bl	_kfree
	mov	x0, x20
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	cbz	w23, LBB0_2
; %bb.14:
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
	bl	_dev_err
	b	LBB0_2
LBB0_15:
Lloh10:
	adrp	x8, _INFO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_mwifiex_dbg
	mov	w23, #0
	b	LBB0_2
LBB0_16:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_INFO,4,2                       ; @INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No BSS with hidden SSID found on DFS channels\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MWIFIEX_USER_SCAN_CHAN_MAX,8,3 ; @MWIFIEX_USER_SCAN_CHAN_MAX
	.comm	_NL80211_SCAN_FLAG_RANDOM_ADDR,4,2 ; @NL80211_SCAN_FLAG_RANDOM_ADDR
l_.str.1:                               ; @.str.1
	.asciz	"scan failed: %d\n"

	.no_dead_strip	_mwifiex_active_scan_req_for_passive_chan
.subsections_via_symbols
