	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_hw_rtt_fill_hist_entry
_ar9003_hw_rtt_fill_hist_entry:         ## @ar9003_hw_rtt_fill_hist_entry
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_AR_PHY_RTT_SW_RTT_TABLE_ACCESS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	xorl	%edi, %edi
	callq	_SM
	movl	%eax, %ebx
	movq	_AR_PHY_RTT_SW_RTT_TABLE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_SM
	orl	%eax, %ebx
	movq	_AR_PHY_RTT_SW_RTT_TABLE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_SM
	orl	%eax, %ebx
	movl	%r15d, %edi
	callq	_AR_PHY_RTT_TABLE_SW_INTF_B
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_REG_WRITE
	movl	$1, %edi
	callq	_udelay
	movl	(%r13), %esi
	movl	$1, %edi
	callq	_SM
	orl	%eax, %ebx
	movl	%r15d, %edi
	callq	_AR_PHY_RTT_TABLE_SW_INTF_B
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_REG_WRITE
	movl	$1, %edi
	callq	_udelay
	movl	%r15d, %edi
	callq	_AR_PHY_RTT_TABLE_SW_INTF_B
	movl	(%r13), %edx
	movq	_RTT_ACCESS_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	callq	_ath9k_hw_wait
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%r15d, %edi
	callq	_AR_PHY_RTT_TABLE_SW_INTF_1_B
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_REG_READ
	movq	_AR_PHY_RTT_SW_RTT_TABLE_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_MS                             ## TAILCALL
LBB0_1:
	movq	_RTT_BAD_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_PHY_RTT_SW_RTT_TABLE_ACCESS,4,2 ## @AR_PHY_RTT_SW_RTT_TABLE_ACCESS
	.comm	_AR_PHY_RTT_SW_RTT_TABLE_WRITE,4,2 ## @AR_PHY_RTT_SW_RTT_TABLE_WRITE
	.comm	_AR_PHY_RTT_SW_RTT_TABLE_ADDR,4,2 ## @AR_PHY_RTT_SW_RTT_TABLE_ADDR
	.comm	_RTT_ACCESS_TIMEOUT,4,2         ## @RTT_ACCESS_TIMEOUT
	.comm	_RTT_BAD_VALUE,4,2              ## @RTT_BAD_VALUE
	.comm	_AR_PHY_RTT_SW_RTT_TABLE_DATA,4,2 ## @AR_PHY_RTT_SW_RTT_TABLE_DATA
	.no_dead_strip	_ar9003_hw_rtt_fill_hist_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_hw_rtt_fill_hist_entry
_ar9003_hw_rtt_fill_hist_entry:         ; @ar9003_hw_rtt_fill_hist_entry
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _AR_PHY_RTT_SW_RTT_TABLE_ACCESS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AR_PHY_RTT_SW_RTT_TABLE_ACCESS@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #0
	bl	_SM
	mov	x22, x0
Lloh2:
	adrp	x8, _AR_PHY_RTT_SW_RTT_TABLE_WRITE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR_PHY_RTT_SW_RTT_TABLE_WRITE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_SM
	orr	w22, w0, w22
Lloh5:
	adrp	x8, _AR_PHY_RTT_SW_RTT_TABLE_ADDR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AR_PHY_RTT_SW_RTT_TABLE_ADDR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_SM
	orr	w21, w22, w0
	mov	x0, x20
	bl	_AR_PHY_RTT_TABLE_SW_INTF_B
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_REG_WRITE
	mov	w0, #1
	bl	_udelay
	ldr	w1, [x23]
	mov	w0, #1
	bl	_SM
	orr	w21, w0, w21
	mov	x0, x20
	bl	_AR_PHY_RTT_TABLE_SW_INTF_B
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_REG_WRITE
	mov	w0, #1
	bl	_udelay
	mov	x0, x20
	bl	_AR_PHY_RTT_TABLE_SW_INTF_B
	mov	x1, x0
	ldr	w2, [x23]
Lloh8:
	adrp	x8, _RTT_ACCESS_TIMEOUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RTT_ACCESS_TIMEOUT@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_ath9k_hw_wait
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_AR_PHY_RTT_TABLE_SW_INTF_1_B
	mov	x1, x0
	mov	x0, x19
	bl	_REG_READ
Lloh11:
	adrp	x8, _AR_PHY_RTT_SW_RTT_TABLE_DATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AR_PHY_RTT_SW_RTT_TABLE_DATA@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	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
	b	_MS
LBB0_2:
Lloh14:
	adrp	x8, _RTT_BAD_VALUE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RTT_BAD_VALUE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_PHY_RTT_SW_RTT_TABLE_ACCESS,4,2 ; @AR_PHY_RTT_SW_RTT_TABLE_ACCESS
	.comm	_AR_PHY_RTT_SW_RTT_TABLE_WRITE,4,2 ; @AR_PHY_RTT_SW_RTT_TABLE_WRITE
	.comm	_AR_PHY_RTT_SW_RTT_TABLE_ADDR,4,2 ; @AR_PHY_RTT_SW_RTT_TABLE_ADDR
	.comm	_RTT_ACCESS_TIMEOUT,4,2         ; @RTT_ACCESS_TIMEOUT
	.comm	_RTT_BAD_VALUE,4,2              ; @RTT_BAD_VALUE
	.comm	_AR_PHY_RTT_SW_RTT_TABLE_DATA,4,2 ; @AR_PHY_RTT_SW_RTT_TABLE_DATA
	.no_dead_strip	_ar9003_hw_rtt_fill_hist_entry
.subsections_via_symbols
