	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath_select_ant_div_from_quick_scan
_ath_select_ant_div_from_quick_scan:    ## @ath_select_ant_div_from_quick_scan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%ecx, %r9d
	movl	%edx, %eax
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %ecx
	cmpl	$2, %ecx
	je	LBB0_4
## %bb.1:
	cmpl	$1, %ecx
	je	LBB0_8
## %bb.2:
	testl	%ecx, %ecx
	jne	LBB0_17
## %bb.3:
	movl	4(%rbx), %eax
	movl	%eax, (%r14)
	movl	56(%rbx), %eax
	movl	%eax, 8(%r14)
	jmp	LBB0_17
LBB0_4:
	movq	$0, 20(%rbx)
	movl	$0, 28(%rbx)
	movl	%eax, 8(%rbx)
	movl	%r9d, 32(%rbx)
	movl	52(%rbx), %ecx
	cmpl	$128, %ecx
	je	LBB0_18
## %bb.5:
	cmpl	$129, %ecx
	je	LBB0_19
## %bb.6:
	cmpl	$130, %ecx
	jne	LBB0_23
## %bb.7:
	movl	%r9d, 36(%rbx)
	jmp	LBB0_23
LBB0_8:
	movl	4(%rbx), %ecx
	movl	%ecx, (%r14)
	movl	52(%rbx), %edx
	movl	%edx, 8(%r14)
	movl	%eax, 8(%rbx)
	movl	%r9d, 12(%rbx)
	cmpl	$128, %ecx
	je	LBB0_14
## %bb.9:
	cmpl	$130, %ecx
	jne	LBB0_15
## %bb.10:
	movq	_ATH_ANT_DIV_COMB_LNA1_DELTA_HI@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_14:
	movq	_ATH_ANT_DIV_COMB_LNA1_DELTA_MID@GOTPCREL(%rip), %rcx
LBB0_11:
	movl	(%rcx), %edx
	movq	_ATH_ANT_DIV_COMB_LNA1_DELTA_LOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	48(%rbx), %esi
	movl	%esi, (%rsp)
	movq	%rbx, %rdi
	movl	%r8d, %esi
	jmp	LBB0_12
LBB0_15:
	movq	_ATH_ANT_DIV_COMB_LNA1_DELTA_HI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	48(%rbx), %ecx
	movl	%ecx, (%rsp)
	movq	%rbx, %rdi
	movl	%r8d, %esi
	xorl	%ecx, %ecx
LBB0_12:
	movl	%eax, %r8d
	callq	_ath_is_alt_ant_ratio_better
	testl	%eax, %eax
	je	LBB0_16
## %bb.13:
	movl	$1, 16(%rbx)
	jmp	LBB0_17
LBB0_16:
	movl	$0, 16(%rbx)
LBB0_17:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_18:
	movl	%r9d, 40(%rbx)
	jmp	LBB0_23
LBB0_19:
	movl	4(%rbx), %ecx
	cmpl	$130, %ecx
	je	LBB0_22
## %bb.20:
	cmpl	$128, %ecx
	jne	LBB0_23
## %bb.21:
	movl	%eax, 40(%rbx)
	jmp	LBB0_23
LBB0_22:
	movl	%eax, 36(%rbx)
LBB0_23:
	movl	4(%r14), %ecx
	addl	36(%rbx), %ecx
	xorl	%edx, %edx
	cmpl	%ecx, 40(%rbx)
	setle	%dl
	leal	(%rdx,%rdx), %ecx
	addl	$128, %ecx
	movl	%ecx, (%r14)
	movl	4(%rbx), %ecx
	cmpl	$128, %ecx
	je	LBB0_29
## %bb.24:
	cmpl	$130, %ecx
	jne	LBB0_30
## %bb.25:
	movq	_ATH_ANT_DIV_COMB_LNA1_DELTA_HI@GOTPCREL(%rip), %rcx
	jmp	LBB0_26
LBB0_29:
	movq	_ATH_ANT_DIV_COMB_LNA1_DELTA_MID@GOTPCREL(%rip), %rcx
LBB0_26:
	movl	(%rcx), %edx
	movq	_ATH_ANT_DIV_COMB_LNA1_DELTA_LOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	48(%rbx), %esi
	movl	%esi, (%rsp)
	movq	%rbx, %rdi
	movl	%r8d, %esi
	jmp	LBB0_27
LBB0_30:
	movq	_ATH_ANT_DIV_COMB_LNA1_DELTA_HI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	48(%rbx), %ecx
	movl	%ecx, (%rsp)
	movq	%rbx, %rdi
	movl	%r8d, %esi
	xorl	%ecx, %ecx
LBB0_27:
	movl	%eax, %r8d
	callq	_ath_is_alt_ant_ratio_better
	testl	%eax, %eax
	je	LBB0_31
## %bb.28:
	movl	$1, 44(%rbx)
	jmp	LBB0_32
LBB0_31:
	movl	$0, 44(%rbx)
LBB0_32:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ath_ant_set_alt_ratio          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH_ANT_DIV_COMB_LNA1_DELTA_HI,4,2 ## @ATH_ANT_DIV_COMB_LNA1_DELTA_HI
	.comm	_ATH_ANT_DIV_COMB_LNA1_DELTA_LOW,4,2 ## @ATH_ANT_DIV_COMB_LNA1_DELTA_LOW
	.comm	_ATH_ANT_DIV_COMB_LNA1_DELTA_MID,4,2 ## @ATH_ANT_DIV_COMB_LNA1_DELTA_MID
	.no_dead_strip	_ath_select_ant_div_from_quick_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath_select_ant_div_from_quick_scan
_ath_select_ant_div_from_quick_scan:    ; @ath_select_ant_div_from_quick_scan
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x5, x3
	mov	x8, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w9, [x0]
	cmp	w9, #2
	b.eq	LBB0_4
