	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822b_set_channel_rfe_ifem
_rtw8822b_set_channel_rfe_ifem:         ## @rtw8822b_set_channel_rfe_ifem
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	cmpl	$15, %esi
	movq	_REG_RFESEL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$7624564, %eax                  ## imm = 0x745774
	movl	$4683079, %ecx                  ## imm = 0x477547
	cmovll	%eax, %ecx
	movl	$87, %eax
	movl	$117, %ebx
	cmovll	%eax, %ebx
	movl	$16777215, %edx                 ## imm = 0xFFFFFF
	callq	_rtw_write32s_mask
	movq	_REG_RFESEL8@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MASKBYTE1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	_rtw_write32s_mask
	movq	_REG_RFEINV@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$11, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$10, %edi
	callq	_BIT
	orl	%eax, %ebx
	orl	$63, %ebx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_rtw_write32s_mask
	cmpl	$14, %r14d
	jg	LBB0_8
## %bb.1:
	movq	(%r15), %rax
	movq	_BB_PATH_AB@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rax
	je	LBB0_3
## %bb.2:
	movq	8(%r15), %rcx
	cmpq	%rdx, %rcx
	jne	LBB0_4
LBB0_3:
	movq	_REG_TRSW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MASKLWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$42241, %ecx                    ## imm = 0xA501
	jmp	LBB0_6
LBB0_8:
	movq	_REG_TRSW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MASKLWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$42405, %ecx                    ## imm = 0xA5A5
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtw_write32s_mask              ## TAILCALL
LBB0_4:
	movq	_REG_TRSW@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	_MASKLWORD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	%r15, %rdi
	cmpq	%rcx, %rax
	jne	LBB0_7
## %bb.5:
	movl	$42240, %ecx                    ## imm = 0xA500
	jmp	LBB0_6
LBB0_7:
	movl	$40965, %ecx                    ## imm = 0xA005
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_RFESEL0,4,2                ## @REG_RFESEL0
	.comm	_REG_RFESEL8,4,2                ## @REG_RFESEL8
	.comm	_MASKBYTE1,4,2                  ## @MASKBYTE1
	.comm	_REG_RFEINV,4,2                 ## @REG_RFEINV
	.comm	_BB_PATH_AB,8,3                 ## @BB_PATH_AB
	.comm	_REG_TRSW,4,2                   ## @REG_TRSW
	.comm	_MASKLWORD,4,2                  ## @MASKLWORD
	.no_dead_strip	_rtw8822b_set_channel_rfe_ifem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw8822b_set_channel_rfe_ifem
_rtw8822b_set_channel_rfe_ifem:         ; @rtw8822b_set_channel_rfe_ifem
	.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	x8, _REG_RFESEL0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_RFESEL0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w8, #30023
	movk	w8, #71, lsl #16
	mov	w9, #22388
	movk	w9, #116, lsl #16
	cmp	w20, #15
	csel	w3, w9, w8, lt
	mov	w8, #117
	mov	w9, #87
	csel	w21, w9, w8, lt
	mov	w2, #16777215
	bl	_rtw_write32s_mask
Lloh3:
	adrp	x8, _REG_RFESEL8@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_RFESEL8@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _MASKBYTE1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MASKBYTE1@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x21
	bl	_rtw_write32s_mask
Lloh9:
	adrp	x8, _REG_RFEINV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_RFEINV@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	mov	w0, #11
	bl	_BIT
	mov	x22, x0
	mov	w0, #10
	bl	_BIT
	orr	w8, w22, w0
	orr	w2, w8, #0x3f
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	bl	_rtw_write32s_mask
	cmp	w20, #14
	b.gt	LBB0_4
; %bb.1:
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _BB_PATH_AB@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BB_PATH_AB@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x9]
	cmp	x8, x10
	b.eq	LBB0_3
; %bb.2:
	ldr	x9, [x19, #8]
	cmp	x9, x10
	b.ne	LBB0_6
LBB0_3:
Lloh15:
	adrp	x8, _REG_TRSW@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REG_TRSW@GOTPAGEOFF]
Lloh17:
	adrp	x9, _MASKLWORD@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MASKLWORD@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	ldr	w2, [x9]
	mov	x0, x19
	mov	w3, #42241
	b	LBB0_5
LBB0_4:
Lloh21:
	adrp	x8, _REG_TRSW@GOTPAGE
Lloh22:
	ldr	x8, [x8, _REG_TRSW@GOTPAGEOFF]
Lloh23:
	adrp	x9, _MASKLWORD@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MASKLWORD@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	ldr	w2, [x9]
	mov	x0, x19
	mov	w3, #42405
LBB0_5:
	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_write32s_mask
LBB0_6:
Lloh27:
	adrp	x10, _REG_TRSW@GOTPAGE
Lloh28:
	ldr	x10, [x10, _REG_TRSW@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x10]
Lloh30:
	adrp	x10, _MASKLWORD@GOTPAGE
Lloh31:
	ldr	x10, [x10, _MASKLWORD@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x10]
	mov	x0, x19
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	w3, #42240
	b	LBB0_5
LBB0_8:
	mov	w3, #40965
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh25
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_RFESEL0,4,2                ; @REG_RFESEL0
	.comm	_REG_RFESEL8,4,2                ; @REG_RFESEL8
	.comm	_MASKBYTE1,4,2                  ; @MASKBYTE1
	.comm	_REG_RFEINV,4,2                 ; @REG_RFEINV
	.comm	_BB_PATH_AB,8,3                 ; @BB_PATH_AB
	.comm	_REG_TRSW,4,2                   ; @REG_TRSW
	.comm	_MASKLWORD,4,2                  ; @MASKLWORD
	.no_dead_strip	_rtw8822b_set_channel_rfe_ifem
.subsections_via_symbols
