	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_hw_write_rate_duration
_ath5k_hw_write_rate_duration:          ## @ath5k_hw_write_rate_duration
	.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	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%rdi), %rax
	movq	%rcx, %rdx
	shlq	$4, %rdx
	cmpl	$0, (%rax,%rdx)
	je	LBB0_8
## %bb.1:
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	(%r15), %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rax,%rdx), %ecx
	cmpq	%rcx, %r14
	jae	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%r15)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ack_rates_high@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r14,8), %rbx
	shlq	$3, %rbx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	cmpq	$4, %r14
	setae	%bl
	shlq	$5, %rbx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	8(%rax,%rdx), %rbx
	movl	4(%rbx), %edi
	callq	_AR5K_RATE_DUR
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$10, %edx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_ath5k_hw_get_frame_duration
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_ath5k_hw_reg_write
	movq	_IEEE80211_RATE_SHORT_PREAMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$10, %edx
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_ath5k_hw_get_frame_duration
	movq	_AR5K_SET_SHORT_PREAMBLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$2, %ecx
	movslq	%ecx, %rcx
	addq	%rcx, %r12
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_ath5k_hw_reg_write
	jmp	LBB0_7
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_ack_rates_high,8,3             ## @ack_rates_high
	.comm	_IEEE80211_RATE_SHORT_PREAMBLE,4,2 ## @IEEE80211_RATE_SHORT_PREAMBLE
	.comm	_AR5K_SET_SHORT_PREAMBLE,4,2    ## @AR5K_SET_SHORT_PREAMBLE
	.no_dead_strip	_ath5k_hw_write_rate_duration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_hw_write_rate_duration
_ath5k_hw_write_rate_duration:          ; @ath5k_hw_write_rate_duration
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _NL80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	ldr	x8, [x0]
	lsl	x23, x20, #4
	ldr	w9, [x8, x23]
	cbz	w9, LBB0_8
; %bb.1:
	mov	x19, x0
	mov	x24, #0
Lloh3:
	adrp	x25, _IEEE80211_RATE_SHORT_PREAMBLE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _IEEE80211_RATE_SHORT_PREAMBLE@GOTPAGEOFF]
Lloh5:
	adrp	x26, _AR5K_SET_SHORT_PREAMBLE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _AR5K_SET_SHORT_PREAMBLE@GOTPAGEOFF]
Lloh7:
	adrp	x27, _ack_rates_high@GOTPAGE
Lloh8:
	ldr	x27, [x27, _ack_rates_high@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldr	x8, [x19]
	ldr	w9, [x8, x23]
	cmp	x24, x9
	b.hs	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, x20, lsl #4
	ldr	x8, [x8, #8]
	ldr	x9, [x27]
	ldr	x9, [x9, x24, lsl #3]
	add	x21, x8, x9, lsl #3
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x24, #3
	cset	w9, hi
	add	x8, x8, x20, lsl #4
	ldr	x8, [x8, #8]
	add	x21, x8, x9, lsl #5
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21, #4]
	bl	_AR5K_RATE_DUR
	mov	x22, x0
	mov	x0, x19
	mov	x1, x20
	mov	w2, #10
	mov	x3, x21
	mov	w4, #0
	bl	_ath5k_hw_get_frame_duration
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_ath5k_hw_reg_write
	ldr	w8, [x21]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #10
	mov	x3, x21
	mov	w4, #1
	bl	_ath5k_hw_get_frame_duration
	mov	x1, x0
	ldr	w8, [x26]
	lsl	w8, w8, #2
	add	x2, x22, w8, sxtw
	mov	x0, x19
	bl	_ath5k_hw_reg_write
	b	LBB0_2
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_ack_rates_high,8,3             ; @ack_rates_high
	.comm	_IEEE80211_RATE_SHORT_PREAMBLE,4,2 ; @IEEE80211_RATE_SHORT_PREAMBLE
	.comm	_AR5K_SET_SHORT_PREAMBLE,4,2    ; @AR5K_SET_SHORT_PREAMBLE
	.no_dead_strip	_ath5k_hw_write_rate_duration
.subsections_via_symbols
