	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_hw_antdiv_comb_conf_set
_ar9003_hw_antdiv_comb_conf_set:        ## @ar9003_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_MC_GAIN_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_REG_READ
	movq	_AR_PHY_ANT_DIV_MAIN_LNACONF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_AR_PHY_ANT_DIV_ALT_LNACONF@GOTPCREL(%rip), %rsi
	movq	_AR_PHY_ANT_DIV_MAIN_LNACONF_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	(%r12), %edi
	shll	%cl, %edi
	movl	(%rsi), %edx
	movl	4(%r12), %esi
	movq	_AR_PHY_ANT_DIV_ALT_LNACONF_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	andl	%edx, %esi
	orl	%r8d, %edx
	movq	_AR_PHY_ANT_FAST_DIV_BIAS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	_AR_PHY_ANT_DIV_MAIN_GAINTB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	_AR_PHY_ANT_FAST_DIV_BIAS_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	8(%r12), %ebx
	shll	%cl, %ebx
	andl	%r10d, %ebx
	orl	%r9d, %r10d
	orl	%edx, %r10d
	movq	_AR_PHY_ANT_DIV_ALT_GAINTB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
	orl	%r11d, %r10d
	notl	%r10d
	andl	%eax, %r10d
	andl	%r8d, %edi
	orl	%edi, %esi
	orl	%r10d, %esi
	movl	12(%r12), %eax
	movq	_AR_PHY_ANT_DIV_MAIN_GAINTB_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	andl	%r9d, %eax
	orl	%ebx, %eax
	movl	16(%r12), %edx
	movq	_AR_PHY_ANT_DIV_ALT_GAINTB_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	andl	%r11d, %edx
	orl	%eax, %edx
	orl	%esi, %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_MC_GAIN_CTRL,4,2        ## @AR_PHY_MC_GAIN_CTRL
	.comm	_AR_PHY_ANT_DIV_MAIN_LNACONF,4,2 ## @AR_PHY_ANT_DIV_MAIN_LNACONF
	.comm	_AR_PHY_ANT_DIV_ALT_LNACONF,4,2 ## @AR_PHY_ANT_DIV_ALT_LNACONF
	.comm	_AR_PHY_ANT_FAST_DIV_BIAS,4,2   ## @AR_PHY_ANT_FAST_DIV_BIAS
	.comm	_AR_PHY_ANT_DIV_MAIN_GAINTB,4,2 ## @AR_PHY_ANT_DIV_MAIN_GAINTB
	.comm	_AR_PHY_ANT_DIV_ALT_GAINTB,4,2  ## @AR_PHY_ANT_DIV_ALT_GAINTB
	.comm	_AR_PHY_ANT_DIV_MAIN_LNACONF_S,4,2 ## @AR_PHY_ANT_DIV_MAIN_LNACONF_S
	.comm	_AR_PHY_ANT_DIV_ALT_LNACONF_S,4,2 ## @AR_PHY_ANT_DIV_ALT_LNACONF_S
	.comm	_AR_PHY_ANT_FAST_DIV_BIAS_S,4,2 ## @AR_PHY_ANT_FAST_DIV_BIAS_S
	.comm	_AR_PHY_ANT_DIV_MAIN_GAINTB_S,4,2 ## @AR_PHY_ANT_DIV_MAIN_GAINTB_S
	.comm	_AR_PHY_ANT_DIV_ALT_GAINTB_S,4,2 ## @AR_PHY_ANT_DIV_ALT_GAINTB_S
	.no_dead_strip	_ar9003_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 ar9003_hw_antdiv_comb_conf_set
_ar9003_hw_antdiv_comb_conf_set:        ; @ar9003_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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _AR_PHY_MC_GAIN_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AR_PHY_MC_GAIN_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_REG_READ
Lloh2:
	adrp	x8, _AR_PHY_ANT_DIV_MAIN_LNACONF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR_PHY_ANT_DIV_MAIN_LNACONF@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _AR_PHY_ANT_DIV_ALT_LNACONF@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AR_PHY_ANT_DIV_ALT_LNACONF@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w10, w9, w8
Lloh8:
	adrp	x11, _AR_PHY_ANT_FAST_DIV_BIAS@GOTPAGE
