	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_hw_quick_drop_apply
_ar9003_hw_quick_drop_apply:            ## @ar9003_hw_quick_drop_apply
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	l___const.ar9003_hw_quick_drop_apply.f+8(%rip), %eax
	movl	%eax, -48(%rbp)
	movq	l___const.ar9003_hw_quick_drop_apply.f(%rip), %rax
	movq	%rax, -56(%rbp)
	movl	16(%rdi), %ebx
	movl	$4, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_8
## %bb.1:
	movq	%r15, %rdi
	callq	_AR_SREV_9300
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	callq	_AR_SREV_9580
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_AR_SREV_9340
	testq	%rax, %rax
	je	LBB0_8
LBB0_4:
	cmpl	$3999, %r14d                    ## imm = 0xF9F
	jg	LBB0_6
## %bb.5:
	movl	12(%r15), %ecx
	jmp	LBB0_7
LBB0_6:
	movl	(%r15), %eax
	movl	%eax, -44(%rbp)
	movl	8(%r15), %eax
	movl	%eax, -40(%rbp)
	movl	4(%r15), %eax
	movl	%eax, -36(%rbp)
	leaq	-56(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movl	%r14d, %edi
	movl	$3, %ecx
	callq	_ar9003_hw_power_interpolate
	movl	%eax, %ecx
LBB0_7:
	movq	_AR_PHY_AGC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_AGC_QUICK_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_REG_RMW_FIELD
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @__const.ar9003_hw_quick_drop_apply.f
l___const.ar9003_hw_quick_drop_apply.f:
	.long	5180                            ## 0x143c
	.long	5500                            ## 0x157c
	.long	5785                            ## 0x1699

	.comm	_AR_PHY_AGC,4,2                 ## @AR_PHY_AGC
	.comm	_AR_PHY_AGC_QUICK_DROP,4,2      ## @AR_PHY_AGC_QUICK_DROP
	.no_dead_strip	_ar9003_hw_quick_drop_apply
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_hw_quick_drop_apply
_ar9003_hw_quick_drop_apply:            ; @ar9003_hw_quick_drop_apply
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, l___const.ar9003_hw_quick_drop_apply.f@PAGE
Lloh4:
	add	x9, x9, l___const.ar9003_hw_quick_drop_apply.f@PAGEOFF
	str	x8, [sp, #24]
	ldr	x8, [x9]
	str	x8, [sp]
	ldr	w8, [x9, #8]
	str	w8, [sp, #8]
	ldr	w21, [x0, #16]
	mov	w0, #4
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_8
; %bb.1:
	mov	x0, x19
	bl	_AR_SREV_9300
	cbnz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_AR_SREV_9580
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_AR_SREV_9340
	cbz	x0, LBB0_8
LBB0_4:
	cmp	w20, #3999
	b.gt	LBB0_6
; %bb.5:
	ldr	w3, [x19, #12]
	b	LBB0_7
LBB0_6:
	ldr	w8, [x19]
	str	w8, [sp, #12]
	ldur	d0, [x19, #4]
	rev64.2s	v0, v0
	stur	d0, [sp, #16]
	mov	x1, sp
	add	x2, sp, #12
	mov	x0, x20
	mov	w3, #3
	bl	_ar9003_hw_power_interpolate
	mov	x3, x0
LBB0_7:
Lloh5:
	adrp	x8, _AR_PHY_AGC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AR_PHY_AGC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _AR_PHY_AGC_QUICK_DROP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AR_PHY_AGC_QUICK_DROP@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_RMW_FIELD
LBB0_8:
	ldr	x8, [sp, #24]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.ar9003_hw_quick_drop_apply.f
l___const.ar9003_hw_quick_drop_apply.f:
	.long	5180                            ; 0x143c
	.long	5500                            ; 0x157c
	.long	5785                            ; 0x1699

	.comm	_AR_PHY_AGC,4,2                 ; @AR_PHY_AGC
	.comm	_AR_PHY_AGC_QUICK_DROP,4,2      ; @AR_PHY_AGC_QUICK_DROP
	.no_dead_strip	_ar9003_hw_quick_drop_apply
.subsections_via_symbols
