	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_save_hidden_ssid_channels
_mwifiex_save_hidden_ssid_channels:     ## @mwifiex_save_hidden_ssid_channels
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_mwifiex_fill_new_bss_desc
	testl	%eax, %eax
	je	LBB0_3
LBB0_10:
	movq	(%rbx), %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_mwifiex_is_hidden_ssid
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movl	8(%r15), %edi
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_mwifiex_dbg
	movq	_MWIFIEX_USER_SCAN_CHAN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.5:
	movq	(%r15), %rcx
	movq	(%r14), %r8
	movq	(%r8), %rdi
	shlq	$4, %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi), %rdx
	cmpq	%rdi, %rdx
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	addq	$16, %rsi
	cmpq	%rsi, %rax
	jne	LBB0_6
	jmp	LBB0_10
LBB0_8:
	movq	%rdi, (%rcx,%rsi)
	movl	8(%r8), %eax
	movl	%eax, 12(%rcx,%rsi)
	movq	_MWIFIEX_SCAN_TYPE_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rcx,%rsi)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_INFO,4,2                       ## @INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"found hidden SSID\n"

	.comm	_MWIFIEX_USER_SCAN_CHAN_MAX,4,2 ## @MWIFIEX_USER_SCAN_CHAN_MAX
	.comm	_MWIFIEX_SCAN_TYPE_ACTIVE,4,2   ## @MWIFIEX_SCAN_TYPE_ACTIVE
	.no_dead_strip	_mwifiex_save_hidden_ssid_channels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_save_hidden_ssid_channels
_mwifiex_save_hidden_ssid_channels:     ; @mwifiex_save_hidden_ssid_channels
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_mwifiex_fill_new_bss_desc
	cbz	w0, LBB0_5
LBB0_2:
	ldr	x0, [x19]
	bl	_kfree
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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_5:
	add	x0, x19, #8
	bl	_mwifiex_is_hidden_ssid
	cbz	x0, LBB0_2
; %bb.6:
	ldr	w0, [x21, #8]
Lloh6:
	adrp	x8, _INFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mwifiex_dbg
Lloh11:
	adrp	x8, _MWIFIEX_USER_SCAN_CHAN_MAX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MWIFIEX_USER_SCAN_CHAN_MAX@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.7:
	ldr	x9, [x21]
	ldr	x10, [x20]
	ldr	x11, [x10]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9]
	cmp	x12, x11
	b.eq	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	x12, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x9, x9, #16
	subs	x8, x8, #1
	b.ne	LBB0_8
	b	LBB0_2
LBB0_11:
	str	x11, [x9]
	ldr	w8, [x10, #8]
	str	w8, [x9, #12]
Lloh14:
	adrp	x8, _MWIFIEX_SCAN_TYPE_ACTIVE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MWIFIEX_SCAN_TYPE_ACTIVE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x9, #8]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_INFO,4,2                       ; @INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"found hidden SSID\n"

	.comm	_MWIFIEX_USER_SCAN_CHAN_MAX,4,2 ; @MWIFIEX_USER_SCAN_CHAN_MAX
	.comm	_MWIFIEX_SCAN_TYPE_ACTIVE,4,2   ; @MWIFIEX_SCAN_TYPE_ACTIVE
	.no_dead_strip	_mwifiex_save_hidden_ssid_channels
.subsections_via_symbols
