	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sv11_shutdown
_sv11_shutdown:                         ## @sv11_shutdown
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_unregister_hdlc_device
	movq	%rbx, %rdi
	callq	_z8530_shutdown
	movl	24(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movq	_dma@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.2:
	movl	20(%rbx), %edi
	callq	_free_dma
LBB0_3:
	movl	16(%rbx), %edi
	callq	_free_dma
LBB0_4:
	movq	8(%rbx), %rdi
	decq	%rdi
	movl	$8, %esi
	callq	_release_region
	movl	(%rbx), %edi
	callq	_free_netdev
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_dma,4,2                        ## @dma
	.no_dead_strip	_sv11_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sv11_shutdown
_sv11_shutdown:                         ; @sv11_shutdown
	.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
	ldr	w0, [x0]
	bl	_unregister_hdlc_device
	mov	x0, x19
	bl	_z8530_shutdown
	ldr	w0, [x19, #24]
	mov	x1, x19
	bl	_free_irq
Lloh0:
	adrp	x8, _dma@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dma@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.1:
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x19, #20]
	bl	_free_dma
LBB0_3:
	ldr	w0, [x19, #16]
	bl	_free_dma
LBB0_4:
	ldr	x8, [x19, #8]
	sub	x0, x8, #1
	mov	w1, #8
	bl	_release_region
	ldr	w0, [x19]
	bl	_free_netdev
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_dma,4,2                        ; @dma
	.no_dead_strip	_sv11_shutdown
.subsections_via_symbols
