	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sa2400_write_phy_antenna
_sa2400_write_phy_antenna:              ## @sa2400_write_phy_antenna
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	movq	_SA2400_ANTENNA@GOTPCREL(%rip), %rax
	movq	_RF_PARAM_ANTBDEFAULT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%rcx), %edx
	je	LBB0_2
## %bb.1:
	movq	_BB_ANTENNA_B@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_2:
	orl	(%rax), %edx
	xorl	%eax, %eax
	cmpw	$14, %si
	jne	LBB0_4
## %bb.3:
	movq	_BB_ANTATTEN_CHAN14@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	orl	%eax, %edx
	movl	$16, %esi
	popq	%rbp
	jmp	_rtl8180_write_phy              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SA2400_ANTENNA,4,2             ## @SA2400_ANTENNA
	.comm	_RF_PARAM_ANTBDEFAULT,4,2       ## @RF_PARAM_ANTBDEFAULT
	.comm	_BB_ANTENNA_B,4,2               ## @BB_ANTENNA_B
	.comm	_BB_ANTATTEN_CHAN14,4,2         ## @BB_ANTATTEN_CHAN14
	.no_dead_strip	_sa2400_write_phy_antenna
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sa2400_write_phy_antenna
_sa2400_write_phy_antenna:              ; @sa2400_write_phy_antenna
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SA2400_ANTENNA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SA2400_ANTENNA@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w8, [x8]
Lloh3:
	adrp	x10, _RF_PARAM_ANTBDEFAULT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _RF_PARAM_ANTBDEFAULT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _BB_ANTENNA_B@GOTPAGE
Lloh7:
	ldr	x11, [x11, _BB_ANTENNA_B@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w8, wzr, w11, eq
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _BB_ANTATTEN_CHAN14@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BB_ANTATTEN_CHAN14@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w1, #14
	csel	w9, w9, wzr, eq
	orr	w2, w8, w9
	mov	w1, #16
	b	_rtl8180_write_phy
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SA2400_ANTENNA,4,2             ; @SA2400_ANTENNA
	.comm	_RF_PARAM_ANTBDEFAULT,4,2       ; @RF_PARAM_ANTBDEFAULT
	.comm	_BB_ANTENNA_B,4,2               ; @BB_ANTENNA_B
	.comm	_BB_ANTATTEN_CHAN14,4,2         ; @BB_ANTATTEN_CHAN14
	.no_dead_strip	_sa2400_write_phy_antenna
.subsections_via_symbols
