	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_scan_state_set_channel
_ieee80211_scan_state_set_channel:      ## @ieee80211_scan_state_set_channel
	.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, %rbx
	movq	(%rdi), %rax
	movq	16(%rdi), %rcx
	movq	8(%rcx), %rcx
	movq	(%rcx,%rax,8), %r15
	movq	%r15, 24(%rdi)
	movq	_IEEE80211_CONF_CHANGE_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ieee80211_hw_config
	incq	(%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_SCAN_DECISION@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movq	_IEEE80211_CHAN_PASSIVE_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.3:
	movq	_SCAN_DECISION@GOTPCREL(%rip), %rax
	movq	_IEEE80211_PASSIVE_CHANNEL_TIME@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_4:
	movq	16(%rbx), %rax
	cmpl	$0, (%rax)
	movq	_IEEE80211_PROBE_DELAY@GOTPCREL(%rip), %rcx
	cmoveq	_IEEE80211_PASSIVE_CHANNEL_TIME@GOTPCREL(%rip), %rcx
	movq	_SCAN_SEND_PROBE@GOTPCREL(%rip), %rax
	cmoveq	_SCAN_DECISION@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rcx), %rcx
	movq	%rcx, (%r14)
LBB0_6:
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_CONF_CHANGE_CHANNEL,4,2 ## @IEEE80211_CONF_CHANGE_CHANNEL
	.comm	_SCAN_DECISION,8,3              ## @SCAN_DECISION
	.comm	_IEEE80211_CHAN_PASSIVE_SCAN,4,2 ## @IEEE80211_CHAN_PASSIVE_SCAN
	.comm	_IEEE80211_PASSIVE_CHANNEL_TIME,8,3 ## @IEEE80211_PASSIVE_CHANNEL_TIME
	.comm	_IEEE80211_PROBE_DELAY,8,3      ## @IEEE80211_PROBE_DELAY
	.comm	_SCAN_SEND_PROBE,8,3            ## @SCAN_SEND_PROBE
	.no_dead_strip	_ieee80211_scan_state_set_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_scan_state_set_channel
_ieee80211_scan_state_set_channel:      ; @ieee80211_scan_state_set_channel
	.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	x19, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8, #8]
	ldr	x9, [x0]
	ldr	x21, [x8, x9, lsl #3]
	str	x21, [x0, #24]
Lloh0:
	adrp	x8, _IEEE80211_CONF_CHANGE_CHANNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_CONF_CHANGE_CHANNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ieee80211_hw_config
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SCAN_DECISION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCAN_DECISION@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	ldr	w10, [x21]
Lloh5:
	adrp	x8, _IEEE80211_CHAN_PASSIVE_SCAN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IEEE80211_CHAN_PASSIVE_SCAN@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x8]
Lloh8:
	adrp	x8, _SCAN_DECISION@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SCAN_DECISION@GOTPAGEOFF]
Lloh10:
	adrp	x9, _IEEE80211_PASSIVE_CHANNEL_TIME@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IEEE80211_PASSIVE_CHANNEL_TIME@GOTPAGEOFF]
	tst	w11, w10
	b.ne	LBB0_4
; %bb.3:
	ldr	x10, [x19, #16]
Lloh12:
	adrp	x11, _IEEE80211_PROBE_DELAY@GOTPAGE
Lloh13:
	ldr	x11, [x11, _IEEE80211_PROBE_DELAY@GOTPAGEOFF]
	ldr	w10, [x10]
	cmp	w10, #0
	csel	x9, x9, x11, eq
Lloh14:
	adrp	x10, _SCAN_SEND_PROBE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _SCAN_SEND_PROBE@GOTPAGEOFF]
	csel	x8, x8, x10, eq
LBB0_4:
	ldr	x9, [x9]
	str	x9, [x20]
LBB0_5:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_CONF_CHANGE_CHANNEL,4,2 ; @IEEE80211_CONF_CHANGE_CHANNEL
	.comm	_SCAN_DECISION,8,3              ; @SCAN_DECISION
	.comm	_IEEE80211_CHAN_PASSIVE_SCAN,4,2 ; @IEEE80211_CHAN_PASSIVE_SCAN
	.comm	_IEEE80211_PASSIVE_CHANNEL_TIME,8,3 ; @IEEE80211_PASSIVE_CHANNEL_TIME
	.comm	_IEEE80211_PROBE_DELAY,8,3      ; @IEEE80211_PROBE_DELAY
	.comm	_SCAN_SEND_PROBE,8,3            ; @SCAN_SEND_PROBE
	.no_dead_strip	_ieee80211_scan_state_set_channel
.subsections_via_symbols
