	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_get_rate_pcal_data
_ath5k_get_rate_pcal_data:              ## @ath5k_get_rate_pcal_data
	.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
	movq	%rdx, %r14
	movq	(%rsi), %r15
	movl	8(%rsi), %eax
	cmpl	$129, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$130, %eax
	jne	LBB0_4
## %bb.2:
	leaq	24(%rdi), %rcx
	movq	_AR5K_EEPROM_MODE_11A@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	leaq	16(%rdi), %rcx
	movq	_AR5K_EEPROM_MODE_11B@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	leaq	8(%rdi), %rcx
	movq	_AR5K_EEPROM_MODE_11G@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rcx), %r12
	movq	(%r12), %rdx
	cmpq	%rdx, %r15
	jl	LBB0_6
## %bb.7:
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	movq	(%rcx,%rax,8), %rcx
	decq	%rcx
	leaq	(%rcx,%rcx,4), %rax
	cmpq	(%r12,%rax,8), %r15
	jle	LBB0_9
## %bb.8:
	movq	%rcx, %rax
	movq	%rcx, %rdi
	jmp	LBB0_15
LBB0_9:
	cmpq	%r15, %rdx
	jne	LBB0_10
LBB0_6:
	xorl	%eax, %eax
	xorl	%edi, %edi
LBB0_15:
	movq	%r15, (%r14)
	leaq	(%rdi,%rdi,4), %rbx
	leaq	(%rax,%rax,4), %r13
	movq	(%r12,%rbx,8), %rsi
	movq	32(%r12,%rbx,8), %rcx
	movq	(%r12,%r13,8), %rdx
	movq	32(%r12,%r13,8), %r8
	movq	%r15, %rdi
	callq	_ath5k_get_interpolated_value
	movq	%rax, 32(%r14)
	movq	(%r12,%rbx,8), %rsi
	movq	24(%r12,%rbx,8), %rcx
	movq	(%r12,%r13,8), %rdx
	movq	24(%r12,%r13,8), %r8
	movq	%r15, %rdi
	callq	_ath5k_get_interpolated_value
	movq	%rax, 24(%r14)
	movq	(%r12,%rbx,8), %rsi
	movq	16(%r12,%rbx,8), %rcx
	movq	(%r12,%r13,8), %rdx
	movq	16(%r12,%r13,8), %r8
	movq	%r15, %rdi
	callq	_ath5k_get_interpolated_value
	movq	%rax, 16(%r14)
	movq	(%r12,%rbx,8), %rsi
	movq	8(%r12,%rbx,8), %rcx
	movq	(%r12,%r13,8), %rdx
	movq	8(%r12,%r13,8), %r8
	movq	%r15, %rdi
	callq	_ath5k_get_interpolated_value
	movq	%rax, 8(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	40(%r12), %rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, %r15
	jl	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rax
	cmpq	%rcx, %rax
	ja	LBB0_6
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%rsi), %rdx
	addq	$40, %rsi
	movq	%rax, %rdi
	cmpq	%r15, %rdx
	jne	LBB0_11
	jmp	LBB0_15
LBB0_12:
	leaq	-1(%rax), %rdi
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_EEPROM_MODE_11A,8,3       ## @AR5K_EEPROM_MODE_11A
	.comm	_AR5K_EEPROM_MODE_11B,8,3       ## @AR5K_EEPROM_MODE_11B
	.comm	_AR5K_EEPROM_MODE_11G,8,3       ## @AR5K_EEPROM_MODE_11G
	.no_dead_strip	_ath5k_get_rate_pcal_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_get_rate_pcal_data
_ath5k_get_rate_pcal_data:              ; @ath5k_get_rate_pcal_data
	.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	x19, x2
	ldr	x20, [x1]
	ldr	w8, [x1, #8]
	add	x10, x0, #16
Lloh0:
	adrp	x9, _AR5K_EEPROM_MODE_11B@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AR5K_EEPROM_MODE_11B@GOTPAGEOFF]
	cmp	w8, #130
Lloh2:
	adrp	x11, _AR5K_EEPROM_MODE_11G@GOTPAGE
Lloh3:
	ldr	x11, [x11, _AR5K_EEPROM_MODE_11G@GOTPAGEOFF]
	add	x12, x0, #8
	add	x13, x0, #24
Lloh4:
	adrp	x14, _AR5K_EEPROM_MODE_11A@GOTPAGE
Lloh5:
	ldr	x14, [x14, _AR5K_EEPROM_MODE_11A@GOTPAGEOFF]
	csel	x11, x11, x14, ne
	csel	x12, x12, x13, ne
	cmp	w8, #129
	csel	x9, x9, x11, eq
	csel	x8, x10, x12, eq
	ldr	x8, [x8]
	ldr	x11, [x8]
	cmp	x20, x11
	b.lt	LBB0_3
; %bb.1:
	ldr	x9, [x9]
	ldr	x10, [x0]
	ldr	x9, [x10, x9, lsl #3]
	sub	x10, x9, #1
	mov	w9, #40
	mul	x9, x10, x9
	ldr	x12, [x8, x9]
	mov	x9, x10
	mov	x13, x10
	cmp	x20, x12
	b.gt	LBB0_4
; %bb.2:
	cmp	x11, x20
	b.ne	LBB0_5
LBB0_3:
	mov	x9, #0
	mov	x13, #0
LBB0_4:
	str	x20, [x19]
	mov	w10, #40
	madd	x21, x13, x10, x8
	ldr	x1, [x21]
	madd	x22, x9, x10, x8
	ldr	x2, [x22]
	ldr	x3, [x21, #32]
	ldr	x4, [x22, #32]
	mov	x0, x20
	bl	_ath5k_get_interpolated_value
	str	x0, [x19, #32]
	ldr	x1, [x21]
	ldr	x2, [x22]
	ldr	x3, [x21, #24]
	ldr	x4, [x22, #24]
	mov	x0, x20
	bl	_ath5k_get_interpolated_value
	str	x0, [x19, #24]
	ldr	x1, [x21]
	ldr	x2, [x22]
	ldr	x3, [x21, #16]
	ldr	x4, [x22, #16]
	mov	x0, x20
	bl	_ath5k_get_interpolated_value
	str	x0, [x19, #16]
	ldp	x1, x3, [x21]
	ldp	x2, x4, [x22]
	mov	x0, x20
	bl	_ath5k_get_interpolated_value
	str	x0, [x19, #8]
	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_5:
	mov	x9, #0
	add	x12, x8, #40
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x20, x11
	b.lt	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #1
	cmp	x9, x10
	b.hi	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x11, [x12], #40
	mov	x13, x9
	cmp	x11, x20
	b.ne	LBB0_6
	b	LBB0_4
LBB0_9:
	sub	x13, x9, #1
	b	LBB0_4
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_EEPROM_MODE_11A,8,3       ; @AR5K_EEPROM_MODE_11A
	.comm	_AR5K_EEPROM_MODE_11B,8,3       ; @AR5K_EEPROM_MODE_11B
	.comm	_AR5K_EEPROM_MODE_11G,8,3       ; @AR5K_EEPROM_MODE_11G
	.no_dead_strip	_ath5k_get_rate_pcal_data
.subsections_via_symbols
