	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_ir_shutdown
_meson_ir_shutdown:                     ## @meson_ir_shutdown
	.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), %r14
	callq	_platform_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_spin_lock_irqsave
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	movq	_IR_DEC_REG1@GOTPCREL(%rip), %rax
	cmoveq	_IR_DEC_REG2@GOTPCREL(%rip), %rax
	movq	_REG1_MODE_MASK@GOTPCREL(%rip), %rcx
	cmoveq	_REG2_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rax), %esi
	movl	(%rcx), %edx
	movq	_DECODE_MODE_NEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_REG1_MODE_SHIFT@GOTPCREL(%rip), %rcx
	cmoveq	_REG2_MODE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	_meson_ir_set_mask
	movq	_IR_DEC_REG0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG0_RATE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$19, %ecx
	callq	_meson_ir_set_mask
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"amlogic,meson6-ir"

	.comm	_IR_DEC_REG1,4,2                ## @IR_DEC_REG1
	.comm	_REG1_MODE_MASK,4,2             ## @REG1_MODE_MASK
	.comm	_DECODE_MODE_NEC,4,2            ## @DECODE_MODE_NEC
	.comm	_REG1_MODE_SHIFT,4,2            ## @REG1_MODE_SHIFT
	.comm	_IR_DEC_REG2,4,2                ## @IR_DEC_REG2
	.comm	_REG2_MODE_MASK,4,2             ## @REG2_MODE_MASK
	.comm	_REG2_MODE_SHIFT,4,2            ## @REG2_MODE_SHIFT
	.comm	_IR_DEC_REG0,4,2                ## @IR_DEC_REG0
	.comm	_REG0_RATE_MASK,4,2             ## @REG0_RATE_MASK
	.no_dead_strip	_meson_ir_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_ir_shutdown
_meson_ir_shutdown:                     ; @meson_ir_shutdown
	.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
	ldr	x19, [x0]
	bl	_platform_get_drvdata
	mov	x20, x0
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_of_device_is_compatible
Lloh2:
	adrp	x8, _IR_DEC_REG2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IR_DEC_REG2@GOTPAGEOFF]
Lloh4:
	adrp	x9, _IR_DEC_REG1@GOTPAGE
Lloh5:
	ldr	x9, [x9, _IR_DEC_REG1@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _REG2_MODE_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG2_MODE_MASK@GOTPAGEOFF]
Lloh8:
	adrp	x9, _REG1_MODE_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _REG1_MODE_MASK@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
Lloh10:
	adrp	x8, _DECODE_MODE_NEC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DECODE_MODE_NEC@GOTPAGEOFF]
Lloh12:
	adrp	x9, _REG2_MODE_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _REG2_MODE_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x10, _REG1_MODE_SHIFT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _REG1_MODE_SHIFT@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	lsl	w3, w8, w9
	mov	x0, x20
	bl	_meson_ir_set_mask
Lloh17:
	adrp	x8, _IR_DEC_REG0@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IR_DEC_REG0@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _REG0_RATE_MASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _REG0_RATE_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #19
	bl	_meson_ir_set_mask
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"amlogic,meson6-ir"

	.comm	_IR_DEC_REG1,4,2                ; @IR_DEC_REG1
	.comm	_REG1_MODE_MASK,4,2             ; @REG1_MODE_MASK
	.comm	_DECODE_MODE_NEC,4,2            ; @DECODE_MODE_NEC
	.comm	_REG1_MODE_SHIFT,4,2            ; @REG1_MODE_SHIFT
	.comm	_IR_DEC_REG2,4,2                ; @IR_DEC_REG2
	.comm	_REG2_MODE_MASK,4,2             ; @REG2_MODE_MASK
	.comm	_REG2_MODE_SHIFT,4,2            ; @REG2_MODE_SHIFT
	.comm	_IR_DEC_REG0,4,2                ; @IR_DEC_REG0
	.comm	_REG0_RATE_MASK,4,2             ; @REG0_RATE_MASK
	.no_dead_strip	_meson_ir_shutdown
.subsections_via_symbols
