	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_set_tx_cmd_rate        ## -- Begin function iwl_mvm_set_tx_cmd_rate
	.p2align	4, 0x90
_iwl_mvm_set_tx_cmd_rate:               ## @iwl_mvm_set_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	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	_IWL_RTS_DFAULT_RETRY_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rsi)
	movl	%r8d, %edi
	callq	_ieee80211_is_probe_resp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_IWL_MGMT_DFAULT_RETRY_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 16(%rbx)
	movl	20(%rbx), %esi
	callq	_min
	movl	%eax, 20(%rbx)
	jmp	LBB0_6
LBB0_2:
	movl	%r14d, %edi
	callq	_ieee80211_is_back_req
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_IWL_BAR_DFAULT_RETRY_LIMIT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_IWL_DEFAULT_TX_RETRY@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
LBB0_6:
	movl	%r14d, %edi
	callq	_ieee80211_is_data
	testq	%r15, %r15
	je	LBB0_10
## %bb.7:
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%r15, %rdi
	callq	_iwl_mvm_sta_from_mac80211
	movq	(%rax), %rax
	movq	_IEEE80211_STA_AUTHORIZED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_12
## %bb.9:
	movq	$0, 8(%rbx)
	movq	_TX_CMD_FLG_STA_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	orl	%eax, 4(%rbx)
	jmp	LBB0_13
LBB0_10:
	movl	%r14d, %edi
	callq	_ieee80211_is_back_req
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_TX_CMD_FLG_ACK@GOTPCREL(%rip), %rax
	movq	_TX_CMD_FLG_BAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_cpu_to_le32
	orl	%eax, 4(%rbx)
LBB0_12:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_iwl_mvm_get_tx_rate_n_flags
	movl	%eax, %edi
	callq	_cpu_to_le32
	movl	%eax, (%rbx)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_RTS_DFAULT_RETRY_LIMIT,4,2 ## @IWL_RTS_DFAULT_RETRY_LIMIT
	.comm	_IWL_MGMT_DFAULT_RETRY_LIMIT,4,2 ## @IWL_MGMT_DFAULT_RETRY_LIMIT
	.comm	_IWL_BAR_DFAULT_RETRY_LIMIT,4,2 ## @IWL_BAR_DFAULT_RETRY_LIMIT
	.comm	_IWL_DEFAULT_TX_RETRY,4,2       ## @IWL_DEFAULT_TX_RETRY
	.comm	_IEEE80211_STA_AUTHORIZED,8,3   ## @IEEE80211_STA_AUTHORIZED
	.comm	_TX_CMD_FLG_STA_RATE,4,2        ## @TX_CMD_FLG_STA_RATE
	.comm	_TX_CMD_FLG_ACK,4,2             ## @TX_CMD_FLG_ACK
	.comm	_TX_CMD_FLG_BAR,4,2             ## @TX_CMD_FLG_BAR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_set_tx_cmd_rate        ; -- Begin function iwl_mvm_set_tx_cmd_rate
	.p2align	2
_iwl_mvm_set_tx_cmd_rate:               ; @iwl_mvm_set_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	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _IWL_RTS_DFAULT_RETRY_LIMIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_RTS_DFAULT_RETRY_LIMIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1, #20]
	mov	x0, x4
	bl	_ieee80211_is_probe_resp
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _IWL_MGMT_DFAULT_RETRY_LIMIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_MGMT_DFAULT_RETRY_LIMIT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	str	w0, [x19, #16]
	ldr	w1, [x19, #20]
	bl	_min
	str	w0, [x19, #20]
	b	LBB0_6
LBB0_2:
	mov	x0, x20
	bl	_ieee80211_is_back_req
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _IWL_BAR_DFAULT_RETRY_LIMIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IWL_BAR_DFAULT_RETRY_LIMIT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _IWL_DEFAULT_TX_RETRY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IWL_DEFAULT_TX_RETRY@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_6:
	mov	x0, x20
	bl	_ieee80211_is_data
	cbz	x21, LBB0_10
; %bb.7:
	cbz	x0, LBB0_10
; %bb.8:
	mov	x0, x21
	bl	_iwl_mvm_sta_from_mac80211
	ldr	x8, [x0]
Lloh10:
	adrp	x9, _IEEE80211_STA_AUTHORIZED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IEEE80211_STA_AUTHORIZED@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_12
; %bb.9:
	str	xzr, [x19, #8]
Lloh13:
	adrp	x8, _TX_CMD_FLG_STA_RATE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TX_CMD_FLG_STA_RATE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	w8, [x19, #4]
	orr	w8, w8, w0
	str	w8, [x19, #4]
	b	LBB0_13
LBB0_10:
	mov	x0, x20
	bl	_ieee80211_is_back_req
	cbz	x0, LBB0_12
; %bb.11:
Lloh16:
	adrp	x8, _TX_CMD_FLG_ACK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TX_CMD_FLG_ACK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _TX_CMD_FLG_BAR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _TX_CMD_FLG_BAR@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_le32
	ldr	w8, [x19, #4]
	orr	w8, w8, w0
	str	w8, [x19, #4]
LBB0_12:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_iwl_mvm_get_tx_rate_n_flags
	bl	_cpu_to_le32
	str	w0, [x19]
LBB0_13:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_RTS_DFAULT_RETRY_LIMIT,4,2 ; @IWL_RTS_DFAULT_RETRY_LIMIT
	.comm	_IWL_MGMT_DFAULT_RETRY_LIMIT,4,2 ; @IWL_MGMT_DFAULT_RETRY_LIMIT
	.comm	_IWL_BAR_DFAULT_RETRY_LIMIT,4,2 ; @IWL_BAR_DFAULT_RETRY_LIMIT
	.comm	_IWL_DEFAULT_TX_RETRY,4,2       ; @IWL_DEFAULT_TX_RETRY
	.comm	_IEEE80211_STA_AUTHORIZED,8,3   ; @IEEE80211_STA_AUTHORIZED
	.comm	_TX_CMD_FLG_STA_RATE,4,2        ; @TX_CMD_FLG_STA_RATE
	.comm	_TX_CMD_FLG_ACK,4,2             ; @TX_CMD_FLG_ACK
	.comm	_TX_CMD_FLG_BAR,4,2             ; @TX_CMD_FLG_BAR
.subsections_via_symbols
