	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath_ant_try_switch
_ath_ant_try_switch:                    ## @ath_ant_try_switch
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movq	%rdi, %rbx
	movl	16(%rbp), %r15d
	callq	_ath_ant_div_comb_alt_check
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ATH_ANT_DIV_COMB_LNA2@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_8
## %bb.2:
	movq	_ATH_ANT_DIV_COMB_LNA1@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_3:
	movq	_ATH_ANT_DIV_COMB_LNA1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	cmpl	%r15d, %edx
	je	LBB0_11
## %bb.4:
	movq	_ATH_ANT_DIV_COMB_LNA2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%r15d, %ecx
	je	LBB0_11
## %bb.5:
	cmpl	%r14d, %ecx
	jne	LBB0_7
## %bb.6:
	movl	%edx, %ecx
	jmp	LBB0_10
LBB0_8:
	movq	_ATH_ANT_DIV_COMB_LNA1@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpl	%r15d, (%rdx)
	jne	LBB0_11
LBB0_9:
	movl	%r15d, (%rbx)
	movl	(%rcx), %ecx
LBB0_10:
	movl	%ecx, 4(%rbx)
	movl	$1, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	$1, %eax
	cmpl	%r14d, %edx
	je	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH_ANT_DIV_COMB_LNA2,4,2      ## @ATH_ANT_DIV_COMB_LNA2
	.comm	_ATH_ANT_DIV_COMB_LNA1,4,2      ## @ATH_ANT_DIV_COMB_LNA1
	.no_dead_strip	_ath_ant_try_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath_ant_try_switch
_ath_ant_try_switch:                    ; @ath_ant_try_switch
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x6
	mov	x21, x5
	mov	x19, x0
	bl	_ath_ant_div_comb_alt_check
	cbz	x0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _ATH_ANT_DIV_COMB_LNA2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH_ANT_DIV_COMB_LNA2@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _ATH_ANT_DIV_COMB_LNA1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH_ANT_DIV_COMB_LNA1@GOTPAGEOFF]
	cmp	w9, w20
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_6
; %bb.3:
Lloh5:
	adrp	x8, _ATH_ANT_DIV_COMB_LNA2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ATH_ANT_DIV_COMB_LNA2@GOTPAGEOFF]
LBB0_4:
	str	w20, [x19]
	ldr	w8, [x8]
LBB0_5:
	str	w8, [x19, #4]
LBB0_6:
	mov	w0, #1
	b	LBB0_10
LBB0_7:
Lloh7:
	adrp	x8, _ATH_ANT_DIV_COMB_LNA1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ATH_ANT_DIV_COMB_LNA1@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_9
; %bb.8:
Lloh10:
	adrp	x9, _ATH_ANT_DIV_COMB_LNA2@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ATH_ANT_DIV_COMB_LNA2@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w9, w20
	b.ne	LBB0_11
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	cmp	w9, w21
	b.eq	LBB0_5
; %bb.12:
	cmp	w8, w21
	mov	x8, x9
	b.eq	LBB0_5
	b	LBB0_6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH_ANT_DIV_COMB_LNA2,4,2      ; @ATH_ANT_DIV_COMB_LNA2
	.comm	_ATH_ANT_DIV_COMB_LNA1,4,2      ; @ATH_ANT_DIV_COMB_LNA1
	.no_dead_strip	_ath_ant_try_switch
.subsections_via_symbols
