	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_fw_set_active_chains
_rs_fw_set_active_chains:               ## @rs_fw_set_active_chains
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_ANT_A@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_IWL_TLC_MNG_CHAIN_A_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ANT_B@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_IWL_TLC_MNG_CHAIN_B_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ANT_C@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	movl	%r14d, %edx
	callq	_WARN
LBB0_2:
	andl	%r14d, %r13d
	andl	%r14d, %r12d
	cmovel	%r12d, %r15d
	testl	%r13d, %r13d
	cmovel	%r13d, %ebx
	orl	%r15d, %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ANT_A,4,2                      ## @ANT_A
	.comm	_IWL_TLC_MNG_CHAIN_A_MSK,4,2    ## @IWL_TLC_MNG_CHAIN_A_MSK
	.comm	_ANT_B,4,2                      ## @ANT_B
	.comm	_IWL_TLC_MNG_CHAIN_B_MSK,4,2    ## @IWL_TLC_MNG_CHAIN_B_MSK
	.comm	_ANT_C,4,2                      ## @ANT_C
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tlc offload doesn't support antenna C. chains: 0x%x\n"

	.no_dead_strip	_rs_fw_set_active_chains
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_fw_set_active_chains
_rs_fw_set_active_chains:               ; @rs_fw_set_active_chains
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _ANT_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ANT_A@GOTPAGEOFF]
Lloh2:
	adrp	x9, _IWL_TLC_MNG_CHAIN_A_MSK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IWL_TLC_MNG_CHAIN_A_MSK@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
Lloh5:
	ldr	w20, [x9]
Lloh6:
	adrp	x8, _ANT_B@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ANT_B@GOTPAGEOFF]
Lloh8:
	adrp	x9, _IWL_TLC_MNG_CHAIN_B_MSK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IWL_TLC_MNG_CHAIN_B_MSK@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
Lloh11:
	ldr	w22, [x9]
Lloh12:
	adrp	x8, _ANT_C@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ANT_C@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	mov	x2, x19
	bl	_WARN
LBB0_2:
	tst	w21, w19
	csel	w8, wzr, w20, eq
	tst	w23, w19
	csel	w9, wzr, w22, eq
	orr	w0, w9, w8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ANT_A,4,2                      ; @ANT_A
	.comm	_IWL_TLC_MNG_CHAIN_A_MSK,4,2    ; @IWL_TLC_MNG_CHAIN_A_MSK
	.comm	_ANT_B,4,2                      ; @ANT_B
	.comm	_IWL_TLC_MNG_CHAIN_B_MSK,4,2    ; @IWL_TLC_MNG_CHAIN_B_MSK
	.comm	_ANT_C,4,2                      ; @ANT_C
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tlc offload doesn't support antenna C. chains: 0x%x\n"

	.no_dead_strip	_rs_fw_set_active_chains
.subsections_via_symbols
