	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_scan
_ieee80211_scan:                        ## @ieee80211_scan
	.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
	movl	4(%rsi), %edi
	callq	_IEEE80211_WDEV_TO_SUB_IF
	movq	%rax, %rbx
	leaq	16(%rax), %rdi
	callq	_ieee80211_vif_type_p2p
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_7
## %bb.1:
	movl	$93, %ecx
	btl	%eax, %ecx
	jae	LBB0_2
LBB0_8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_request_scan         ## TAILCALL
LBB0_2:
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.3:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	jne	LBB0_8
LBB0_4:
	cmpl	$0, (%rbx)
	je	LBB0_8
## %bb.5:
	movq	_NL80211_FEATURE_AP_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_7
## %bb.6:
	movq	_NL80211_SCAN_FLAG_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_8
LBB0_7:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_FEATURE_AP_SCAN,4,2    ## @NL80211_FEATURE_AP_SCAN
	.comm	_NL80211_SCAN_FLAG_AP,4,2       ## @NL80211_SCAN_FLAG_AP
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_ieee80211_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_scan
_ieee80211_scan:                        ; @ieee80211_scan
	.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	x19, x1
	mov	x21, x0
	ldr	w0, [x1, #4]
	bl	_IEEE80211_WDEV_TO_SUB_IF
	mov	x20, x0
	add	x0, x0, #16
	bl	_ieee80211_vif_type_p2p
	sub	w8, w0, #128
	cmp	w8, #6
	b.hi	LBB0_8
; %bb.1:
	mov	w9, #1
	lsl	w9, w9, w8
	mov	w10, #93
	tst	w9, w10
	b.eq	LBB0_3
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	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
	b	_ieee80211_request_scan
LBB0_3:
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbnz	w8, LBB0_2
LBB0_5:
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.6:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _NL80211_FEATURE_AP_SCAN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_FEATURE_AP_SCAN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _NL80211_SCAN_FLAG_AP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_SCAN_FLAG_AP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
LBB0_8:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_FEATURE_AP_SCAN,4,2    ; @NL80211_FEATURE_AP_SCAN
	.comm	_NL80211_SCAN_FLAG_AP,4,2       ; @NL80211_SCAN_FLAG_AP
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_ieee80211_scan
.subsections_via_symbols
