	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_hw_set_delta_slope
_ar9003_hw_set_delta_slope:             ## @ar9003_hw_set_delta_slope
	.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	%rsi, %r14
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_IS_CHAN_HALF_RATE
	movl	$838860800, %ebx                ## imm = 0x32000000
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_IS_CHAN_QUARTER_RATE
	testq	%rax, %rax
	movl	$1677721600, %eax               ## imm = 0x64000000
	movl	$419430400, %ebx                ## imm = 0x19000000
	cmovel	%eax, %ebx
LBB0_2:
	leaq	-56(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_ath9k_hw_get_channel_centers
	movl	%ebx, %eax
	xorl	%edx, %edx
	idivl	-56(%rbp)
	movl	%eax, %r12d
	leaq	-44(%rbp), %r14
	leaq	-48(%rbp), %r15
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_ath9k_hw_get_delta_slope_vals
	movq	_AR_PHY_TIMING3@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_AR_PHY_TIMING3_DSC_MAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %ecx
	movq	%r13, %rdi
	callq	_REG_RMW_FIELD
	movl	(%rbx), %esi
	movq	_AR_PHY_TIMING3_DSC_EXP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-48(%rbp), %ecx
	movq	%r13, %rdi
	callq	_REG_RMW_FIELD
	leal	(%r12,%r12,8), %eax
	cltq
	imulq	$1717986919, %rax, %rsi         ## imm = 0x66666667
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$34, %rsi
	addl	%eax, %esi
	movq	%r13, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_ath9k_hw_get_delta_slope_vals
	movq	_AR_PHY_SGI_DELTA@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_AR_PHY_SGI_DSC_MAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %ecx
	movq	%r13, %rdi
	callq	_REG_RMW_FIELD
	movl	(%rbx), %esi
	movq	_AR_PHY_SGI_DSC_EXP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-48(%rbp), %ecx
	movq	%r13, %rdi
	callq	_REG_RMW_FIELD
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_PHY_TIMING3,4,2             ## @AR_PHY_TIMING3
	.comm	_AR_PHY_TIMING3_DSC_MAN,4,2     ## @AR_PHY_TIMING3_DSC_MAN
	.comm	_AR_PHY_TIMING3_DSC_EXP,4,2     ## @AR_PHY_TIMING3_DSC_EXP
	.comm	_AR_PHY_SGI_DELTA,4,2           ## @AR_PHY_SGI_DELTA
	.comm	_AR_PHY_SGI_DSC_MAN,4,2         ## @AR_PHY_SGI_DSC_MAN
	.comm	_AR_PHY_SGI_DSC_EXP,4,2         ## @AR_PHY_SGI_DSC_EXP
	.no_dead_strip	_ar9003_hw_set_delta_slope
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_hw_set_delta_slope
_ar9003_hw_set_delta_slope:             ; @ar9003_hw_set_delta_slope
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_IS_CHAN_HALF_RATE
	cbz	x0, LBB0_2
; %bb.1:
	mov	w21, #838860800
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_IS_CHAN_QUARTER_RATE
	cmp	x0, #0
	mov	w8, #419430400
	mov	w9, #1677721600
	csel	w21, w9, w8, eq
LBB0_3:
	mov	x2, sp
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_hw_get_channel_centers
	ldr	w8, [sp]
	sdiv	w20, w21, w8
	add	x2, sp, #8
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_hw_get_delta_slope_vals
Lloh0:
	adrp	x21, _AR_PHY_TIMING3@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AR_PHY_TIMING3@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _AR_PHY_TIMING3_DSC_MAN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR_PHY_TIMING3_DSC_MAN@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	ldr	w3, [sp, #8]
	mov	x0, x19
	bl	_REG_RMW_FIELD
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _AR_PHY_TIMING3_DSC_EXP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AR_PHY_TIMING3_DSC_EXP@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	ldr	w3, [sp, #12]
	mov	x0, x19
	bl	_REG_RMW_FIELD
	add	w8, w20, w20, lsl #3
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w1, w8, w9
	add	x2, sp, #8
	add	x3, sp, #12
	mov	x0, x19
	bl	_ath9k_hw_get_delta_slope_vals
Lloh8:
	adrp	x20, _AR_PHY_SGI_DELTA@GOTPAGE
Lloh9:
	ldr	x20, [x20, _AR_PHY_SGI_DELTA@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh10:
	adrp	x8, _AR_PHY_SGI_DSC_MAN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AR_PHY_SGI_DSC_MAN@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	ldr	w3, [sp, #8]
	mov	x0, x19
	bl	_REG_RMW_FIELD
	ldr	w1, [x20]
Lloh13:
	adrp	x8, _AR_PHY_SGI_DSC_EXP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AR_PHY_SGI_DSC_EXP@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	ldr	w3, [sp, #12]
	mov	x0, x19
	bl	_REG_RMW_FIELD
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_PHY_TIMING3,4,2             ; @AR_PHY_TIMING3
	.comm	_AR_PHY_TIMING3_DSC_MAN,4,2     ; @AR_PHY_TIMING3_DSC_MAN
	.comm	_AR_PHY_TIMING3_DSC_EXP,4,2     ; @AR_PHY_TIMING3_DSC_EXP
	.comm	_AR_PHY_SGI_DELTA,4,2           ; @AR_PHY_SGI_DELTA
	.comm	_AR_PHY_SGI_DSC_MAN,4,2         ; @AR_PHY_SGI_DSC_MAN
	.comm	_AR_PHY_SGI_DSC_EXP,4,2         ; @AR_PHY_SGI_DSC_EXP
	.no_dead_strip	_ar9003_hw_set_delta_slope
.subsections_via_symbols
