	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_mac_ctxt_send_beacon_v9
_iwl_mvm_mac_ctxt_send_beacon_v9:       ## @iwl_mvm_mac_ctxt_send_beacon_v9
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_IEEE80211_SKB_CB
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movq	$0, -80(%rbp)
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_iwl_mvm_mac_ctxt_get_lowest_rate
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_iwl_mvm_mac80211_idx_to_hwrate
	movq	_IWL_FIRST_CCK_RATE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rbx
	jne	LBB0_2
## %bb.1:
	movq	_IWL_MAC_BEACON_CCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
LBB0_2:
	orl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, -56(%rbp)
	movl	(%r13), %edi
	callq	_cpu_to_le16
	movq	%rax, -64(%rbp)
	movl	(%r12), %edi
	callq	_cpu_to_le32
	movq	%rax, -72(%rbp)
	movq	(%r15), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	leaq	-76(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	movl	8(%r13), %ecx
	movq	(%r13), %r8
	movq	%r14, %rdi
	callq	_iwl_mvm_mac_ctxt_set_tim
LBB0_4:
	movl	8(%r13), %edi
	movq	_WLAN_EID_CHANNEL_SWITCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r13), %rdx
	callq	_iwl_mvm_find_ie_offset
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, -88(%rbp)
	movl	8(%r13), %edi
	movq	_WLAN_EID_EXT_CHANSWITCH_ANN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r13), %rdx
	callq	_iwl_mvm_find_ie_offset
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, -96(%rbp)
	leaq	-96(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	$48, %ecx
	callq	_iwl_mvm_mac_ctxt_send_beacon_cmd
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_FIRST_CCK_RATE,8,3         ## @IWL_FIRST_CCK_RATE
	.comm	_IWL_MAC_BEACON_CCK,4,2         ## @IWL_MAC_BEACON_CCK
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_WLAN_EID_CHANNEL_SWITCH,4,2    ## @WLAN_EID_CHANNEL_SWITCH
	.comm	_WLAN_EID_EXT_CHANSWITCH_ANN,4,2 ## @WLAN_EID_EXT_CHANSWITCH_ANN
	.no_dead_strip	_iwl_mvm_mac_ctxt_send_beacon_v9
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_mac_ctxt_send_beacon_v9
_iwl_mvm_mac_ctxt_send_beacon_v9:       ; @iwl_mvm_mac_ctxt_send_beacon_v9
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_iwl_mvm_vif_from_mac80211
	mov	x22, x0
	mov	x0, x19
	bl	_IEEE80211_SKB_CB
	stp	xzr, xzr, [sp]
	str	xzr, [sp, #16]
	mov	x1, x21
	bl	_iwl_mvm_mac_ctxt_get_lowest_rate
	mov	x23, x0
	bl	_iwl_mvm_mac80211_idx_to_hwrate
Lloh0:
	adrp	x8, _IWL_FIRST_CCK_RATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_FIRST_CCK_RATE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _IWL_MAC_BEACON_CCK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IWL_MAC_BEACON_CCK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x23, x8
	csel	w8, w9, wzr, eq
	orr	w0, w8, w0
	bl	_cpu_to_le16
	str	x0, [sp, #40]
	ldr	w0, [x19]
	bl	_cpu_to_le16
	str	x0, [sp, #32]
	ldr	w0, [x22]
	bl	_cpu_to_le32
	str	x0, [sp, #24]
	ldr	x8, [x21]
Lloh6:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x8, sp
	add	x1, x8, #20
	add	x2, x8, #16
	ldr	w3, [x19, #8]
	ldr	x4, [x19]
	mov	x0, x20
	bl	_iwl_mvm_mac_ctxt_set_tim
LBB0_2:
	ldr	w0, [x19, #8]
Lloh9:
	adrp	x8, _WLAN_EID_CHANNEL_SWITCH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WLAN_EID_CHANNEL_SWITCH@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	x2, [x19]
	bl	_iwl_mvm_find_ie_offset
	bl	_cpu_to_le32
	str	x0, [sp, #8]
	ldr	w0, [x19, #8]
Lloh12:
	adrp	x8, _WLAN_EID_EXT_CHANSWITCH_ANN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WLAN_EID_EXT_CHANSWITCH_ANN@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	x2, [x19]
	bl	_iwl_mvm_find_ie_offset
	bl	_cpu_to_le32
	str	x0, [sp]
	mov	x2, sp
	mov	x0, x20
	mov	x1, x19
	mov	w3, #48
	bl	_iwl_mvm_mac_ctxt_send_beacon_cmd
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_FIRST_CCK_RATE,8,3         ; @IWL_FIRST_CCK_RATE
	.comm	_IWL_MAC_BEACON_CCK,4,2         ; @IWL_MAC_BEACON_CCK
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_WLAN_EID_CHANNEL_SWITCH,4,2    ; @WLAN_EID_CHANNEL_SWITCH
	.comm	_WLAN_EID_EXT_CHANSWITCH_ANN,4,2 ; @WLAN_EID_EXT_CHANSWITCH_ANN
	.no_dead_strip	_iwl_mvm_mac_ctxt_send_beacon_v9
.subsections_via_symbols
