	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_driver_bsd_get_scan_results2 ## -- Begin function wpa_driver_bsd_get_scan_results2
	.p2align	4, 0x90
_wpa_driver_bsd_get_scan_results2:      ## @wpa_driver_bsd_get_scan_results2
	.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
	movl	$98320, %eax                    ## imm = 0x18010
	callq	____chkstk_darwin
	subq	%rax, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_IEEE80211_IOC_SCAN_RESULTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-98352(%rbp), %r12
	movq	%r12, %rdx
	movl	$24576, %ecx                    ## imm = 0x6000
	callq	_get80211var
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movl	%eax, %r14d
	movl	$8, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r15
	cmpl	$8, %r14d
	jb	LBB0_5
## %bb.3:
	movl	%r14d, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_wpa_driver_bsd_add_scan_entry
	movq	(%r12), %rax
	leaq	(%r12,%rax,4), %r12
	subl	%eax, %ebx
	cmpl	$7, %ebx
	ja	LBB0_4
LBB0_5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rcx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_wpa_printf
	jmp	LBB0_8
LBB0_7:
	xorl	%r15d, %r15d
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movq	%r15, %rax
	addq	$98320, %rsp                    ## imm = 0x18010
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_IOC_SCAN_RESULTS,4,2 ## @IEEE80211_IOC_SCAN_RESULTS
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Received %d bytes of scan results (%lu BSSes)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_driver_bsd_get_scan_results2 ; -- Begin function wpa_driver_bsd_get_scan_results2
	.p2align	2
_wpa_driver_bsd_get_scan_results2:      ; @wpa_driver_bsd_get_scan_results2
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -56
	.cfi_offset w28, -64
	mov	w9, #32784
	movk	w9, #1, lsl #16
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #24, lsl #12            ; =98304
	sub	sp, sp, #16
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh5:
	adrp	x8, _IEEE80211_IOC_SCAN_RESULTS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IEEE80211_IOC_SCAN_RESULTS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	w3, #24576
	bl	_get80211var
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x20, x0
	mov	w0, #8
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.2:
	cmp	w20, #8
	b.lo	LBB0_5
; %bb.3:
	add	x21, sp, #8
	mov	x22, x20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_wpa_driver_bsd_add_scan_entry
	ldr	x8, [x21]
	add	x21, x21, x8, lsl #2
	sub	w22, w22, w8
	cmp	w22, #7
	b.hi	LBB0_4
LBB0_5:
Lloh8:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x3, [x19]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_wpa_printf
	b	LBB0_7
LBB0_6:
	mov	x19, #0
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x19
	add	sp, sp, #24, lsl #12            ; =98304
	add	sp, sp, #16
	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	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_IOC_SCAN_RESULTS,4,2 ; @IEEE80211_IOC_SCAN_RESULTS
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Received %d bytes of scan results (%lu BSSes)"

.subsections_via_symbols
