	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dscc4_close
_dscc4_close:                           ## @dscc4_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_dscc4_priv
	movq	%rax, %r14
	leaq	4(%rax), %rdi
	callq	_del_timer_sync
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	movq	_PowerUp@GOTPCREL(%rip), %rax
	movq	_Vis@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_CCR0@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%esi, %esi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_scc_patchl
	movq	_CCR2@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$327680, %edi                   ## imm = 0x50000
	xorl	%esi, %esi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_scc_patchl
	movq	_IMR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$-1, %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_scc_writel
	movq	_FakeReset@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movq	%rbx, %rdi
	callq	_hdlc_close
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PowerUp,4,2                    ## @PowerUp
	.comm	_Vis,4,2                        ## @Vis
	.comm	_CCR0,4,2                       ## @CCR0
	.comm	_CCR2,4,2                       ## @CCR2
	.comm	_IMR,4,2                        ## @IMR
	.comm	_FakeReset,4,2                  ## @FakeReset
	.no_dead_strip	_dscc4_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dscc4_close
_dscc4_close:                           ; @dscc4_close
	.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
	mov	x19, x0
	bl	_dscc4_priv
	mov	x20, x0
	add	x0, x0, #4
	bl	_del_timer_sync
	mov	x0, x19
	bl	_netif_stop_queue
Lloh0:
	adrp	x8, _PowerUp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PowerUp@GOTPAGEOFF]
Lloh2:
	adrp	x9, _Vis@GOTPAGE
Lloh3:
	ldr	x9, [x9, _Vis@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh6:
	adrp	x8, _CCR0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CCR0@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	w1, #0
	mov	x2, x20
	mov	x3, x19
	bl	_scc_patchl
Lloh9:
	adrp	x8, _CCR2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CCR2@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	w0, #327680
	mov	w1, #0
	mov	x2, x20
	mov	x3, x19
	bl	_scc_patchl
Lloh12:
	adrp	x8, _IMR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IMR@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	w0, #-1
	mov	x1, x20
	mov	x2, x19
	bl	_scc_writel
Lloh15:
	adrp	x8, _FakeReset@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FakeReset@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	mov	x0, x19
	bl	_hdlc_close
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PowerUp,4,2                    ; @PowerUp
	.comm	_Vis,4,2                        ; @Vis
	.comm	_CCR0,4,2                       ; @CCR0
	.comm	_CCR2,4,2                       ; @CCR2
	.comm	_IMR,4,2                        ; @IMR
	.comm	_FakeReset,4,2                  ; @FakeReset
	.no_dead_strip	_dscc4_close
.subsections_via_symbols
