	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwlagn_send_beacon_cmd         ## -- Begin function iwlagn_send_beacon_cmd
	.p2align	4, 0x90
_iwlagn_send_beacon_cmd:                ## @iwlagn_send_beacon_cmd
	.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	%rdi, %rbx
	addq	$40, %rdi
	callq	_lockdep_assert_held
	cmpq	$0, 24(%rbx)
	je	LBB0_1
## %bb.3:
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_ERR
	xorl	%eax, %eax
	jmp	LBB0_2
LBB0_6:
	movq	32(%rbx), %r14
	testq	%r14, %r14
	jne	LBB0_9
## %bb.7:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$20, %edi
	callq	_kzalloc
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	jne	LBB0_8
## %bb.18:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rax, %r14
LBB0_9:
	movq	(%rbx), %rax
	movq	(%rax), %r15
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movl	%eax, 16(%r14)
	movq	24(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_TX_CMD_LIFE_TIME_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_TX_CMD_FLG_SEQ_CTL_MSK@GOTPCREL(%rip), %rax
	movq	_TX_CMD_FLG_TSF_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_TX_CMD_FLG_STA_RATE_MSK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	movq	(%rbx), %rax
	movq	8(%rax), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rcx
	callq	_iwl_set_beacon_tim
	movq	(%rbx), %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %r15
	movq	8(%rax), %rcx
	movq	(%rcx), %rax
	testq	%rax, %rax
	js	LBB0_10
## %bb.11:
	movq	_IEEE80211_TX_RC_MCS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%r14d, %r14d
	testl	%edx, 8(%rcx)
	cmoveq	%rax, %r14
	jmp	LBB0_12
LBB0_10:
	xorl	%r14d, %r14d
LBB0_12:
	movl	8(%rbx), %esi
	movq	16(%rbx), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_iwl_toggle_tx_ant
	movl	%eax, 8(%rbx)
	movl	%eax, %edi
	callq	_iwl_ant_idx_to_flags
	movq	(%r15), %rcx
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_14
## %bb.13:
	movq	_IWL_FIRST_OFDM_RATE@GOTPCREL(%rip), %rcx
	addq	(%rcx), %r14
	jmp	LBB0_17
LBB0_14:
	movq	_IWL_FIRST_CCK_RATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r14
	jl	LBB0_17
## %bb.15:
	movq	_IWL_LAST_CCK_RATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r14
	jg	LBB0_17
## %bb.16:
	movq	_RATE_MCS_CCK_MSK@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
LBB0_17:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_iwl_hw_set_rate_n_flags
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_REPLY_TX_BEACON,4,2            ## @REPLY_TX_BEACON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"trying to build beacon w/o beacon context!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_TX_CMD_LIFE_TIME_INFINITE,4,2  ## @TX_CMD_LIFE_TIME_INFINITE
	.comm	_TX_CMD_FLG_SEQ_CTL_MSK,4,2     ## @TX_CMD_FLG_SEQ_CTL_MSK
	.comm	_TX_CMD_FLG_TSF_MSK,4,2         ## @TX_CMD_FLG_TSF_MSK
	.comm	_TX_CMD_FLG_STA_RATE_MSK,4,2    ## @TX_CMD_FLG_STA_RATE_MSK
	.comm	_IEEE80211_TX_RC_MCS,4,2        ## @IEEE80211_TX_RC_MCS
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_IWL_FIRST_OFDM_RATE,8,3        ## @IWL_FIRST_OFDM_RATE
	.comm	_IWL_FIRST_CCK_RATE,8,3         ## @IWL_FIRST_CCK_RATE
	.comm	_IWL_LAST_CCK_RATE,8,3          ## @IWL_LAST_CCK_RATE
	.comm	_RATE_MCS_CCK_MSK,8,3           ## @RATE_MCS_CCK_MSK
	.comm	_IWL_HCMD_DFL_NOCOPY,8,3        ## @IWL_HCMD_DFL_NOCOPY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwlagn_send_beacon_cmd         ; -- Begin function iwlagn_send_beacon_cmd
	.p2align	2
_iwlagn_send_beacon_cmd:                ; @iwlagn_send_beacon_cmd
	.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, x0
	add	x0, x0, #40
	bl	_lockdep_assert_held
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
	mov	w0, #0
	b	LBB0_8
LBB0_4:
	ldr	x20, [x19, #32]
	cbnz	x20, LBB0_10
; %bb.5:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w0, #20
	bl	_kzalloc
	str	x0, [x19, #32]
	cbnz	x0, LBB0_9
; %bb.6:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_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
LBB0_9:
	mov	x20, x0
LBB0_10:
	ldr	x8, [x19]
	ldr	x21, [x8]
	mov	x0, x21
	bl	_cpu_to_le16
	str	w0, [x20, #16]
	ldr	x8, [x19, #24]
Lloh9:
	adrp	x9, _TX_CMD_LIFE_TIME_INFINITE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TX_CMD_LIFE_TIME_INFINITE@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
Lloh12:
	adrp	x8, _TX_CMD_FLG_SEQ_CTL_MSK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TX_CMD_FLG_SEQ_CTL_MSK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _TX_CMD_FLG_TSF_MSK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TX_CMD_FLG_TSF_MSK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _TX_CMD_FLG_STA_RATE_MSK@GOTPAGE
Lloh19:
	ldr	x10, [x10, _TX_CMD_FLG_STA_RATE_MSK@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh20:
	ldr	w9, [x10]
	orr	w8, w8, w9
	str	w8, [x20]
	ldr	x8, [x19]
	ldr	x2, [x8, #8]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	bl	_iwl_set_beacon_tim
	ldr	x0, [x19]
	bl	_IEEE80211_SKB_CB
	mov	x21, x0
	ldr	x9, [x0, #8]
	ldr	x8, [x9]
	tbnz	x8, #63, LBB0_12
; %bb.11:
	ldr	w9, [x9, #8]
Lloh21:
	adrp	x10, _IEEE80211_TX_RC_MCS@GOTPAGE
Lloh22:
	ldr	x10, [x10, _IEEE80211_TX_RC_MCS@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	tst	w10, w9
	csel	x20, x8, xzr, eq
	b	LBB0_13
LBB0_12:
	mov	x20, #0
LBB0_13:
	ldr	w1, [x19, #8]
	ldr	x8, [x19, #16]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_iwl_toggle_tx_ant
	str	w0, [x19, #8]
	bl	_iwl_ant_idx_to_flags
	mov	x1, x0
	ldr	x8, [x21]
Lloh24:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh25:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:
Lloh27:
	adrp	x8, _IWL_FIRST_OFDM_RATE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IWL_FIRST_OFDM_RATE@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	add	x20, x8, x20
	b	LBB0_18
LBB0_15:
Lloh30:
	adrp	x8, _IWL_FIRST_CCK_RATE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IWL_FIRST_CCK_RATE@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	cmp	x20, x8
	b.lt	LBB0_18
; %bb.16:
Lloh33:
	adrp	x8, _IWL_LAST_CCK_RATE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IWL_LAST_CCK_RATE@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	cmp	x20, x8
	b.gt	LBB0_18
; %bb.17:
Lloh36:
	adrp	x8, _RATE_MCS_CCK_MSK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _RATE_MCS_CCK_MSK@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	orr	x1, x8, x1
LBB0_18:
	mov	x0, x20
	bl	_iwl_hw_set_rate_n_flags
	brk	#0x1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_REPLY_TX_BEACON,4,2            ; @REPLY_TX_BEACON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"trying to build beacon w/o beacon context!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_TX_CMD_LIFE_TIME_INFINITE,4,2  ; @TX_CMD_LIFE_TIME_INFINITE
	.comm	_TX_CMD_FLG_SEQ_CTL_MSK,4,2     ; @TX_CMD_FLG_SEQ_CTL_MSK
	.comm	_TX_CMD_FLG_TSF_MSK,4,2         ; @TX_CMD_FLG_TSF_MSK
	.comm	_TX_CMD_FLG_STA_RATE_MSK,4,2    ; @TX_CMD_FLG_STA_RATE_MSK
	.comm	_IEEE80211_TX_RC_MCS,4,2        ; @IEEE80211_TX_RC_MCS
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_IWL_FIRST_OFDM_RATE,8,3        ; @IWL_FIRST_OFDM_RATE
	.comm	_IWL_FIRST_CCK_RATE,8,3         ; @IWL_FIRST_CCK_RATE
	.comm	_IWL_LAST_CCK_RATE,8,3          ; @IWL_LAST_CCK_RATE
	.comm	_RATE_MCS_CCK_MSK,8,3           ; @RATE_MCS_CCK_MSK
	.comm	_IWL_HCMD_DFL_NOCOPY,8,3        ; @IWL_HCMD_DFL_NOCOPY
.subsections_via_symbols
