	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_eeprom_read_ants
_ath5k_eeprom_read_ants:                ## @ath5k_eeprom_read_ants
	.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	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	(%rsi), %r15
	movl	%r15d, %edi
	callq	_AR5K_EEPROM_READ
	movq	8(%r13), %rax
	movl	%r12d, %ebx
	movl	$0, (%rax,%rbx,4)
	movq	16(%r13), %rax
	movl	$0, (%rax,%rbx,4)
	movq	24(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movl	$0, (%rax)
	leal	1(%r15), %edi
	callq	_AR5K_EEPROM_READ
	movq	24(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movq	$0, 4(%rax)
	leal	2(%r15), %edi
	callq	_AR5K_EEPROM_READ
	movq	24(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movq	$0, 12(%rax)
	movl	$0, 20(%rax)
	leal	3(%r15), %edi
	callq	_AR5K_EEPROM_READ
	movq	24(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movq	$0, 24(%rax)
	movl	$0, 32(%rax)
	movq	%r15, %r12
	addq	$5, %r12
	leal	4(%r15), %edi
	callq	_AR5K_EEPROM_READ
	movq	24(%r13), %rax
	movq	(%rax,%rbx,8), %rcx
	movq	$0, 36(%rcx)
	movl	(%rcx), %edx
	shll	$4, %edx
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movq	_AR5K_ANT_CTL@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%edx, (%rax,%rsi,4)
	movl	8(%rcx), %edx
	movl	12(%rcx), %esi
	shll	$6, %edx
	orl	4(%rcx), %edx
	shll	$12, %esi
	movl	16(%rcx), %edi
	shll	$18, %edi
	orl	%esi, %edi
	movl	20(%rcx), %esi
	shll	$24, %esi
	orl	%edi, %esi
	orl	%edx, %esi
	movq	_AR5K_ANT_SWTABLE_A@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%esi, (%rax,%rdx,4)
	movl	28(%rcx), %edx
	movl	32(%rcx), %esi
	shll	$6, %edx
	orl	24(%rcx), %edx
	shll	$12, %esi
	movl	36(%rcx), %edi
	shll	$18, %edi
	orl	%esi, %edi
	movl	40(%rcx), %ecx
	shll	$24, %ecx
	orl	%edi, %ecx
	orl	%edx, %ecx
	movq	_AR5K_ANT_SWTABLE_B@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	%r12, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_ANT_CTL,8,3               ## @AR5K_ANT_CTL
	.comm	_AR5K_ANT_SWTABLE_A,8,3         ## @AR5K_ANT_SWTABLE_A
	.comm	_AR5K_ANT_SWTABLE_B,8,3         ## @AR5K_ANT_SWTABLE_B
	.no_dead_strip	_ath5k_eeprom_read_ants
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_eeprom_read_ants
_ath5k_eeprom_read_ants:                ; @ath5k_eeprom_read_ants
	.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, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x22, [x1]
	mov	x0, x22
	bl	_AR5K_EEPROM_READ
	mov	w8, w20
	lsl	x9, x8, #2
	ldp	x10, x11, [x21, #8]
	str	wzr, [x10, x9]
	str	wzr, [x11, x9]
	ldr	x9, [x21, #24]
	lsl	x20, x8, #3
	ldr	x8, [x9, x20]
	str	wzr, [x8]
	add	w0, w22, #1
	bl	_AR5K_EEPROM_READ
	ldr	x8, [x21, #24]
	ldr	x8, [x8, x20]
	movi.2d	v0, #0000000000000000
	stur	d0, [x8, #4]
	add	w0, w22, #2
	bl	_AR5K_EEPROM_READ
	ldr	x8, [x21, #24]
	ldr	x8, [x8, x20]
	movi.2d	v0, #0000000000000000
	stur	d0, [x8, #12]
	str	wzr, [x8, #20]
	add	w0, w22, #3
	bl	_AR5K_EEPROM_READ
	ldr	x8, [x21, #24]
	ldr	x8, [x8, x20]
	movi.2d	v0, #0000000000000000
	str	d0, [x8, #24]
	str	wzr, [x8, #32]
	add	x23, x22, #5
	add	w0, w22, #4
	bl	_AR5K_EEPROM_READ
	ldr	x8, [x21, #24]
	ldr	x8, [x8, x20]
	movi.2d	v0, #0000000000000000
	stur	d0, [x8, #36]
	ldr	w9, [x8]
	ldr	x10, [x21]
	ldr	x10, [x10, x20]
	lsl	w9, w9, #4
Lloh0:
	adrp	x11, _AR5K_ANT_CTL@GOTPAGE
Lloh1:
	ldr	x11, [x11, _AR5K_ANT_CTL@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	str	w9, [x10, x11, lsl #2]
	ldp	w9, w11, [x8, #4]
	orr	w9, w9, w11, lsl #6
	ldp	w11, w12, [x8, #12]
	orr	w9, w9, w11, lsl #12
	orr	w9, w9, w12, lsl #18
	ldr	w11, [x8, #20]
	orr	w9, w9, w11, lsl #24
Lloh3:
	adrp	x11, _AR5K_ANT_SWTABLE_A@GOTPAGE
Lloh4:
	ldr	x11, [x11, _AR5K_ANT_SWTABLE_A@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	str	w9, [x10, x11, lsl #2]
	ldp	w9, w11, [x8, #24]
	orr	w9, w9, w11, lsl #6
	ldp	w11, w12, [x8, #32]
	orr	w9, w9, w11, lsl #12
	orr	w9, w9, w12, lsl #18
	ldr	w8, [x8, #40]
Lloh6:
	adrp	x11, _AR5K_ANT_SWTABLE_B@GOTPAGE
Lloh7:
	ldr	x11, [x11, _AR5K_ANT_SWTABLE_B@GOTPAGEOFF]
	orr	w8, w9, w8, lsl #24
Lloh8:
	ldr	x9, [x11]
	str	w8, [x10, x9, lsl #2]
	str	x23, [x19]
	mov	w0, #0
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_ANT_CTL,8,3               ; @AR5K_ANT_CTL
	.comm	_AR5K_ANT_SWTABLE_A,8,3         ; @AR5K_ANT_SWTABLE_A
	.comm	_AR5K_ANT_SWTABLE_B,8,3         ; @AR5K_ANT_SWTABLE_B
	.no_dead_strip	_ath5k_eeprom_read_ants
.subsections_via_symbols