; %bb.1:
	cmp	w9, #1
	b.eq	LBB0_8
; %bb.2:
	cbnz	w9, LBB0_17
; %bb.3:
	ldr	w8, [x19, #4]
	str	w8, [x20]
	ldr	w8, [x19, #56]
	str	w8, [x20, #8]
	b	LBB0_17
LBB0_4:
	str	xzr, [x19, #24]
	str	wzr, [x19, #20]
	str	w8, [x19, #8]
	str	w5, [x19, #32]
	ldr	w9, [x19, #52]
	cmp	w9, #128
	b.eq	LBB0_18
; %bb.5:
	cmp	w9, #129
	b.eq	LBB0_19
; %bb.6:
	cmp	w9, #130
	b.ne	LBB0_23
; %bb.7:
	str	w5, [x19, #36]
	b	LBB0_23
LBB0_8:
	ldr	w9, [x19, #4]
	str	w9, [x20]
	ldr	w10, [x19, #52]
	str	w10, [x20, #8]
	stp	w8, w5, [x19, #8]
	cmp	w9, #128
	b.eq	LBB0_11
; %bb.9:
	cmp	w9, #130
	b.ne	LBB0_13
; %bb.10:
Lloh0:
	adrp	x9, _ATH_ANT_DIV_COMB_LNA1_DELTA_HI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATH_ANT_DIV_COMB_LNA1_DELTA_HI@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh2:
	adrp	x9, _ATH_ANT_DIV_COMB_LNA1_DELTA_MID@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ATH_ANT_DIV_COMB_LNA1_DELTA_MID@GOTPAGEOFF]
LBB0_12:
	ldr	w2, [x9]
Lloh4:
	adrp	x9, _ATH_ANT_DIV_COMB_LNA1_DELTA_LOW@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ATH_ANT_DIV_COMB_LNA1_DELTA_LOW@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x9]
	ldr	w6, [x19, #48]
	mov	x0, x19
	mov	x1, x4
	b	LBB0_14
LBB0_13:
Lloh7:
	adrp	x9, _ATH_ANT_DIV_COMB_LNA1_DELTA_HI@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ATH_ANT_DIV_COMB_LNA1_DELTA_HI@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x9]
	ldr	w6, [x19, #48]
	mov	x0, x19
	mov	x1, x4
	mov	w3, #0
LBB0_14:
	mov	x4, x8
	bl	_ath_is_alt_ant_ratio_better
	cbz	w0, LBB0_16
; %bb.15:
	mov	w8, #1
	str	w8, [x19, #16]
	b	LBB0_17
LBB0_16:
	str	wzr, [x19, #16]
LBB0_17:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_18:
	str	w5, [x19, #40]
	b	LBB0_23
LBB0_19:
	ldr	w9, [x19, #4]
	cmp	w9, #130
	b.eq	LBB0_22
; %bb.20:
	cmp	w9, #128
	b.ne	LBB0_23
; %bb.21:
	str	w8, [x19, #40]
	b	LBB0_23
LBB0_22:
	str	w8, [x19, #36]
LBB0_23:
	ldp	w10, w9, [x19, #36]
	ldr	w11, [x20, #4]
	add	w10, w11, w10
	cmp	w9, w10
	mov	w9, #130
	mov	w10, #128
	csel	w9, w10, w9, gt
	str	w9, [x20]
	ldr	w9, [x19, #4]
	cmp	w9, #128
	b.eq	LBB0_26
; %bb.24:
	cmp	w9, #130
	b.ne	LBB0_28
; %bb.25:
Lloh10:
	adrp	x9, _ATH_ANT_DIV_COMB_LNA1_DELTA_HI@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ATH_ANT_DIV_COMB_LNA1_DELTA_HI@GOTPAGEOFF]
	b	LBB0_27
LBB0_26:
Lloh12:
	adrp	x9, _ATH_ANT_DIV_COMB_LNA1_DELTA_MID@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ATH_ANT_DIV_COMB_LNA1_DELTA_MID@GOTPAGEOFF]
LBB0_27:
	ldr	w2, [x9]
Lloh14:
	adrp	x9, _ATH_ANT_DIV_COMB_LNA1_DELTA_LOW@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ATH_ANT_DIV_COMB_LNA1_DELTA_LOW@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x9]
	ldr	w6, [x19, #48]
	mov	x0, x19
	mov	x1, x4
	b	LBB0_29
LBB0_28:
Lloh17:
	adrp	x9, _ATH_ANT_DIV_COMB_LNA1_DELTA_HI@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ATH_ANT_DIV_COMB_LNA1_DELTA_HI@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x9]
	ldr	w6, [x19, #48]
	mov	x0, x19
	mov	x1, x4
	mov	w3, #0
LBB0_29:
	mov	x4, x8
	bl	_ath_is_alt_ant_ratio_better
	cbz	w0, LBB0_31
; %bb.30:
	mov	w8, #1
	str	w8, [x19, #44]
	b	LBB0_32
LBB0_31:
	str	wzr, [x19, #44]
LBB0_32:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ath_ant_set_alt_ratio
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH_ANT_DIV_COMB_LNA1_DELTA_HI,4,2 ; @ATH_ANT_DIV_COMB_LNA1_DELTA_HI
	.comm	_ATH_ANT_DIV_COMB_LNA1_DELTA_LOW,4,2 ; @ATH_ANT_DIV_COMB_LNA1_DELTA_LOW
	.comm	_ATH_ANT_DIV_COMB_LNA1_DELTA_MID,4,2 ; @ATH_ANT_DIV_COMB_LNA1_DELTA_MID
	.no_dead_strip	_ath_select_ant_div_from_quick_scan
.subsections_via_symbols
