	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idt77252_close
_idt77252_close:                        ## @idt77252_close
	.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	%rdi, %r12
	movq	32(%rdi), %r13
	movq	40(%rdi), %rax
	movq	(%rax), %r15
	leaq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	28(%r15), %esi
	movq	(%r13), %rdx
	movl	(%r12), %r8d
	movl	28(%r12), %ecx
	leaq	L_.str(%rip), %rdi
	callq	_IPRINTK
	movq	_ATM_VF_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%r12), %rsi
	callq	_clear_bit
	movq	16(%r12), %rax
	movq	_ATM_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.1:
	leaq	40(%r13), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_VCF_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	64(%r13), %rsi
	callq	_clear_bit
	movq	$0, 72(%r13)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_ATM_NONE@GOTPCREL(%rip), %rcx
	movl	(%r12), %eax
	addl	$-3, %eax
	cmpl	$2, %eax
	jb	LBB0_4
## %bb.2:
	movq	_SAR_SRAM_RCT_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	imulq	(%r13), %rbx
	addq	(%r15), %rbx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	32(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_SAR_CMD_CLOSE_CONNECTION@GOTPCREL(%rip), %rax
	shlq	$2, %rbx
	orq	(%rax), %rbx
	movq	_SAR_REG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_writel
	movq	%r15, %rdi
	callq	_waitfor_idle
	movq	%r14, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	leaq	68(%r13), %rbx
	movq	%rbx, %rdi
	callq	_skb_queue_len
	movq	_ATM_NONE@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	28(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_DPRINTK
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_recycle_rx_pool_skb
	movq	_ATM_NONE@GOTPCREL(%rip), %rcx
LBB0_4:
	movq	8(%r12), %rax
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.5:
	leaq	40(%r13), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	_VCF_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	64(%r13), %rbx
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_VCF_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_VCF_RSV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	$0, 56(%r13)
	movq	48(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_del_timer
	movq	48(%r13), %rdi
	callq	_kfree
	movq	$0, 48(%r13)
LBB0_7:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movl	$5000, %ebx                     ## imm = 0x1388
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jle	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	callq	_msleep_interruptible
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.10:
	movl	28(%r15), %ebx
	movq	24(%r13), %rdi
	callq	_atomic_read
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_printk
LBB0_11:
	movq	_TCMDQ_HALT@GOTPCREL(%rip), %rax
	movq	(%r13), %rdi
	orq	(%rax), %rdi
	movq	_SAR_REG_TCMDQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_writel
	movq	8(%r13), %rdx
	movq	24(%r13), %rsi
	movq	%r15, %rdi
	callq	_clear_scd
	movq	8(%r13), %rax
	movq	_SCHED_CBR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_clear_tst
	movl	32(%r13), %eax
	addl	%eax, 24(%r15)
	movq	$0, 32(%r13)
LBB0_13:
	movq	16(%r15), %rax
	movq	16(%r13), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	24(%r13), %rsi
	movq	%r15, %rdi
	callq	_free_scq
LBB0_14:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: idt77252_close: vc = %d (%d.%d)\n"

	.comm	_ATM_VF_READY,4,2               ## @ATM_VF_READY
	.comm	_ATM_NONE,8,3                   ## @ATM_NONE
	.comm	_VCF_RX,4,2                     ## @VCF_RX
	.comm	_SAR_SRAM_RCT_SIZE,8,3          ## @SAR_SRAM_RCT_SIZE
	.comm	_SAR_CMD_CLOSE_CONNECTION,8,3   ## @SAR_CMD_CLOSE_CONNECTION
	.comm	_SAR_REG_CMD,4,2                ## @SAR_REG_CMD
L_.str.1:                               ## @.str.1
	.asciz	"%s: closing a VC with pending rx buffers.\n"

	.comm	_VCF_TX,4,2                     ## @VCF_TX
	.comm	_VCF_IDLE,4,2                   ## @VCF_IDLE
	.comm	_VCF_RSV,4,2                    ## @VCF_RSV
L_.str.2:                               ## @.str.2
	.asciz	"%s: SCQ drain timeout: %u used\n"

	.comm	_TCMDQ_HALT,8,3                 ## @TCMDQ_HALT
	.comm	_SAR_REG_TCMDQ,4,2              ## @SAR_REG_TCMDQ
	.comm	_SCHED_CBR,8,3                  ## @SCHED_CBR
	.no_dead_strip	_idt77252_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idt77252_close
_idt77252_close:                        ; @idt77252_close
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x0
	ldp	x21, x8, [x0, #32]
	ldr	x20, [x8]
	add	x19, x20, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	w1, [x20, #28]
	ldr	x2, [x21]
	ldr	w3, [x22, #28]
	ldr	w4, [x22]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPRINTK
Lloh2:
	adrp	x8, _ATM_VF_READY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ATM_VF_READY@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x22, #24
	bl	_clear_bit
	ldr	x8, [x22, #16]
Lloh5:
	adrp	x25, _ATM_NONE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _ATM_NONE@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.1:
	add	x23, x21, #40
	mov	x0, x23
	bl	_spin_lock_irqsave
Lloh7:
	adrp	x8, _VCF_RX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VCF_RX@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x1, x21, #64
	bl	_clear_bit
	str	xzr, [x21, #72]
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	ldr	w8, [x22]
	sub	w8, w8, #3
	cmp	w8, #2
	b.lo	LBB0_4
; %bb.2:
	mov	x24, x20
	ldr	x8, [x24], #32
	mov	x23, x21
	ldr	x9, [x23], #68
Lloh10:
	adrp	x10, _SAR_SRAM_RCT_SIZE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _SAR_SRAM_RCT_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	madd	x26, x10, x9, x8
	mov	x0, x24
	bl	_spin_lock_irqsave
Lloh13:
	adrp	x8, _SAR_CMD_CLOSE_CONNECTION@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SAR_CMD_CLOSE_CONNECTION@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	orr	x0, x8, x26, lsl #2
Lloh16:
	adrp	x8, _SAR_REG_CMD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SAR_REG_CMD@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_writel
	mov	x0, x20
	bl	_waitfor_idle
	mov	x0, x24
	bl	_spin_unlock_irqrestore
	mov	x0, x23
	bl	_skb_queue_len
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w1, [x20, #28]
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINTK
	mov	x0, x20
	mov	x1, x23
	bl	_recycle_rx_pool_skb
LBB0_4:
	ldr	x8, [x22, #8]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.5:
	add	x22, x21, #40
	mov	x0, x22
	bl	_spin_lock_irqsave
Lloh21:
	adrp	x8, _VCF_TX@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VCF_TX@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	add	x23, x21, #64
	mov	x1, x23
	bl	_clear_bit
Lloh24:
	adrp	x8, _VCF_IDLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _VCF_IDLE@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_clear_bit
Lloh27:
	adrp	x8, _VCF_RSV@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VCF_RSV@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_clear_bit
	str	xzr, [x21, #56]
	ldr	x0, [x21, #48]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_del_timer
	ldr	x0, [x21, #48]
	bl	_kfree
	str	xzr, [x21, #48]
LBB0_7:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	w22, #5000
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21, #24]
	bl	_atomic_read
	cmp	x0, #1
	b.lt	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
	bl	_msleep_interruptible
	mov	x22, x0
	cbnz	x0, LBB0_8
; %bb.10:
	ldr	w22, [x20, #28]
	ldr	x0, [x21, #24]
	bl	_atomic_read
	mov	x2, x0
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x22
	bl	_printk
LBB0_11:
Lloh32:
	adrp	x8, _TCMDQ_HALT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TCMDQ_HALT@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	ldr	x9, [x21]
	orr	x0, x9, x8
Lloh35:
	adrp	x8, _SAR_REG_TCMDQ@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SAR_REG_TCMDQ@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	bl	_writel
	ldr	x1, [x21, #24]
	ldr	x2, [x21, #8]
	mov	x0, x20
	bl	_clear_scd
	ldr	x8, [x21, #8]
Lloh38:
	adrp	x9, _SCHED_CBR@GOTPAGE
Lloh39:
	ldr	x9, [x9, _SCHED_CBR@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x20
	mov	x1, x21
	bl	_clear_tst
	ldr	w8, [x21, #32]
	ldr	w9, [x20, #24]
	add	w8, w9, w8
	str	w8, [x20, #24]
	str	xzr, [x21, #32]
LBB0_13:
	ldr	x8, [x20, #16]
	ldr	x9, [x21, #16]
	str	xzr, [x8, x9, lsl #3]
	ldr	x1, [x21, #24]
	mov	x0, x20
	bl	_free_scq
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: idt77252_close: vc = %d (%d.%d)\n"

	.comm	_ATM_VF_READY,4,2               ; @ATM_VF_READY
	.comm	_ATM_NONE,8,3                   ; @ATM_NONE
	.comm	_VCF_RX,4,2                     ; @VCF_RX
	.comm	_SAR_SRAM_RCT_SIZE,8,3          ; @SAR_SRAM_RCT_SIZE
	.comm	_SAR_CMD_CLOSE_CONNECTION,8,3   ; @SAR_CMD_CLOSE_CONNECTION
	.comm	_SAR_REG_CMD,4,2                ; @SAR_REG_CMD
l_.str.1:                               ; @.str.1
	.asciz	"%s: closing a VC with pending rx buffers.\n"

	.comm	_VCF_TX,4,2                     ; @VCF_TX
	.comm	_VCF_IDLE,4,2                   ; @VCF_IDLE
	.comm	_VCF_RSV,4,2                    ; @VCF_RSV
l_.str.2:                               ; @.str.2
	.asciz	"%s: SCQ drain timeout: %u used\n"

	.comm	_TCMDQ_HALT,8,3                 ; @TCMDQ_HALT
	.comm	_SAR_REG_TCMDQ,4,2              ; @SAR_REG_TCMDQ
	.comm	_SCHED_CBR,8,3                  ; @SCHED_CBR
	.no_dead_strip	_idt77252_close
.subsections_via_symbols
