	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carl9170_tx_beacon_physet
_carl9170_tx_beacon_physet:             ## @carl9170_tx_beacon_physet
	.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	%rcx, %r15
	movq	%rdx, %r13
	movq	%rdi, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_IEEE80211_SKB_CB
	movq	(%rax), %r12
	movq	_IEEE80211_TX_RC_MCS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	andl	(%r12), %r14d
	leaq	-48(%rbp), %r8
	leaq	-44(%rbp), %r9
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_carl9170_tx_rate_tpc_chains
	movq	_AR9170_MAC_BCN_HT1_TX_ANT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, (%r13)
	movl	-44(%rbp), %eax
	movq	_AR9170_TX_PHY_TXCHAIN_2@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	_AR9170_MAC_BCN_HT1_TX_ANT1@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%esi, (%r13)
LBB0_2:
	movq	_AR9170_MAC_BCN_HT1_PWR_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$7, %edx
	callq	_SET_VAL
	movq	_AR9170_MAC_BCN_HT1_TPC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	movl	-48(%rbp), %edx
	callq	_SET_VAL
	movq	_AR9170_MAC_BCN_HT1_CHAIN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	movl	-44(%rbp), %edx
	callq	_SET_VAL
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.3:
	movq	_AR9170_MAC_BCN_HT1_HT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r13)
	movl	(%r12), %eax
	movq	_IEEE80211_TX_RC_SHORT_GI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_AR9170_MAC_BCN_HT2_SGI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movl	(%r12), %eax
LBB0_5:
	movq	_IEEE80211_TX_RC_40_MHZ_WIDTH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_AR9170_MAC_BCN_HT1_BWC_40M_SHARED@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_12:
	movl	(%r15), %ecx
	movq	_AR9170_TX_PHY_RATE_CCK_11M@GOTPCREL(%rip), %rdx
	movq	_FCS_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addl	(%rsi), %eax
	cmpl	(%rdx), %ecx
	jle	LBB0_13
## %bb.14:
	shll	$16, %eax
	orl	%ecx, %eax
	orl	$16, %eax
	jmp	LBB0_15
LBB0_7:
	movq	_IEEE80211_TX_RC_DUP_DATA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.9:
	movq	_AR9170_MAC_BCN_HT1_BWC_40M_DUP@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	orl	%eax, (%r13)
	movq	_AR9170_MAC_BCN_HT2_BW40@GOTPCREL(%rip), %rax
	movl	(%r15), %esi
	orl	(%rax), %esi
	movl	%esi, (%r15)
LBB0_11:
	movq	_AR9170_MAC_BCN_HT2_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FCS_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	(%rax), %edx
	callq	_SET_VAL
	jmp	LBB0_16
LBB0_13:
	shll	$19, %eax
	orl	%ecx, %eax
	orl	$1024, %eax                     ## imm = 0x400
LBB0_15:
	movl	%eax, (%r15)
LBB0_16:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	setne	%al
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	(%r15), %esi
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_TX_RC_MCS,4,2        ## @IEEE80211_TX_RC_MCS
	.comm	_AR9170_MAC_BCN_HT1_TX_ANT0,4,2 ## @AR9170_MAC_BCN_HT1_TX_ANT0
	.comm	_AR9170_TX_PHY_TXCHAIN_2,4,2    ## @AR9170_TX_PHY_TXCHAIN_2
	.comm	_AR9170_MAC_BCN_HT1_TX_ANT1,4,2 ## @AR9170_MAC_BCN_HT1_TX_ANT1
	.comm	_AR9170_MAC_BCN_HT1_PWR_CTRL,4,2 ## @AR9170_MAC_BCN_HT1_PWR_CTRL
	.comm	_AR9170_MAC_BCN_HT1_TPC,4,2     ## @AR9170_MAC_BCN_HT1_TPC
	.comm	_AR9170_MAC_BCN_HT1_CHAIN_MASK,4,2 ## @AR9170_MAC_BCN_HT1_CHAIN_MASK
	.comm	_AR9170_MAC_BCN_HT1_HT_EN,4,2   ## @AR9170_MAC_BCN_HT1_HT_EN
	.comm	_IEEE80211_TX_RC_SHORT_GI,4,2   ## @IEEE80211_TX_RC_SHORT_GI
	.comm	_AR9170_MAC_BCN_HT2_SGI,4,2     ## @AR9170_MAC_BCN_HT2_SGI
	.comm	_IEEE80211_TX_RC_40_MHZ_WIDTH,4,2 ## @IEEE80211_TX_RC_40_MHZ_WIDTH
	.comm	_AR9170_MAC_BCN_HT1_BWC_40M_SHARED,4,2 ## @AR9170_MAC_BCN_HT1_BWC_40M_SHARED
	.comm	_AR9170_MAC_BCN_HT2_BW40,4,2    ## @AR9170_MAC_BCN_HT2_BW40
	.comm	_IEEE80211_TX_RC_DUP_DATA,4,2   ## @IEEE80211_TX_RC_DUP_DATA
	.comm	_AR9170_MAC_BCN_HT1_BWC_40M_DUP,4,2 ## @AR9170_MAC_BCN_HT1_BWC_40M_DUP
	.comm	_AR9170_MAC_BCN_HT2_LEN,4,2     ## @AR9170_MAC_BCN_HT2_LEN
	.comm	_FCS_LEN,4,2                    ## @FCS_LEN
	.comm	_AR9170_TX_PHY_RATE_CCK_11M,4,2 ## @AR9170_TX_PHY_RATE_CCK_11M
	.no_dead_strip	_carl9170_tx_beacon_physet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carl9170_tx_beacon_physet
