	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nl80211_dump_survey
_nl80211_dump_survey:                   ## @nl80211_dump_survey
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movl	8(%rax), %r13d
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	callq	_nl80211_prepare_wdev_dump
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	movq	-56(%rbp), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	je	LBB0_2
## %bb.4:
	movq	-48(%rbp), %rdi
	movq	8(%rdi), %rax
	cmpl	$0, (%rax)
	je	LBB0_16
## %bb.5:
	leaq	-64(%rbp), %rcx
	movl	%r13d, %edx
	callq	_rdev_dump_survey
	movl	%eax, %ebx
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_6
LBB0_13:
	movq	(%r15), %rax
	movl	%r13d, 8(%rax)
	movl	(%r14), %ebx
	jmp	LBB0_14
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_16:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movq	-48(%rbp), %rdi
	callq	_nl80211_finish_wdev_dump
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	-64(%rbp), %r12
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%r13d
	movq	-48(%rbp), %rdi
	movq	-56(%rbp), %rax
	movl	(%rax), %esi
	movl	%r13d, %edx
	movq	%r12, %rcx
	callq	_rdev_dump_survey
	movl	%eax, %ebx
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	jne	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rdi
	movl	(%rax), %esi
	callq	_ieee80211_get_channel
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_IEEE80211_CHAN_DISABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	16(%r15), %edi
	callq	_NETLINK_CB
	movq	8(%r15), %rcx
	movl	(%rcx), %edx
	movq	_NLM_F_MULTI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-56(%rbp), %rsi
	movl	(%rsi), %r8d
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r12, %r9
	callq	_nl80211_send_survey
	testq	%rax, %rax
	jns	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_IEEE80211_CHAN_DISABLED,4,2    ## @IEEE80211_CHAN_DISABLED
	.comm	_NLM_F_MULTI,4,2                ## @NLM_F_MULTI
	.no_dead_strip	_nl80211_dump_survey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nl80211_dump_survey
_nl80211_dump_survey:                   ; @nl80211_dump_survey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1]
	ldr	w21, [x8, #8]
	add	x2, sp, #16
	add	x3, sp, #8
	bl	_nl80211_prepare_wdev_dump
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	w1, [x8]
	cbz	w1, LBB0_5
; %bb.2:
	ldr	x0, [sp, #16]
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.3:
	add	x3, sp, #24
	mov	x2, x21
	bl	_rdev_dump_survey
Lloh0:
	adrp	x23, _ENOENT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ENOENT@GOTPAGEOFF]
	ldr	w8, [x23]
	cmn	w0, w8
	b.ne	LBB0_10
LBB0_4:
	ldr	x8, [x20]
	str	w21, [x8, #8]
	ldr	w22, [x19]
	b	LBB0_8
LBB0_5:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	ldr	x0, [sp, #16]
	bl	_nl80211_finish_wdev_dump
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
	mov	x22, x0
Lloh6:
	adrp	x24, _IEEE80211_CHAN_DISABLED@GOTPAGE
Lloh7:
	ldr	x24, [x24, _IEEE80211_CHAN_DISABLED@GOTPAGEOFF]
Lloh8:
	adrp	x25, _NLM_F_MULTI@GOTPAGE
Lloh9:
	ldr	x25, [x25, _NLM_F_MULTI@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w21, w21, #1
	ldp	x8, x0, [sp, #8]
	ldr	w1, [x8]
	add	x3, sp, #24
	mov	x2, x21
	bl	_rdev_dump_survey
	mov	x22, x0
	ldr	w8, [x23]
	cmn	w0, w8
	b.eq	LBB0_4
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	cbnz	w22, LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x0, [sp, #16]
	ldr	w1, [x8]
	bl	_ieee80211_get_channel
	cbz	x0, LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x0]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x20, #16]
	bl	_NETLINK_CB
	mov	x1, x0
	ldr	x8, [x20, #8]
	ldr	w2, [x8]
	ldr	w3, [x25]
	ldr	x8, [sp, #8]
	ldr	w4, [x8]
	add	x5, sp, #24
	mov	x0, x19
	bl	_nl80211_send_survey
	tbz	x0, #63, LBB0_11
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_IEEE80211_CHAN_DISABLED,4,2    ; @IEEE80211_CHAN_DISABLED
	.comm	_NLM_F_MULTI,4,2                ; @NLM_F_MULTI
	.no_dead_strip	_nl80211_dump_survey
.subsections_via_symbols
