	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fintek_remove
_fintek_remove:                         ## @fintek_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	_pnp_get_drvdata
	movq	%rax, %rbx
	leaq	16(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_fintek_disable_cir
	movq	_CIR_STATUS_IRQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CIR_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_fintek_cir_reg_write
	movq	%rbx, %rdi
	callq	_fintek_enable_wake
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	12(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	callq	_release_region
	movl	(%rbx), %edi
	callq	_rc_unregister_device
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CIR_STATUS_IRQ_MASK,4,2        ## @CIR_STATUS_IRQ_MASK
	.comm	_CIR_STATUS,4,2                 ## @CIR_STATUS
	.no_dead_strip	_fintek_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fintek_remove
_fintek_remove:                         ; @fintek_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	_pnp_get_drvdata
	mov	x19, x0
	add	x20, x0, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_fintek_disable_cir
Lloh0:
	adrp	x8, _CIR_STATUS_IRQ_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CIR_STATUS_IRQ_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _CIR_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CIR_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_fintek_cir_reg_write
	mov	x0, x19
	bl	_fintek_enable_wake
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w0, [x19, #12]
	mov	x1, x19
	bl	_free_irq
	ldp	w1, w0, [x19, #4]
	bl	_release_region
	ldr	w0, [x19]
	bl	_rc_unregister_device
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CIR_STATUS_IRQ_MASK,4,2        ; @CIR_STATUS_IRQ_MASK
	.comm	_CIR_STATUS,4,2                 ; @CIR_STATUS
	.no_dead_strip	_fintek_remove
.subsections_via_symbols
