	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il3945_hw_build_tx_cmd_rate    ## -- Begin function il3945_hw_build_tx_cmd_rate
	.p2align	4, 0x90
_il3945_hw_build_tx_cmd_rate:           ## @il3945_hw_build_tx_cmd_rate
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rcx, %r15
	movq	%rsi, %rbx
	movl	(%rdi), %edi
	movq	%rdx, %rsi
	callq	_ieee80211_get_tx_rate
	movzwl	(%rax), %edi
	movq	_RATE_COUNT_3945@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	decl	%esi
	callq	_min
	movl	(%r15), %edi
	movq	(%rbx), %rbx
	movq	_il3945_rates@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movl	(%rcx,%rax,4), %r12d
	movl	16(%rbx), %r13d
	movq	_RATES_MASK_3945@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	callq	_ieee80211_is_probe_resp
	movl	$3, %edi
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_IL_DEFAULT_TX_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_2:
	movl	%edi, (%rbx)
	movl	$7, %esi
	callq	_min
	movq	%rax, 24(%rbx)
	movl	%r12d, 4(%rbx)
	movl	%r13d, 16(%rbx)
	movq	_IL_OFDM_RATES_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	movq	_IL_FIRST_OFDM_RATE@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movzbl	%al, %eax
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	andl	$15, %r15d
	movl	%r15d, 4(%rcx)
	movl	4(%rbx), %r15d
	movl	16(%rbx), %edi
	callq	_le32_to_cpu
	movq	8(%rbx), %rcx
	movl	(%rcx), %r9d
	movl	4(%rcx), %r8d
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_D_RATE                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RATE_COUNT_3945,4,2            ## @RATE_COUNT_3945
	.comm	_il3945_rates,8,3               ## @il3945_rates
	.comm	_RATES_MASK_3945,4,2            ## @RATES_MASK_3945
	.comm	_IL_DEFAULT_TX_RETRY,4,2        ## @IL_DEFAULT_TX_RETRY
	.comm	_IL_OFDM_RATES_MASK,4,2         ## @IL_OFDM_RATES_MASK
	.comm	_IL_FIRST_OFDM_RATE,4,2         ## @IL_FIRST_OFDM_RATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tx sta id: %d, rate: %d (plcp), flags: 0x%4X cck/ofdm mask: 0x%x/0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il3945_hw_build_tx_cmd_rate    ; -- Begin function il3945_hw_build_tx_cmd_rate
	.p2align	2
_il3945_hw_build_tx_cmd_rate:           ; @il3945_hw_build_tx_cmd_rate
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x4
	mov	x20, x3
	mov	x21, x1
	ldr	w0, [x0]
	mov	x1, x2
	bl	_ieee80211_get_tx_rate
	ldrh	w0, [x0]
Lloh0:
	adrp	x8, _RATE_COUNT_3945@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RATE_COUNT_3945@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w1, w8, #1
	bl	_min
	ldr	w8, [x20]
	ldr	x21, [x21]
Lloh3:
	adrp	x9, _il3945_rates@GOTPAGE
Lloh4:
	ldr	x9, [x9, _il3945_rates@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	sbfiz	x10, x0, #2, #32
	ldr	w20, [x9, x10]
	ldr	w22, [x21, #16]
Lloh6:
	adrp	x9, _RATES_MASK_3945@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RATES_MASK_3945@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x9]
	mov	x0, x8
	bl	_ieee80211_is_probe_resp
Lloh9:
	adrp	x8, _IL_DEFAULT_TX_RETRY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IL_DEFAULT_TX_RETRY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	x0, #0
	mov	w9, #3
	csel	w0, w8, w9, eq
	str	w0, [x21]
	mov	w1, #7
	bl	_min
	str	x0, [x21, #24]
	str	w20, [x21, #4]
	str	w22, [x21, #16]
Lloh12:
	adrp	x8, _IL_OFDM_RATES_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IL_OFDM_RATES_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w8, w8, w23
Lloh15:
	adrp	x9, _IL_FIRST_OFDM_RATE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IL_FIRST_OFDM_RATE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	asr	w8, w8, w9
	and	w8, w8, #0xff
	ldr	x9, [x21, #8]
	and	w10, w23, #0xf
	stp	w8, w10, [x9]
	ldr	w20, [x21, #4]
	ldr	w0, [x21, #16]
	bl	_le32_to_cpu
	mov	x3, x0
	ldr	x8, [x21, #8]
	ldp	w5, w4, [x8]
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_D_RATE
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RATE_COUNT_3945,4,2            ; @RATE_COUNT_3945
	.comm	_il3945_rates,8,3               ; @il3945_rates
	.comm	_RATES_MASK_3945,4,2            ; @RATES_MASK_3945
	.comm	_IL_DEFAULT_TX_RETRY,4,2        ; @IL_DEFAULT_TX_RETRY
	.comm	_IL_OFDM_RATES_MASK,4,2         ; @IL_OFDM_RATES_MASK
	.comm	_IL_FIRST_OFDM_RATE,4,2         ; @IL_FIRST_OFDM_RATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tx sta id: %d, rate: %d (plcp), flags: 0x%4X cck/ofdm mask: 0x%x/0x%x\n"

.subsections_via_symbols
