	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltq_atm_remove
_ltq_atm_remove:                        ## @ltq_atm_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_platform_get_drvdata
	movq	%rax, %r14
	movq	_ifx_mei_atm_showtime_enter@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_ifx_mei_atm_showtime_exit@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	callq	_invalidate_oam_htu_entry
	xorl	%edi, %edi
	callq	*8(%r14)
	movq	_PPE_MAILBOX_IGU1_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_g_atm_priv_data@GOTPCREL(%rip), %r15
	movq	%r15, %rsi
	callq	_free_irq
	movq	_ATM_PORT_NUMBER@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_atm_dev_deregister
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	callq	*(%r14)
	xorl	%eax, %eax
	callq	_clear_priv_data
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ifx_mei_atm_showtime_enter,8,3 ## @ifx_mei_atm_showtime_enter
	.comm	_ifx_mei_atm_showtime_exit,8,3  ## @ifx_mei_atm_showtime_exit
	.comm	_PPE_MAILBOX_IGU1_INT,4,2       ## @PPE_MAILBOX_IGU1_INT
	.comm	_g_atm_priv_data,8,3            ## @g_atm_priv_data
	.comm	_ATM_PORT_NUMBER,4,2            ## @ATM_PORT_NUMBER
	.no_dead_strip	_ltq_atm_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltq_atm_remove
_ltq_atm_remove:                        ; @ltq_atm_remove
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_platform_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x8, _ifx_mei_atm_showtime_enter@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ifx_mei_atm_showtime_enter@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
Lloh3:
	adrp	x8, _ifx_mei_atm_showtime_exit@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ifx_mei_atm_showtime_exit@GOTPAGEOFF]
Lloh5:
	str	xzr, [x8]
	bl	_invalidate_oam_htu_entry
	ldr	x8, [x19, #8]
	mov	w0, #0
	blr	x8
Lloh6:
	adrp	x8, _PPE_MAILBOX_IGU1_INT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PPE_MAILBOX_IGU1_INT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x20, _g_atm_priv_data@GOTPAGE
Lloh10:
	ldr	x20, [x20, _g_atm_priv_data@GOTPAGEOFF]
	mov	x1, x20
	bl	_free_irq
Lloh11:
	adrp	x21, _ATM_PORT_NUMBER@GOTPAGE
Lloh12:
	ldr	x21, [x21, _ATM_PORT_NUMBER@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w0, [x8, x22, lsl #2]
	bl	_atm_dev_deregister
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [x19]
	blr	x8
	bl	_clear_priv_data
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ifx_mei_atm_showtime_enter,8,3 ; @ifx_mei_atm_showtime_enter
	.comm	_ifx_mei_atm_showtime_exit,8,3  ; @ifx_mei_atm_showtime_exit
	.comm	_PPE_MAILBOX_IGU1_INT,4,2       ; @PPE_MAILBOX_IGU1_INT
	.comm	_g_atm_priv_data,8,3            ; @g_atm_priv_data
	.comm	_ATM_PORT_NUMBER,4,2            ; @ATM_PORT_NUMBER
	.no_dead_strip	_ltq_atm_remove
.subsections_via_symbols
