	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nl80211_get_scan_results
_nl80211_get_scan_results:              ## @nl80211_get_scan_results
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$16, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r12
	movl	(%r14), %edi
	movq	_NLM_F_DUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NL80211_CMD_GET_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_nl80211_cmd_msg
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%r14, -48(%rbp)
	movq	%r12, -56(%rbp)
	movq	_bss_info_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-56(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_send_and_recv_msgs
	testl	%eax, %eax
	je	LBB0_3
## %bb.7:
	movl	%eax, %r15d
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r15d, %edi
	negl	%edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_8:
	movq	%r12, %rdi
	callq	_wpa_scan_results_free
LBB0_9:
	xorl	%r12d, %r12d
LBB0_10:
	movq	%r12, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_nl80211_get_noise_for_scan_results
	testq	%rax, %rax
	jne	LBB0_10
## %bb.4:
	cmpq	$0, (%r12)
	je	LBB0_10
## %bb.5:
	xorl	%ebx, %ebx
	leaq	-40(%rbp), %r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movq	%r14, %rsi
	callq	_nl80211_update_scan_res_noise
	incq	%rbx
	cmpq	(%r12), %rbx
	jb	LBB0_6
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_NLM_F_DUMP,4,2                 ## @NLM_F_DUMP
	.comm	_NL80211_CMD_GET_SCAN,4,2       ## @NL80211_CMD_GET_SCAN
	.comm	_bss_info_handler,4,2           ## @bss_info_handler
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nl80211: Received scan results (%lu BSSes)"

L_.str.1:                               ## @.str.1
	.asciz	"nl80211: Scan result fetch failed: ret=%d (%s)"

	.no_dead_strip	_nl80211_get_scan_results
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nl80211_get_scan_results
_nl80211_get_scan_results:              ; @nl80211_get_scan_results
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x0
	mov	w0, #16
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w0, [x20]
Lloh0:
	adrp	x8, _NLM_F_DUMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NLM_F_DUMP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _NL80211_CMD_GET_SCAN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_CMD_GET_SCAN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_nl80211_cmd_msg
	cbz	x0, LBB0_4
; %bb.2:
	mov	x1, x0
	stp	x19, x20, [sp, #16]
Lloh6:
	adrp	x8, _bss_info_handler@GOTPAGE
Lloh7:
	ldr	x8, [x8, _bss_info_handler@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #16
	mov	x0, x20
	bl	_send_and_recv_msgs
	cbz	w0, LBB0_6
; %bb.3:
	mov	x21, x0
Lloh9:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
	neg	w0, w0
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_wpa_printf
LBB0_4:
	mov	x0, x19
	bl	_wpa_scan_results_free
	mov	x19, #0
LBB0_5:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
LBB0_6:
Lloh14:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	add	x1, sp, #8
	mov	x0, x20
	bl	_nl80211_get_noise_for_scan_results
	cbnz	x0, LBB0_5
; %bb.7:
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.8:
	mov	x20, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x20, lsl #2]
	add	x1, sp, #8
	bl	_nl80211_update_scan_res_noise
	add	x20, x20, #1
	ldr	x8, [x19]
	cmp	x20, x8
	b.lo	LBB0_9
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NLM_F_DUMP,4,2                 ; @NLM_F_DUMP
	.comm	_NL80211_CMD_GET_SCAN,4,2       ; @NL80211_CMD_GET_SCAN
	.comm	_bss_info_handler,4,2           ; @bss_info_handler
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nl80211: Received scan results (%lu BSSes)"

l_.str.1:                               ; @.str.1
	.asciz	"nl80211: Scan result fetch failed: ret=%d (%s)"

	.no_dead_strip	_nl80211_get_scan_results
.subsections_via_symbols