_carl9170_tx_beacon_physet:             ; @carl9170_tx_beacon_physet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x3
	mov	x21, x2
	mov	x20, x1
	mov	x23, x0
	mov	x0, x1
	bl	_IEEE80211_SKB_CB
	mov	x1, x0
	ldr	x22, [x0]
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _IEEE80211_TX_RC_MCS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_TX_RC_MCS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w24, w9, w8
	add	x4, sp, #12
	add	x5, sp, #8
	mov	x0, x23
	mov	x2, x22
	mov	x3, x19
	bl	_carl9170_tx_rate_tpc_chains
Lloh3:
	adrp	x8, _AR9170_MAC_BCN_HT1_TX_ANT0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR9170_MAC_BCN_HT1_TX_ANT0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	str	w1, [x21]
	ldr	w8, [sp, #8]
Lloh6:
	adrp	x9, _AR9170_TX_PHY_TXCHAIN_2@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AR9170_TX_PHY_TXCHAIN_2@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _AR9170_MAC_BCN_HT1_TX_ANT1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AR9170_MAC_BCN_HT1_TX_ANT1@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w1, w8, w1
	str	w1, [x21]
LBB0_2:
Lloh12:
	adrp	x8, _AR9170_MAC_BCN_HT1_PWR_CTRL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AR9170_MAC_BCN_HT1_PWR_CTRL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	w2, #7
	bl	_SET_VAL
Lloh15:
	adrp	x8, _AR9170_MAC_BCN_HT1_TPC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AR9170_MAC_BCN_HT1_TPC@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w1, [x21]
	ldr	w2, [sp, #12]
	bl	_SET_VAL
Lloh18:
	adrp	x8, _AR9170_MAC_BCN_HT1_CHAIN_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AR9170_MAC_BCN_HT1_CHAIN_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w1, [x21]
	ldr	w2, [sp, #8]
	bl	_SET_VAL
	cbz	w24, LBB0_7
; %bb.3:
Lloh21:
	adrp	x8, _AR9170_MAC_BCN_HT1_HT_EN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AR9170_MAC_BCN_HT1_HT_EN@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	ldr	w8, [x22]
Lloh24:
	adrp	x9, _IEEE80211_TX_RC_SHORT_GI@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IEEE80211_TX_RC_SHORT_GI@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh27:
	adrp	x8, _AR9170_MAC_BCN_HT2_SGI@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AR9170_MAC_BCN_HT2_SGI@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w8, [x22]
LBB0_5:
Lloh30:
	adrp	x9, _IEEE80211_TX_RC_40_MHZ_WIDTH@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IEEE80211_TX_RC_40_MHZ_WIDTH@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.6:
Lloh33:
	adrp	x8, _AR9170_MAC_BCN_HT1_BWC_40M_SHARED@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AR9170_MAC_BCN_HT1_BWC_40M_SHARED@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
	ldr	w8, [x19]
Lloh35:
	adrp	x9, _AR9170_TX_PHY_RATE_CCK_11M@GOTPAGE
Lloh36:
	ldr	x9, [x9, _AR9170_TX_PHY_RATE_CCK_11M@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x9]
	ldr	w9, [x20]
Lloh38:
	adrp	x11, _FCS_LEN@GOTPAGE
Lloh39:
	ldr	x11, [x11, _FCS_LEN@GOTPAGEOFF]
Lloh40:
	ldr	w11, [x11]
	add	w9, w11, w9
	cmp	w8, w10
	b.le	LBB0_13
; %bb.8:
	orr	w8, w8, w9, lsl #16
	orr	w8, w8, #0x10
	b	LBB0_14
LBB0_9:
Lloh41:
	adrp	x9, _IEEE80211_TX_RC_DUP_DATA@GOTPAGE
Lloh42:
	ldr	x9, [x9, _IEEE80211_TX_RC_DUP_DATA@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.10:
Lloh44:
	adrp	x8, _AR9170_MAC_BCN_HT1_BWC_40M_DUP@GOTPAGE
Lloh45:
	ldr	x8, [x8, _AR9170_MAC_BCN_HT1_BWC_40M_DUP@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
Lloh46:
	adrp	x8, _AR9170_MAC_BCN_HT2_BW40@GOTPAGE
Lloh47:
	ldr	x8, [x8, _AR9170_MAC_BCN_HT2_BW40@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w1, w9, w8
	str	w1, [x19]
LBB0_12:
Lloh49:
	adrp	x8, _AR9170_MAC_BCN_HT2_LEN@GOTPAGE
Lloh50:
	ldr	x8, [x8, _AR9170_MAC_BCN_HT2_LEN@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
	ldr	w8, [x20]
Lloh52:
	adrp	x9, _FCS_LEN@GOTPAGE
Lloh53:
	ldr	x9, [x9, _FCS_LEN@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	add	w2, w9, w8
	bl	_SET_VAL
	b	LBB0_15
LBB0_13:
	orr	w8, w8, w9, lsl #19
	orr	w8, w8, #0x400
LBB0_14:
	str	w8, [x19]
LBB0_15:
	cmp	w24, #0
	cset	w0, ne
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_16:
	ldr	w1, [x19]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_TX_RC_MCS,4,2        ; @IEEE80211_TX_RC_MCS
	.comm	_AR9170_MAC_BCN_HT1_TX_ANT0,4,2 ; @AR9170_MAC_BCN_HT1_TX_ANT0
	.comm	_AR9170_TX_PHY_TXCHAIN_2,4,2    ; @AR9170_TX_PHY_TXCHAIN_2
	.comm	_AR9170_MAC_BCN_HT1_TX_ANT1,4,2 ; @AR9170_MAC_BCN_HT1_TX_ANT1
	.comm	_AR9170_MAC_BCN_HT1_PWR_CTRL,4,2 ; @AR9170_MAC_BCN_HT1_PWR_CTRL
	.comm	_AR9170_MAC_BCN_HT1_TPC,4,2     ; @AR9170_MAC_BCN_HT1_TPC
	.comm	_AR9170_MAC_BCN_HT1_CHAIN_MASK,4,2 ; @AR9170_MAC_BCN_HT1_CHAIN_MASK
	.comm	_AR9170_MAC_BCN_HT1_HT_EN,4,2   ; @AR9170_MAC_BCN_HT1_HT_EN
	.comm	_IEEE80211_TX_RC_SHORT_GI,4,2   ; @IEEE80211_TX_RC_SHORT_GI
	.comm	_AR9170_MAC_BCN_HT2_SGI,4,2     ; @AR9170_MAC_BCN_HT2_SGI
	.comm	_IEEE80211_TX_RC_40_MHZ_WIDTH,4,2 ; @IEEE80211_TX_RC_40_MHZ_WIDTH
	.comm	_AR9170_MAC_BCN_HT1_BWC_40M_SHARED,4,2 ; @AR9170_MAC_BCN_HT1_BWC_40M_SHARED
	.comm	_AR9170_MAC_BCN_HT2_BW40,4,2    ; @AR9170_MAC_BCN_HT2_BW40
	.comm	_IEEE80211_TX_RC_DUP_DATA,4,2   ; @IEEE80211_TX_RC_DUP_DATA
	.comm	_AR9170_MAC_BCN_HT1_BWC_40M_DUP,4,2 ; @AR9170_MAC_BCN_HT1_BWC_40M_DUP
	.comm	_AR9170_MAC_BCN_HT2_LEN,4,2     ; @AR9170_MAC_BCN_HT2_LEN
	.comm	_FCS_LEN,4,2                    ; @FCS_LEN
	.comm	_AR9170_TX_PHY_RATE_CCK_11M,4,2 ; @AR9170_TX_PHY_RATE_CCK_11M
	.no_dead_strip	_carl9170_tx_beacon_physet
.subsections_via_symbols
