	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_hw_atten_chain_get
_ar9003_hw_atten_chain_get:             ## @ar9003_hw_atten_chain_get
	.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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	xorl	%eax, %eax
	cmpl	$2, %esi
	ja	LBB0_6
## %bb.1:
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	%rdx, %rdi
	callq	_IS_CHAN_2GHZ
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	24(%r15), %rax
	movl	%ebx, %ecx
	movl	(%rax,%rcx,4), %eax
	jmp	LBB0_6
LBB0_3:
	movq	8(%r15), %rcx
	movl	%ebx, %eax
	movl	(%rcx,%rax,4), %ecx
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.4:
	movl	%ecx, -56(%rbp)
	movl	$5180, -44(%rbp)                ## imm = 0x143C
	movq	(%r15), %rcx
	movl	(%rcx,%rax,4), %ecx
	movl	%ecx, -52(%rbp)
	movl	$5500, -40(%rbp)                ## imm = 0x157C
	movq	16(%r15), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, -48(%rbp)
	movl	$5785, -36(%rbp)                ## imm = 0x1699
	movl	(%r14), %edi
	leaq	-44(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movl	$3, %ecx
	callq	_ar9003_hw_power_interpolate
	jmp	LBB0_6
LBB0_5:
	movq	(%r15), %rcx
	movl	(%rcx,%rax,4), %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ar9003_hw_atten_chain_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_hw_atten_chain_get
_ar9003_hw_atten_chain_get:             ; @ar9003_hw_atten_chain_get
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cmp	w1, #2
	b.hi	LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x2
	bl	_IS_CHAN_2GHZ
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x8, [x20, #24]
	ldr	w0, [x8, w21, uxtw #2]
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.5:
	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_6:
	ldr	x9, [x20, #8]
	mov	w8, w21
	ldr	w9, [x9, w21, uxtw #2]
	cbz	w9, LBB0_8
; %bb.7:
	str	w9, [sp]
	mov	w9, #5180
	str	w9, [sp, #12]
	ldr	x9, [x20]
	lsl	x8, x8, #2
	ldr	w9, [x9, x8]
	str	w9, [sp, #4]
	mov	w9, #5500
	str	w9, [sp, #16]
	ldr	x9, [x20, #16]
	ldr	w8, [x9, x8]
	str	w8, [sp, #8]
	mov	w8, #5785
	str	w8, [sp, #20]
	ldr	w0, [x19]
	add	x1, sp, #12
	mov	x2, sp
	mov	w3, #3
	bl	_ar9003_hw_power_interpolate
	b	LBB0_4
LBB0_8:
	ldr	x9, [x20]
	ldr	w0, [x9, x8, lsl #2]
	b	LBB0_4
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ar9003_hw_atten_chain_get
.subsections_via_symbols
