	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822b_set_channel_rfe_efem
_rtw8822b_set_channel_rfe_efem:         ## @rtw8822b_set_channel_rfe_efem
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	cmpl	$15, %esi
	setl	%bl
	movq	_REG_RFESEL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$7362416, %eax                  ## imm = 0x705770
	movl	$1537303, %ecx                  ## imm = 0x177517
	cmovll	%eax, %ecx
	movl	$87, %eax
	movl	$117, %r15d
	cmovll	%eax, %r15d
	xorl	$5, %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	%r14, %rdi
	movl	%r15d, %ecx
	callq	_rtw_write32s_mask
	movq	_REG_RFECTL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%ebx, %edi
	callq	_BIT
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_rtw_write32s_mask
	movq	_REG_RFEINV@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$11, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$10, %edi
	callq	_BIT
	orl	%eax, %ebx
	orl	$63, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_rtw_write32s_mask
	movq	(%r14), %rax
	movq	_BB_PATH_AB@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rax
	je	LBB0_2
## %bb.1:
	movq	8(%r14), %rcx
	cmpq	%rdx, %rcx
	jne	LBB0_3
LBB0_2:
	movq	_REG_TRSW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MASKLWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$42241, %ecx                    ## imm = 0xA501
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtw_write32s_mask              ## TAILCALL
LBB0_3:
	movq	_REG_TRSW@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	_MASKLWORD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	%r14, %rdi
	cmpq	%rcx, %rax
	jne	LBB0_6
## %bb.4:
	movl	$42240, %ecx                    ## imm = 0xA500
	jmp	LBB0_5
LBB0_6:
	movl	$40965, %ecx                    ## imm = 0xA005
	jmp	LBB0_5
	.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_RFECTL,4,2                 ## @REG_RFECTL
	.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_efem
.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_efem
_rtw8822b_set_channel_rfe_efem:         ; @rtw8822b_set_channel_rfe_efem
	.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, x0
Lloh0:
	adrp	x8, _REG_RFESEL0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_RFESEL0@GOTPAGEOFF]
	mov	w9, #29975
	movk	w9, #23, lsl #16
Lloh2:
	ldr	w8, [x8]
	mov	w10, #22384
	movk	w10, #112, lsl #16
	cmp	w1, #15
	csel	w3, w10, w9, lt
	mov	w9, #117
	mov	w10, #87
	csel	w20, w10, w9, lt
	mov	w9, #4
	cinc	w21, w9, ge
	mov	x1, x8
	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, x20
	bl	_rtw_write32s_mask
Lloh9:
	adrp	x8, _REG_RFECTL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_RFECTL@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
	mov	x0, x21
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_rtw_write32s_mask
Lloh12:
	adrp	x8, _REG_RFEINV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REG_RFEINV@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	mov	w0, #11
	bl	_BIT
	mov	x21, x0
	mov	w0, #10
	bl	_BIT
	orr	w8, w21, w0
	orr	w2, w8, #0x3f
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_rtw_write32s_mask
	ldr	x8, [x19]
Lloh15:
	adrp	x9, _BB_PATH_AB@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BB_PATH_AB@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x9]
	cmp	x8, x10
	b.eq	LBB0_2
; %bb.1:
	ldr	x9, [x19, #8]
	cmp	x9, x10
	b.ne	LBB0_4
LBB0_2:
Lloh18:
	adrp	x8, _REG_TRSW@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REG_TRSW@GOTPAGEOFF]
Lloh20:
	adrp	x9, _MASKLWORD@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MASKLWORD@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	ldr	w2, [x9]
	mov	x0, x19
	mov	w3, #42241
LBB0_3:
	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_4:
Lloh24:
	adrp	x10, _REG_TRSW@GOTPAGE
Lloh25:
	ldr	x10, [x10, _REG_TRSW@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x10]
Lloh27:
	adrp	x10, _MASKLWORD@GOTPAGE
Lloh28:
	ldr	x10, [x10, _MASKLWORD@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x10]
	mov	x0, x19
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	w3, #42240
	b	LBB0_3
LBB0_6:
	mov	w3, #40965
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.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_RFECTL,4,2                 ; @REG_RFECTL
	.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_efem
.subsections_via_symbols
