	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tango_change_protocol
_tango_change_protocol:                 ## @tango_change_protocol
	.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
	movl	(%rsi), %ebx
	movq	_NEC_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$0, %ecx
	andl	%ebx, %eax
	jne	LBB0_2
## %bb.1:
	movq	_DISABLE_NEC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_2:
	movq	_RC_PROTO_BIT_RC5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	je	LBB0_4
## %bb.3:
	movq	_ENABLE_RC5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	orl	%ecx, %eax
	movq	(%rdi), %r14
	movq	_RC_PROTO_BIT_RC6_0@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	je	LBB0_6
## %bb.5:
	movq	_ENABLE_RC6@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_6:
	movq	_IR_CTRL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	8(%r14), %rsi
	movl	%eax, %edi
	callq	_writel_relaxed
	movq	_RC6_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel_relaxed
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DISABLE_NEC,4,2                ## @DISABLE_NEC
	.comm	_NEC_ANY,4,2                    ## @NEC_ANY
	.comm	_RC_PROTO_BIT_RC5,4,2           ## @RC_PROTO_BIT_RC5
	.comm	_ENABLE_RC5,4,2                 ## @ENABLE_RC5
	.comm	_RC_PROTO_BIT_RC6_0,4,2         ## @RC_PROTO_BIT_RC6_0
	.comm	_ENABLE_RC6,4,2                 ## @ENABLE_RC6
	.comm	_IR_CTRL,8,3                    ## @IR_CTRL
	.comm	_RC6_CTRL,8,3                   ## @RC6_CTRL
	.no_dead_strip	_tango_change_protocol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tango_change_protocol
_tango_change_protocol:                 ; @tango_change_protocol
	.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
Lloh0:
	adrp	x8, _DISABLE_NEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DISABLE_NEC@GOTPAGEOFF]
	ldr	x20, [x0]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x1]
Lloh3:
	adrp	x10, _NEC_ANY@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NEC_ANY@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	csel	w8, w8, wzr, eq
Lloh6:
	adrp	x10, _RC_PROTO_BIT_RC5@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RC_PROTO_BIT_RC5@GOTPAGEOFF]
Lloh8:
	adrp	x11, _ENABLE_RC5@GOTPAGE
Lloh9:
	ldr	x11, [x11, _ENABLE_RC5@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w10, wzr, w11, eq
Lloh12:
	adrp	x11, _RC_PROTO_BIT_RC6_0@GOTPAGE
Lloh13:
	ldr	x11, [x11, _RC_PROTO_BIT_RC6_0@GOTPAGEOFF]
	orr	w0, w10, w8
Lloh14:
	ldr	w8, [x11]
Lloh15:
	adrp	x10, _ENABLE_RC6@GOTPAGE
Lloh16:
	ldr	x10, [x10, _ENABLE_RC6@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w8, w9
	csel	w19, wzr, w10, eq
	ldr	x8, [x20, #8]
Lloh18:
	adrp	x9, _IR_CTRL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IR_CTRL@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x20]
Lloh21:
	adrp	x9, _RC6_CTRL@GOTPAGE
Lloh22:
	ldr	x9, [x9, _RC6_CTRL@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	bl	_writel_relaxed
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DISABLE_NEC,4,2                ; @DISABLE_NEC
	.comm	_NEC_ANY,4,2                    ; @NEC_ANY
	.comm	_RC_PROTO_BIT_RC5,4,2           ; @RC_PROTO_BIT_RC5
	.comm	_ENABLE_RC5,4,2                 ; @ENABLE_RC5
	.comm	_RC_PROTO_BIT_RC6_0,4,2         ; @RC_PROTO_BIT_RC6_0
	.comm	_ENABLE_RC6,4,2                 ; @ENABLE_RC6
	.comm	_IR_CTRL,8,3                    ; @IR_CTRL
	.comm	_RC6_CTRL,8,3                   ; @RC6_CTRL
	.no_dead_strip	_tango_change_protocol
.subsections_via_symbols
