	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sunxi_ir_remove
_sunxi_ir_remove:                       ## @sunxi_ir_remove
	.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
	callq	_platform_get_drvdata
	movq	%rax, %rbx
	movl	24(%rax), %edi
	callq	_clk_disable_unprepare
	movl	20(%rbx), %edi
	callq	_clk_disable_unprepare
	movl	16(%rbx), %edi
	callq	_reset_control_assert
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_SUNXI_IR_RXINT_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_REG_RXSTA_CLEARALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SUNXI_IR_RXSTA_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	_SUNXI_IR_CTL_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	(%rbx), %edi
	callq	_rc_unregister_device
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUNXI_IR_RXINT_REG,8,3         ## @SUNXI_IR_RXINT_REG
	.comm	_REG_RXSTA_CLEARALL,4,2         ## @REG_RXSTA_CLEARALL
	.comm	_SUNXI_IR_RXSTA_REG,8,3         ## @SUNXI_IR_RXSTA_REG
	.comm	_SUNXI_IR_CTL_REG,8,3           ## @SUNXI_IR_CTL_REG
	.no_dead_strip	_sunxi_ir_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sunxi_ir_remove
_sunxi_ir_remove:                       ; @sunxi_ir_remove
	.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
	bl	_platform_get_drvdata
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_clk_disable_unprepare
	ldr	w0, [x19, #20]
	bl	_clk_disable_unprepare
	ldr	w0, [x19, #16]
	bl	_reset_control_assert
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _SUNXI_IR_RXINT_REG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SUNXI_IR_RXINT_REG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
Lloh3:
	adrp	x8, _REG_RXSTA_CLEARALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_RXSTA_CLEARALL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _SUNXI_IR_RXSTA_REG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SUNXI_IR_RXSTA_REG@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _SUNXI_IR_CTL_REG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SUNXI_IR_CTL_REG@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w0, [x19]
	bl	_rc_unregister_device
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SUNXI_IR_RXINT_REG,8,3         ; @SUNXI_IR_RXINT_REG
	.comm	_REG_RXSTA_CLEARALL,4,2         ; @REG_RXSTA_CLEARALL
	.comm	_SUNXI_IR_RXSTA_REG,8,3         ; @SUNXI_IR_RXSTA_REG
	.comm	_SUNXI_IR_CTL_REG,8,3           ; @SUNXI_IR_CTL_REG
	.no_dead_strip	_sunxi_ir_remove
.subsections_via_symbols
