	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822b_coex_cfg_rfe_type
_rtw8822b_coex_cfg_rfe_type:            ## @rtw8822b_coex_cfg_rfe_type
	.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
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movl	%eax, 16(%rdi)
	movq	$0, 40(%rdi)
	movl	$0, 20(%rdi)
	leal	-18(%rax), %ecx
	movl	$1, %edx
	movl	$1, %esi
	cmpl	$4, %ecx
	ja	LBB0_2
## %bb.1:
	movslq	%ecx, %rcx
	leaq	l_switch.table.rtw8822b_coex_cfg_rfe_type(%rip), %rsi
	movl	(%rsi,%rcx,4), %esi
LBB0_2:
	movl	%esi, 24(%rbx)
	movb	$1, %r14b
	cmpl	$2, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$4, %eax
	je	LBB0_5
## %bb.4:
	xorl	%edx, %edx
	xorl	%r14d, %r14d
LBB0_5:
	movq	_COEX_SCBD_EXTFEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rtw_coex_write_scbd
	movl	$0, 28(%rbx)
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.6:
	cmpl	$0, 24(%rbx)
	setne	%cl
	notb	%r14b
	movl	$1, %eax
	testb	%cl, %r14b
	jne	LBB0_8
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	movl	%eax, 32(%rbx)
	movq	_REG_RFE_CTRL_E@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$255, %edx
	callq	_rtw_write8
	movq	_REG_RFESEL_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	movq	%rbx, %rdi
	movl	$3, %edx
	xorl	%ecx, %ecx
	callq	_rtw_write8_mask
	movq	_REG_RFE_INV16@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_BIT_RFE_BUF_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_rtw_write8_mask
	movq	_LTE_COEX_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BIT_LTE_COEX_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_rtw_coex_write_indirect_reg
	movq	_LTE_WL_TRX_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MASKLWORD@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_rtw_coex_write_indirect_reg
	movq	_LTE_BT_TRX_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	$65535, %ecx                    ## imm = 0xFFFF
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rtw_coex_write_indirect_reg    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_COEX_SCBD_EXTFEM,4,2           ## @COEX_SCBD_EXTFEM
	.comm	_REG_RFE_CTRL_E,4,2             ## @REG_RFE_CTRL_E
	.comm	_REG_RFESEL_CTRL,8,3            ## @REG_RFESEL_CTRL
	.comm	_REG_RFE_INV16,8,3              ## @REG_RFE_INV16
	.comm	_BIT_RFE_BUF_EN,4,2             ## @BIT_RFE_BUF_EN
	.comm	_LTE_COEX_CTRL,4,2              ## @LTE_COEX_CTRL
	.comm	_BIT_LTE_COEX_EN,4,2            ## @BIT_LTE_COEX_EN
	.comm	_LTE_WL_TRX_CTRL,4,2            ## @LTE_WL_TRX_CTRL
	.comm	_MASKLWORD,4,2                  ## @MASKLWORD
	.comm	_LTE_BT_TRX_CTRL,4,2            ## @LTE_BT_TRX_CTRL
	.no_dead_strip	_rtw8822b_coex_cfg_rfe_type
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.rtw8822b_coex_cfg_rfe_type
l_switch.table.rtw8822b_coex_cfg_rfe_type:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw8822b_coex_cfg_rfe_type
_rtw8822b_coex_cfg_rfe_type:            ; @rtw8822b_coex_cfg_rfe_type
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	str	xzr, [x0, #40]
	stp	w8, wzr, [x0, #16]
	sub	w9, w8, #18
	cmp	w9, #4
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x10, l_switch.table.rtw8822b_coex_cfg_rfe_type@PAGE
Lloh1:
	add	x10, x10, l_switch.table.rtw8822b_coex_cfg_rfe_type@PAGEOFF
	ldr	w9, [x10, w9, sxtw #2]
	b	LBB0_3
LBB0_2:
	mov	w9, #1
LBB0_3:
	str	w9, [x19, #24]
	mov	w9, #1
	cmp	w8, #2
	ccmp	w8, #4, #4, ne
	csel	w20, w9, wzr, eq
Lloh2:
	adrp	x8, _COEX_SCBD_EXTFEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _COEX_SCBD_EXTFEM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_rtw_coex_write_scbd
	str	wzr, [x19, #28]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w8, [x19, #24]
	cmp	w8, #0
	cset	w8, ne
	bic	w8, w8, w20
	tbnz	w8, #0, LBB0_6
LBB0_5:
	mov	w8, #0
	b	LBB0_7
LBB0_6:
	mov	w8, #1
LBB0_7:
	str	w8, [x19, #32]
Lloh5:
	adrp	x8, _REG_RFE_CTRL_E@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_RFE_CTRL_E@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #255
	bl	_rtw_write8
Lloh8:
	adrp	x8, _REG_RFESEL_CTRL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REG_RFESEL_CTRL@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x1, x8, #1
	mov	x0, x19
	mov	w2, #3
	mov	w3, #0
	bl	_rtw_write8_mask
Lloh11:
	adrp	x8, _REG_RFE_INV16@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_RFE_INV16@GOTPAGEOFF]
Lloh13:
	ldr	x1, [x8]
Lloh14:
	adrp	x8, _BIT_RFE_BUF_EN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BIT_RFE_BUF_EN@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_rtw_write8_mask
Lloh17:
	adrp	x8, _LTE_COEX_CTRL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LTE_COEX_CTRL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _BIT_LTE_COEX_EN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BIT_LTE_COEX_EN@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_rtw_coex_write_indirect_reg
Lloh23:
	adrp	x8, _LTE_WL_TRX_CTRL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LTE_WL_TRX_CTRL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x20, _MASKLWORD@GOTPAGE
Lloh27:
	ldr	x20, [x20, _MASKLWORD@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w3, #65535
	bl	_rtw_coex_write_indirect_reg
Lloh28:
	adrp	x8, _LTE_BT_TRX_CTRL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _LTE_BT_TRX_CTRL@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w3, #65535
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rtw_coex_write_indirect_reg
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_COEX_SCBD_EXTFEM,4,2           ; @COEX_SCBD_EXTFEM
	.comm	_REG_RFE_CTRL_E,4,2             ; @REG_RFE_CTRL_E
	.comm	_REG_RFESEL_CTRL,8,3            ; @REG_RFESEL_CTRL
	.comm	_REG_RFE_INV16,8,3              ; @REG_RFE_INV16
	.comm	_BIT_RFE_BUF_EN,4,2             ; @BIT_RFE_BUF_EN
	.comm	_LTE_COEX_CTRL,4,2              ; @LTE_COEX_CTRL
	.comm	_BIT_LTE_COEX_EN,4,2            ; @BIT_LTE_COEX_EN
	.comm	_LTE_WL_TRX_CTRL,4,2            ; @LTE_WL_TRX_CTRL
	.comm	_MASKLWORD,4,2                  ; @MASKLWORD
	.comm	_LTE_BT_TRX_CTRL,4,2            ; @LTE_BT_TRX_CTRL
	.no_dead_strip	_rtw8822b_coex_cfg_rfe_type
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.rtw8822b_coex_cfg_rfe_type
l_switch.table.rtw8822b_coex_cfg_rfe_type:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0

.subsections_via_symbols
