	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_set_tx_retry_limits   ## -- Begin function ath5k_hw_set_tx_retry_limits
	.p2align	4, 0x90
_ath5k_hw_set_tx_retry_limits:          ## @ath5k_hw_set_tx_retry_limits
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	_AR5K_AR5210@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	12(%r15), %edi
	movq	_AR5K_DCU_RETRY_LMT_RTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AR5K_REG_SM
	movl	%eax, %ebx
	movl	12(%r15), %edi
	movq	_AR5K_DCU_RETRY_LMT_STA_RTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AR5K_REG_SM
	orl	%eax, %ebx
	movl	8(%r15), %esi
	movl	12(%r15), %edi
	callq	_max
	movq	_AR5K_DCU_RETRY_LMT_STA_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_AR5K_REG_SM
	orl	%eax, %ebx
	movl	%r14d, %edi
	callq	_AR5K_QUEUE_DFS_RETRY_LIMIT
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	jmp	LBB0_4
LBB0_2:
	movq	16(%r15), %rax
	movl	(%rax), %ebx
	movq	_AR5K_NODCU_RETRY_LMT_CW_MIN_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movl	12(%r15), %edi
	movq	_AR5K_NODCU_RETRY_LMT_SLG_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AR5K_REG_SM
	movl	%eax, %r14d
	movl	8(%r15), %edi
	movq	_AR5K_NODCU_RETRY_LMT_SSH_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AR5K_REG_SM
	orl	%eax, %r14d
	movl	12(%r15), %edi
	movq	_AR5K_NODCU_RETRY_LMT_LG_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AR5K_REG_SM
	orl	%eax, %r14d
	orl	%ebx, %r14d
	movl	8(%r15), %edi
	movq	_AR5K_NODCU_RETRY_LMT_SH_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_AR5K_REG_SM
	orl	%eax, %r14d
	movq	_AR5K_NODCU_RETRY_LMT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath5k_hw_reg_write             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_AR5210,8,3                ## @AR5K_AR5210
	.comm	_AR5K_NODCU_RETRY_LMT_CW_MIN_S,4,2 ## @AR5K_NODCU_RETRY_LMT_CW_MIN_S
	.comm	_AR5K_NODCU_RETRY_LMT_SLG_RETRY,4,2 ## @AR5K_NODCU_RETRY_LMT_SLG_RETRY
	.comm	_AR5K_NODCU_RETRY_LMT_SSH_RETRY,4,2 ## @AR5K_NODCU_RETRY_LMT_SSH_RETRY
	.comm	_AR5K_NODCU_RETRY_LMT_LG_RETRY,4,2 ## @AR5K_NODCU_RETRY_LMT_LG_RETRY
	.comm	_AR5K_NODCU_RETRY_LMT_SH_RETRY,4,2 ## @AR5K_NODCU_RETRY_LMT_SH_RETRY
	.comm	_AR5K_NODCU_RETRY_LMT,4,2       ## @AR5K_NODCU_RETRY_LMT
	.comm	_AR5K_DCU_RETRY_LMT_RTS,4,2     ## @AR5K_DCU_RETRY_LMT_RTS
	.comm	_AR5K_DCU_RETRY_LMT_STA_RTS,4,2 ## @AR5K_DCU_RETRY_LMT_STA_RTS
	.comm	_AR5K_DCU_RETRY_LMT_STA_DATA,4,2 ## @AR5K_DCU_RETRY_LMT_STA_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_set_tx_retry_limits   ; -- Begin function ath5k_hw_set_tx_retry_limits
	.p2align	2
