	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_coex_cfg_wl_rx_gain
_rtw8822c_coex_cfg_wl_rx_gain:          ## @rtw8822c_coex_cfg_wl_rx_gain
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	%esi, (%rdi)
	jne	LBB0_1
## %bb.5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movl	%esi, %eax
	movq	%rdi, %rbx
	movl	%esi, (%rdi)
	movq	_RF_PATH_A@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$222, %edx
	movl	$1048575, %ecx                  ## imm = 0xFFFFF
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	$34, %r8d
	callq	_rtw_write_rf
	movl	(%r14), %esi
	movl	$54, %r14d
	movq	%rbx, %rdi
	movl	$29, %edx
	movl	$1048575, %ecx                  ## imm = 0xFFFFF
	movl	$54, %r8d
	callq	_rtw_write_rf
	movq	_RF_PATH_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$222, %edx
	movl	$1048575, %ecx                  ## imm = 0xFFFFF
	movl	$34, %r8d
	jmp	LBB0_4
LBB0_3:
	movl	$32, %r8d
	callq	_rtw_write_rf
	movl	(%r14), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movl	$29, %edx
	movl	$1048575, %ecx                  ## imm = 0xFFFFF
	xorl	%r8d, %r8d
LBB0_4:
	callq	_rtw_write_rf
	movq	_RF_PATH_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$29, %edx
	movl	$1048575, %ecx                  ## imm = 0xFFFFF
	movl	%r14d, %r8d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rtw_write_rf                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RF_PATH_A,4,2                  ## @RF_PATH_A
	.comm	_RF_PATH_B,4,2                  ## @RF_PATH_B
	.no_dead_strip	_rtw8822c_coex_cfg_wl_rx_gain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw8822c_coex_cfg_wl_rx_gain
_rtw8822c_coex_cfg_wl_rx_gain:          ; @rtw8822c_coex_cfg_wl_rx_gain
	.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
	ldr	w9, [x0]
	cmp	w9, w1
	b.ne	LBB0_2
; %bb.1:
	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_2:
	mov	x8, x1
	mov	x19, x0
	str	w1, [x0]
Lloh0:
	adrp	x20, _RF_PATH_A@GOTPAGE
Lloh1:
	ldr	x20, [x20, _RF_PATH_A@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x21, _RF_PATH_B@GOTPAGE
Lloh3:
	ldr	x21, [x21, _RF_PATH_B@GOTPAGEOFF]
	mov	w2, #222
	mov	w3, #1048575
	cbz	w8, LBB0_4
; %bb.3:
	mov	w4, #34
	bl	_rtw_write_rf
	ldr	w1, [x20]
	mov	w20, #54
	mov	x0, x19
	mov	w2, #29
	mov	w3, #1048575
	mov	w4, #54
	bl	_rtw_write_rf
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #222
	mov	w3, #1048575
	mov	w4, #34
	bl	_rtw_write_rf
	b	LBB0_5
LBB0_4:
	mov	w4, #32
	bl	_rtw_write_rf
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #29
	mov	w3, #1048575
	mov	w4, #0
	bl	_rtw_write_rf
	mov	w20, #0
LBB0_5:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #29
	mov	w3, #1048575
	mov	x4, 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	_rtw_write_rf
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RF_PATH_A,4,2                  ; @RF_PATH_A
	.comm	_RF_PATH_B,4,2                  ; @RF_PATH_B
	.no_dead_strip	_rtw8822c_coex_cfg_wl_rx_gain
.subsections_via_symbols
