	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atm_showtime_enter
_atm_showtime_enter:                    ## @atm_showtime_enter
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	xorl	%edi, %edi
	testq	%r12, %r12
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_ASSERT
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	leaq	L_.str.1(%rip), %rsi
	callq	_ASSERT
	movq	_ATM_PORT_NUMBER@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.1:
	movl	(%r12), %edx
	xorl	%ecx, %ecx
	testl	%edx, %edx
	cmovlel	%ecx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, %rdx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rsi
	cmpq	$0, (%rsi,%rcx,8)
	jg	LBB0_21
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_2
## %bb.5:
	movl	%eax, %edx
	jmp	LBB0_6
LBB0_21:
	movl	%ecx, %edx
LBB0_6:
	movl	(%r12), %ecx
	movl	%edx, %r8d
	movq	_g_atm_priv_data@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	xorl	%edi, %edi
	testl	%ecx, %ecx
	cmovlel	%edi, %ecx
	shlq	$3, %rcx
	shlq	$3, %rax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rdx, (%rsi,%rdi,2)
	addq	$8, %rdi
	cmpq	%rdi, %rax
	je	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, %rcx
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r12), %rbx
	movq	(%rbx,%rdi), %rdx
	testq	%rdx, %rdx
	jg	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rbx,%r8,8), %rdx
	jmp	LBB0_10
LBB0_11:
	xorl	%eax, %eax
	callq	_qsb_global_set
	movq	_MAX_PVC_NUMBER@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_16
## %bb.12:
	xorl	%ebx, %ebx
	movq	_g_atm_priv_data@GOTPCREL(%rip), %r13
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_16
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rdi, %rsi
	movl	%ebx, %edx
	callq	_set_qsb
	movl	(%r12), %eax
	jmp	LBB0_15
LBB0_16:
	movq	_g_xdata_addr@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	movq	_g_showtime@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	cmpl	$0, (%r15)
	jle	LBB0_20
## %bb.17:
	movl	$8, %r14d
	xorl	%ebx, %ebx
	movq	_g_atm_priv_data@GOTPCREL(%rip), %r13
	movq	_ATM_PHY_SIG_FOUND@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%r14), %edi
	movl	(%r12), %esi
	callq	_atm_dev_signal_change
	incq	%rbx
	movslq	(%r15), %rax
	addq	$16, %r14
	cmpq	%rax, %rbx
	jl	LBB0_18
## %bb.19:
	movq	_g_xdata_addr@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_20:
	movq	_g_atm_priv_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	movq	16(%rax), %rdx
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %ecx
	callq	_printk
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port_cell is NULL"

L_.str.1:                               ## @.str.1
	.asciz	"xdata_addr is NULL"

	.comm	_ATM_PORT_NUMBER,4,2            ## @ATM_PORT_NUMBER
	.comm	_g_atm_priv_data,16,3           ## @g_atm_priv_data
	.comm	_MAX_PVC_NUMBER,4,2             ## @MAX_PVC_NUMBER
	.comm	_g_xdata_addr,8,3               ## @g_xdata_addr
	.comm	_g_showtime,4,2                 ## @g_showtime
	.comm	_ATM_PHY_SIG_FOUND,4,2          ## @ATM_PHY_SIG_FOUND
L_.str.2:                               ## @.str.2
	.asciz	"enter showtime, cell rate: 0 - %d, 1 - %d, xdata addr: 0x%08x\n"

	.comm	_UTP_CFG,4,2                    ## @UTP_CFG
	.no_dead_strip	_atm_showtime_enter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atm_showtime_enter
_atm_showtime_enter:                    ; @atm_showtime_enter
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ASSERT
	cmp	x19, #0
	cset	w0, ne
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ASSERT
Lloh4:
	adrp	x22, _ATM_PORT_NUMBER@GOTPAGE
Lloh5:
	ldr	x22, [x22, _ATM_PORT_NUMBER@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh6:
	adrp	x21, _g_atm_priv_data@GOTPAGE
Lloh7:
	ldr	x21, [x21, _g_atm_priv_data@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x9, #0
	ldr	w10, [x20]
	cmp	w10, #0
	csel	w10, w10, wzr, gt
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x10, x9
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x11, [x20, #8]
	ldr	x11, [x11, x9, lsl #3]
	cmp	x11, #0
	b.gt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.5:
	mov	x10, x8
	b	LBB0_7
LBB0_6:
	mov	x10, x9
LBB0_7:
	mov	x9, #0
	ldr	w12, [x20]
	mov	w10, w10
	ldr	x11, [x21]
	cmp	w12, #0
	csel	w12, w12, wzr, gt
	lsl	x12, x12, #3
	lsl	x8, x8, #3
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	str	x13, [x11], #16
	add	x9, x9, #8
	cmp	x8, x9
	b.eq	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x12, x9
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x14, [x20, #8]
	ldr	x13, [x14, x9]
	cmp	x13, #0
	b.gt	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x13, [x14, x10, lsl #3]
	b	LBB0_8
LBB0_12:
	bl	_qsb_global_set
Lloh8:
	adrp	x23, _MAX_PVC_NUMBER@GOTPAGE
Lloh9:
	ldr	x23, [x23, _MAX_PVC_NUMBER@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.13:
	mov	x20, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_17
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #8]
	ldr	x0, [x9, x20, lsl #3]
	cbz	x0, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x1, x0
	mov	x2, x20
	bl	_set_qsb
	ldr	w8, [x23]
	b	LBB0_14
LBB0_17:
Lloh10:
	adrp	x20, _g_xdata_addr@GOTPAGE
Lloh11:
	ldr	x20, [x20, _g_xdata_addr@GOTPAGEOFF]
	str	x19, [x20]
Lloh12:
	adrp	x8, _g_showtime@GOTPAGE
Lloh13:
	ldr	x8, [x8, _g_showtime@GOTPAGEOFF]
	mov	w9, #1
Lloh14:
	str	w9, [x8]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.18:
	mov	x19, #0
	mov	w23, #8
Lloh15:
	adrp	x24, _ATM_PHY_SIG_FOUND@GOTPAGE
Lloh16:
	ldr	x24, [x24, _ATM_PHY_SIG_FOUND@GOTPAGEOFF]
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x23]
	ldr	w1, [x24]
	bl	_atm_dev_signal_change
	add	x19, x19, #1
	ldrsw	x8, [x22]
	add	x23, x23, #16
	cmp	x19, x8
	b.lt	LBB0_19
; %bb.20:
	ldr	x19, [x20]
LBB0_21:
	ldr	x8, [x21]
	ldr	x1, [x8]
	ldr	x2, [x8, #16]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x3, x19
	bl	_printk
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port_cell is NULL"

l_.str.1:                               ; @.str.1
	.asciz	"xdata_addr is NULL"

	.comm	_ATM_PORT_NUMBER,4,2            ; @ATM_PORT_NUMBER
	.comm	_g_atm_priv_data,16,3           ; @g_atm_priv_data
	.comm	_MAX_PVC_NUMBER,4,2             ; @MAX_PVC_NUMBER
	.comm	_g_xdata_addr,8,3               ; @g_xdata_addr
	.comm	_g_showtime,4,2                 ; @g_showtime
	.comm	_ATM_PHY_SIG_FOUND,4,2          ; @ATM_PHY_SIG_FOUND
l_.str.2:                               ; @.str.2
	.asciz	"enter showtime, cell rate: 0 - %d, 1 - %d, xdata addr: 0x%08x\n"

	.comm	_UTP_CFG,4,2                    ; @UTP_CFG
	.no_dead_strip	_atm_showtime_enter
.subsections_via_symbols