Lloh9:
	ldr	x11, [x11, _AR_PHY_ANT_FAST_DIV_BIAS@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	orr	w10, w10, w11
Lloh11:
	adrp	x12, _AR_PHY_ANT_DIV_MAIN_GAINTB@GOTPAGE
Lloh12:
	ldr	x12, [x12, _AR_PHY_ANT_DIV_MAIN_GAINTB@GOTPAGEOFF]
Lloh13:
	ldr	w12, [x12]
	orr	w10, w10, w12
Lloh14:
	adrp	x13, _AR_PHY_ANT_DIV_ALT_GAINTB@GOTPAGE
Lloh15:
	ldr	x13, [x13, _AR_PHY_ANT_DIV_ALT_GAINTB@GOTPAGEOFF]
Lloh16:
	ldr	w13, [x13]
	orr	w10, w10, w13
	bic	w10, w0, w10
Lloh17:
	adrp	x14, _AR_PHY_ANT_DIV_MAIN_LNACONF_S@GOTPAGE
Lloh18:
	ldr	x14, [x14, _AR_PHY_ANT_DIV_MAIN_LNACONF_S@GOTPAGEOFF]
Lloh19:
	ldr	w14, [x14]
	ldp	w15, w16, [x20]
	lsl	w14, w15, w14
	and	w8, w14, w8
Lloh20:
	adrp	x14, _AR_PHY_ANT_DIV_ALT_LNACONF_S@GOTPAGE
Lloh21:
	ldr	x14, [x14, _AR_PHY_ANT_DIV_ALT_LNACONF_S@GOTPAGEOFF]
	orr	w8, w8, w10
Lloh22:
	ldr	w10, [x14]
	lsl	w10, w16, w10
	and	w9, w10, w9
Lloh23:
	adrp	x10, _AR_PHY_ANT_FAST_DIV_BIAS_S@GOTPAGE
Lloh24:
	ldr	x10, [x10, _AR_PHY_ANT_FAST_DIV_BIAS_S@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh25:
	ldr	w9, [x10]
	ldp	w10, w14, [x20, #8]
	lsl	w9, w10, w9
	and	w9, w9, w11
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _AR_PHY_ANT_DIV_MAIN_GAINTB_S@GOTPAGE
Lloh27:
	ldr	x9, [x9, _AR_PHY_ANT_DIV_MAIN_GAINTB_S@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	lsl	w9, w14, w9
	and	w9, w9, w12
	orr	w8, w8, w9
	ldr	w9, [x20, #16]
Lloh29:
	adrp	x10, _AR_PHY_ANT_DIV_ALT_GAINTB_S@GOTPAGE
Lloh30:
	ldr	x10, [x10, _AR_PHY_ANT_DIV_ALT_GAINTB_S@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	and	w9, w9, w13
	orr	w2, w8, w9
	ldr	w1, [x21]
	mov	x0, x19
	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	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.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_MC_GAIN_CTRL,4,2        ; @AR_PHY_MC_GAIN_CTRL
	.comm	_AR_PHY_ANT_DIV_MAIN_LNACONF,4,2 ; @AR_PHY_ANT_DIV_MAIN_LNACONF
	.comm	_AR_PHY_ANT_DIV_ALT_LNACONF,4,2 ; @AR_PHY_ANT_DIV_ALT_LNACONF
	.comm	_AR_PHY_ANT_FAST_DIV_BIAS,4,2   ; @AR_PHY_ANT_FAST_DIV_BIAS
	.comm	_AR_PHY_ANT_DIV_MAIN_GAINTB,4,2 ; @AR_PHY_ANT_DIV_MAIN_GAINTB
	.comm	_AR_PHY_ANT_DIV_ALT_GAINTB,4,2  ; @AR_PHY_ANT_DIV_ALT_GAINTB
	.comm	_AR_PHY_ANT_DIV_MAIN_LNACONF_S,4,2 ; @AR_PHY_ANT_DIV_MAIN_LNACONF_S
	.comm	_AR_PHY_ANT_DIV_ALT_LNACONF_S,4,2 ; @AR_PHY_ANT_DIV_ALT_LNACONF_S
	.comm	_AR_PHY_ANT_FAST_DIV_BIAS_S,4,2 ; @AR_PHY_ANT_FAST_DIV_BIAS_S
	.comm	_AR_PHY_ANT_DIV_MAIN_GAINTB_S,4,2 ; @AR_PHY_ANT_DIV_MAIN_GAINTB_S
	.comm	_AR_PHY_ANT_DIV_ALT_GAINTB_S,4,2 ; @AR_PHY_ANT_DIV_ALT_GAINTB_S
	.no_dead_strip	_ar9003_hw_antdiv_comb_conf_set
.subsections_via_symbols
