	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9002_hw_antdiv_comb_conf_set
_ar9002_hw_antdiv_comb_conf_set:        ## @ar9002_hw_antdiv_comb_conf_set
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_AR_PHY_MULTICHAIN_GAIN_CTL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_REG_READ
	movq	_AR_PHY_9285_ANT_DIV_MAIN_LNACONF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	_AR_PHY_9285_ANT_DIV_ALT_LNACONF@GOTPCREL(%rip), %r8
	movq	_AR_PHY_9285_ANT_DIV_MAIN_LNACONF_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	(%r12), %edi
	movl	4(%r12), %esi
	shll	%cl, %edi
	movq	_AR_PHY_9285_ANT_DIV_ALT_LNACONF_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movl	(%r8), %ecx
	andl	%ecx, %esi
	orl	%r9d, %ecx
	movq	_AR_PHY_9285_FAST_DIV_BIAS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	%ebx, %ecx
	notl	%ecx
	andl	%eax, %ecx
	andl	%r9d, %edi
	orl	%ecx, %edi
	movl	8(%r12), %edx
	movq	_AR_PHY_9285_FAST_DIV_BIAS_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	andl	%ebx, %edx
	orl	%esi, %edx
	orl	%edi, %edx
	movl	(%r15), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_WRITE                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_PHY_MULTICHAIN_GAIN_CTL,4,2 ## @AR_PHY_MULTICHAIN_GAIN_CTL
	.comm	_AR_PHY_9285_ANT_DIV_MAIN_LNACONF,4,2 ## @AR_PHY_9285_ANT_DIV_MAIN_LNACONF
	.comm	_AR_PHY_9285_ANT_DIV_ALT_LNACONF,4,2 ## @AR_PHY_9285_ANT_DIV_ALT_LNACONF
	.comm	_AR_PHY_9285_FAST_DIV_BIAS,4,2  ## @AR_PHY_9285_FAST_DIV_BIAS
	.comm	_AR_PHY_9285_ANT_DIV_MAIN_LNACONF_S,4,2 ## @AR_PHY_9285_ANT_DIV_MAIN_LNACONF_S
	.comm	_AR_PHY_9285_ANT_DIV_ALT_LNACONF_S,4,2 ## @AR_PHY_9285_ANT_DIV_ALT_LNACONF_S
	.comm	_AR_PHY_9285_FAST_DIV_BIAS_S,4,2 ## @AR_PHY_9285_FAST_DIV_BIAS_S
	.no_dead_strip	_ar9002_hw_antdiv_comb_conf_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9002_hw_antdiv_comb_conf_set
_ar9002_hw_antdiv_comb_conf_set:        ; @ar9002_hw_antdiv_comb_conf_set
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _AR_PHY_MULTICHAIN_GAIN_CTL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AR_PHY_MULTICHAIN_GAIN_CTL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_REG_READ
Lloh2:
	adrp	x8, _AR_PHY_9285_ANT_DIV_MAIN_LNACONF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR_PHY_9285_ANT_DIV_MAIN_LNACONF@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _AR_PHY_9285_ANT_DIV_ALT_LNACONF@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AR_PHY_9285_ANT_DIV_ALT_LNACONF@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w10, w9, w8
Lloh8:
	adrp	x11, _AR_PHY_9285_FAST_DIV_BIAS@GOTPAGE
Lloh9:
	ldr	x11, [x11, _AR_PHY_9285_FAST_DIV_BIAS@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	orr	w10, w10, w11
Lloh11:
	adrp	x12, _AR_PHY_9285_ANT_DIV_MAIN_LNACONF_S@GOTPAGE
Lloh12:
	ldr	x12, [x12, _AR_PHY_9285_ANT_DIV_MAIN_LNACONF_S@GOTPAGEOFF]
	bic	w10, w0, w10
Lloh13:
	ldr	w12, [x12]
	ldp	w13, w14, [x19]
	lsl	w12, w13, w12
	and	w8, w12, w8
	orr	w8, w8, w10
Lloh14:
	adrp	x10, _AR_PHY_9285_ANT_DIV_ALT_LNACONF_S@GOTPAGE
Lloh15:
	ldr	x10, [x10, _AR_PHY_9285_ANT_DIV_ALT_LNACONF_S@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	lsl	w10, w14, w10
	and	w9, w10, w9
	orr	w8, w8, w9
	ldr	w9, [x19, #8]
Lloh17:
	adrp	x10, _AR_PHY_9285_FAST_DIV_BIAS_S@GOTPAGE
Lloh18:
	ldr	x10, [x10, _AR_PHY_9285_FAST_DIV_BIAS_S@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	and	w9, w9, w11
	orr	w2, w8, w9
	ldr	w1, [x21]
	mov	x0, x20
	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
	b	_REG_WRITE
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_PHY_MULTICHAIN_GAIN_CTL,4,2 ; @AR_PHY_MULTICHAIN_GAIN_CTL
	.comm	_AR_PHY_9285_ANT_DIV_MAIN_LNACONF,4,2 ; @AR_PHY_9285_ANT_DIV_MAIN_LNACONF
	.comm	_AR_PHY_9285_ANT_DIV_ALT_LNACONF,4,2 ; @AR_PHY_9285_ANT_DIV_ALT_LNACONF
	.comm	_AR_PHY_9285_FAST_DIV_BIAS,4,2  ; @AR_PHY_9285_FAST_DIV_BIAS
	.comm	_AR_PHY_9285_ANT_DIV_MAIN_LNACONF_S,4,2 ; @AR_PHY_9285_ANT_DIV_MAIN_LNACONF_S
	.comm	_AR_PHY_9285_ANT_DIV_ALT_LNACONF_S,4,2 ; @AR_PHY_9285_ANT_DIV_ALT_LNACONF_S
	.comm	_AR_PHY_9285_FAST_DIV_BIAS_S,4,2 ; @AR_PHY_9285_FAST_DIV_BIAS_S
	.no_dead_strip	_ar9002_hw_antdiv_comb_conf_set
.subsections_via_symbols