_ath5k_hw_set_tx_retry_limits:          ; @ath5k_hw_set_tx_retry_limits
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AR5K_AR5210@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AR5K_AR5210@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	cbz	w20, LBB0_4
; %bb.2:
	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_3:
	ldr	w0, [x19, #12]
Lloh3:
	adrp	x8, _AR5K_DCU_RETRY_LMT_RTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR5K_DCU_RETRY_LMT_RTS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_AR5K_REG_SM
	mov	x21, x0
	ldr	w0, [x19, #12]
Lloh6:
	adrp	x8, _AR5K_DCU_RETRY_LMT_STA_RTS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AR5K_DCU_RETRY_LMT_STA_RTS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_AR5K_REG_SM
	orr	w21, w0, w21
	ldp	w1, w0, [x19, #8]
	bl	_max
Lloh9:
	adrp	x8, _AR5K_DCU_RETRY_LMT_STA_DATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AR5K_DCU_RETRY_LMT_STA_DATA@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_AR5K_REG_SM
	orr	w21, w21, w0
	mov	x0, x20
	bl	_AR5K_QUEUE_DFS_RETRY_LIMIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _AR5K_NODCU_RETRY_LMT_CW_MIN_S@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AR5K_NODCU_RETRY_LMT_CW_MIN_S@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	lsl	w20, w8, w9
	ldr	w0, [x19, #12]
Lloh15:
	adrp	x8, _AR5K_NODCU_RETRY_LMT_SLG_RETRY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AR5K_NODCU_RETRY_LMT_SLG_RETRY@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_AR5K_REG_SM
	orr	w20, w0, w20
	ldr	w0, [x19, #8]
Lloh18:
	adrp	x8, _AR5K_NODCU_RETRY_LMT_SSH_RETRY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AR5K_NODCU_RETRY_LMT_SSH_RETRY@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_AR5K_REG_SM
	orr	w20, w20, w0
	ldr	w0, [x19, #12]
Lloh21:
	adrp	x8, _AR5K_NODCU_RETRY_LMT_LG_RETRY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AR5K_NODCU_RETRY_LMT_LG_RETRY@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_AR5K_REG_SM
	orr	w20, w20, w0
	ldr	w0, [x19, #8]
Lloh24:
	adrp	x8, _AR5K_NODCU_RETRY_LMT_SH_RETRY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AR5K_NODCU_RETRY_LMT_SH_RETRY@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_AR5K_REG_SM
	orr	w1, w20, w0
Lloh27:
	adrp	x8, _AR5K_NODCU_RETRY_LMT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AR5K_NODCU_RETRY_LMT@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
LBB0_5:
	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
	b	_ath5k_hw_reg_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_AR5210,8,3                ; @AR5K_AR5210
	.comm	_AR5K_NODCU_RETRY_LMT_CW_MIN_S,4,2 ; @AR5K_NODCU_RETRY_LMT_CW_MIN_S
	.comm	_AR5K_NODCU_RETRY_LMT_SLG_RETRY,4,2 ; @AR5K_NODCU_RETRY_LMT_SLG_RETRY
	.comm	_AR5K_NODCU_RETRY_LMT_SSH_RETRY,4,2 ; @AR5K_NODCU_RETRY_LMT_SSH_RETRY
	.comm	_AR5K_NODCU_RETRY_LMT_LG_RETRY,4,2 ; @AR5K_NODCU_RETRY_LMT_LG_RETRY
	.comm	_AR5K_NODCU_RETRY_LMT_SH_RETRY,4,2 ; @AR5K_NODCU_RETRY_LMT_SH_RETRY
	.comm	_AR5K_NODCU_RETRY_LMT,4,2       ; @AR5K_NODCU_RETRY_LMT
	.comm	_AR5K_DCU_RETRY_LMT_RTS,4,2     ; @AR5K_DCU_RETRY_LMT_RTS
	.comm	_AR5K_DCU_RETRY_LMT_STA_RTS,4,2 ; @AR5K_DCU_RETRY_LMT_STA_RTS
	.comm	_AR5K_DCU_RETRY_LMT_STA_DATA,4,2 ; @AR5K_DCU_RETRY_LMT_STA_DATA
.subsections_via_symbols
