	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sv11_init
_sv11_init:                             ## @sv11_init
	.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
	movl	%esi, %r15d
	movl	%edi, %r14d
	leaq	L_.str(%rip), %rdx
	movl	$8, %esi
	callq	_request_region
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$112, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_24
## %bb.3:
	movq	%rax, %rbx
	movl	$0, (%rax)
	leal	1(%r14), %eax
	movl	%eax, 16(%rbx)
	leal	3(%r14), %eax
	movl	%eax, 20(%rbx)
	movq	$-1, 64(%rbx)
	movq	_z8530_nop@GOTPCREL(%rip), %rax
	movq	%rax, 56(%rbx)
	movq	%rax, 104(%rbx)
	leal	4(%r14), %r12d
	xorl	%edi, %edi
	movl	%r12d, %esi
	callq	_outb
	movq	_z8530_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rcx
	movl	%r15d, %edi
	xorl	%edx, %edx
	movq	%rbx, %r8
	callq	_request_irq
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	movl	%r15d, 4(%rbx)
	movq	%rbx, 48(%rbx)
	movq	%rbx, 40(%rbx)
	movq	%rbx, 88(%rbx)
	movq	_dma@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	je	LBB0_9
## %bb.6:
	movabsq	$4294967299, %rax               ## imm = 0x100000003
	movq	%rax, 24(%rbx)
	movl	$11, %edi
	movl	%r12d, %esi
	callq	_outb
	movl	24(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_request_dma
	testq	%rax, %rax
	jne	LBB0_22
## %bb.7:
	cmpl	$1, (%r13)
	jne	LBB0_9
## %bb.8:
	movl	28(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_request_dma
	testq	%rax, %rax
	jne	LBB0_19
LBB0_9:
	movl	%r15d, %edi
	callq	_disable_irq
	movq	%rbx, %rdi
	callq	_z8530_init
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.6(%rip), %rdi
	callq	_pr_err
	movl	%r15d, %edi
	callq	_enable_irq
LBB0_17:
	movl	(%r13), %eax
	cmpl	$1, %eax
	jne	LBB0_20
## %bb.18:
	movl	28(%rbx), %edi
	callq	_free_dma
LBB0_19:
	movl	(%r13), %eax
LBB0_20:
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	24(%rbx), %edi
	callq	_free_dma
LBB0_22:
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_free_irq
	jmp	LBB0_23
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	callq	_pr_warn
	jmp	LBB0_25
LBB0_4:
	leaq	L_.str.3(%rip), %rdi
	movl	%r15d, %esi
	callq	_pr_warn
LBB0_23:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_24:
	movl	%r14d, %edi
	movl	$8, %esi
	callq	_release_region
LBB0_25:
	xorl	%ebx, %ebx
LBB0_26:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	16(%rbx), %r12
	movq	%rbx, %rdi
	addq	$64, %rdi
	movq	_z8530_dead_port@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_z8530_channel_load
	movq	8(%rbx), %rax
	movq	_Z85C30@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.13:
	movq	_z8530_hdlc_kilostream@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_z8530_hdlc_kilostream_85230@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_z8530_channel_load
	movl	%r15d, %edi
	callq	_enable_irq
	movq	%rbx, %rdi
	callq	_alloc_hdlcdev
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movq	%rax, %r12
	movq	_hostess_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_dev_to_hdlc
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 4(%rax)
	movq	_hostess_queue_xmit@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_dev_to_hdlc
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	_hostess_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r12)
	movl	%r14d, (%r12)
	movl	%r15d, 4(%r12)
	movq	%r12, %rdi
	callq	_register_hdlc_device
	testq	%rax, %rax
	je	LBB0_27
## %bb.16:
	leaq	L_.str.7(%rip), %rdi
	callq	_pr_err
	movq	%r12, %rdi
	callq	_free_netdev
	jmp	LBB0_17
LBB0_27:
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_z8530_describe
	movl	$1, (%rbx)
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Comtrol SV11"

L_.str.1:                               ## @.str.1
	.asciz	"I/O 0x%X already in use\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_z8530_nop,4,2                  ## @z8530_nop
	.comm	_z8530_interrupt,4,2            ## @z8530_interrupt
L_.str.2:                               ## @.str.2
	.asciz	"Hostess SV11"

L_.str.3:                               ## @.str.3
	.asciz	"IRQ %d already in use\n"

	.comm	_dma,4,2                        ## @dma
L_.str.4:                               ## @.str.4
	.asciz	"Hostess SV/11 (TX)"

L_.str.5:                               ## @.str.5
	.asciz	"Hostess SV/11 (RX)"

L_.str.6:                               ## @.str.6
	.asciz	"Z8530 series device not found\n"

	.comm	_z8530_dead_port,4,2            ## @z8530_dead_port
	.comm	_Z85C30,8,3                     ## @Z85C30
	.comm	_z8530_hdlc_kilostream,4,2      ## @z8530_hdlc_kilostream
	.comm	_z8530_hdlc_kilostream_85230,4,2 ## @z8530_hdlc_kilostream_85230
	.comm	_hostess_attach,4,2             ## @hostess_attach
	.comm	_hostess_queue_xmit,4,2         ## @hostess_queue_xmit
	.comm	_hostess_ops,4,2                ## @hostess_ops
L_.str.7:                               ## @.str.7
	.asciz	"unable to register HDLC device\n"

L_.str.8:                               ## @.str.8
	.asciz	"I/O"

	.no_dead_strip	_sv11_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function sv11_init
lCPI0_0:
	.long	1                               ; 0x1
	.long	3                               ; 0x3
lCPI0_1:
	.long	3                               ; 0x3
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_sv11_init:                             ; @sv11_init
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #8
	bl	_request_region
	cbz	w0, LBB0_15
; %bb.1:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #112
	bl	_kzalloc
	cbz	x0, LBB0_18
; %bb.2:
	mov	x20, x0
	dup.2s	v0, w19
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	add.2s	v0, v0, v1
	mov	x22, x0
	str	d0, [x22, #16]!
	movi.2d	v0, #0xffffffffffffffff
	mov	x23, x0
	str	d0, [x23, #64]!
	str	wzr, [x0]
Lloh7:
	adrp	x8, _z8530_nop@GOTPAGE
Lloh8:
	ldr	x8, [x8, _z8530_nop@GOTPAGEOFF]
	str	x8, [x0, #56]
	str	x8, [x0, #104]
	add	w24, w19, #4
	mov	w0, #0
	mov	x1, x24
	bl	_outb
Lloh9:
	adrp	x8, _z8530_interrupt@GOTPAGE
Lloh10:
	ldr	x8, [x8, _z8530_interrupt@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x3, l_.str.2@PAGE
Lloh13:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	w2, #0
	mov	x4, x20
	bl	_request_irq
	tbnz	x0, #63, LBB0_16
; %bb.3:
	str	w21, [x20, #4]
	stp	x20, x20, [x20, #40]
	str	x20, [x20, #88]
Lloh14:
	adrp	x25, _dma@GOTPAGE
Lloh15:
	ldr	x25, [x25, _dma@GOTPAGEOFF]
	ldr	w8, [x25]
	cbz	w8, LBB0_7
; %bb.4:
Lloh16:
	adrp	x8, lCPI0_1@PAGE
Lloh17:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [x20, #24]
	mov	w0, #11
	mov	x1, x24
	bl	_outb
	ldr	w0, [x20, #24]
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_request_dma
	cbnz	x0, LBB0_14
; %bb.5:
	ldr	w8, [x25]
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.6:
	ldr	w0, [x20, #28]
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_request_dma
	cbnz	x0, LBB0_11
LBB0_7:
	mov	x0, x21
	bl	_disable_irq
	mov	x0, x20
	bl	_z8530_init
	cbz	x0, LBB0_21
; %bb.8:
Lloh22:
	adrp	x0, l_.str.6@PAGE
Lloh23:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_pr_err
	mov	x0, x21
	bl	_enable_irq
LBB0_9:
	ldr	w8, [x25]
	cmp	w8, #1
	b.ne	LBB0_12
; %bb.10:
	ldr	w0, [x20, #28]
	bl	_free_dma
LBB0_11:
	ldr	w8, [x25]
LBB0_12:
	cbz	w8, LBB0_14
; %bb.13:
	ldr	w0, [x20, #24]
	bl	_free_dma
LBB0_14:
	mov	x0, x21
	mov	x1, x20
	bl	_free_irq
	b	LBB0_17
LBB0_15:
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_pr_warn
	b	LBB0_19
LBB0_16:
Lloh26:
	adrp	x0, l_.str.3@PAGE
Lloh27:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	bl	_pr_warn
LBB0_17:
	mov	x0, x20
	bl	_kfree
LBB0_18:
	mov	x0, x19
	mov	w1, #8
	bl	_release_region
LBB0_19:
	mov	x20, #0
LBB0_20:
	mov	x0, x20
	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
	ret
LBB0_21:
Lloh28:
	adrp	x8, _z8530_dead_port@GOTPAGE
Lloh29:
	ldr	x8, [x8, _z8530_dead_port@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_z8530_channel_load
	ldr	x8, [x20, #8]
Lloh31:
	adrp	x9, _Z85C30@GOTPAGE
Lloh32:
	ldr	x9, [x9, _Z85C30@GOTPAGEOFF]
Lloh33:
	adrp	x10, _z8530_hdlc_kilostream@GOTPAGE
Lloh34:
	ldr	x10, [x10, _z8530_hdlc_kilostream@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
Lloh36:
	adrp	x11, _z8530_hdlc_kilostream_85230@GOTPAGE
Lloh37:
	ldr	x11, [x11, _z8530_hdlc_kilostream_85230@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w1, [x8]
	mov	x0, x22
	bl	_z8530_channel_load
	mov	x0, x21
	bl	_enable_irq
	mov	x0, x20
	bl	_alloc_hdlcdev
	str	x0, [x20, #32]
	cbz	x0, LBB0_9
; %bb.22:
	mov	x22, x0
Lloh38:
	adrp	x8, _hostess_attach@GOTPAGE
Lloh39:
	ldr	x8, [x8, _hostess_attach@GOTPAGEOFF]
Lloh40:
	ldr	w23, [x8]
	bl	_dev_to_hdlc
	str	w23, [x0, #4]
Lloh41:
	adrp	x8, _hostess_queue_xmit@GOTPAGE
Lloh42:
	ldr	x8, [x8, _hostess_queue_xmit@GOTPAGEOFF]
Lloh43:
	ldr	w23, [x8]
	mov	x0, x22
	bl	_dev_to_hdlc
	str	w23, [x0]
Lloh44:
	adrp	x8, _hostess_ops@GOTPAGE
Lloh45:
	ldr	x8, [x8, _hostess_ops@GOTPAGEOFF]
	str	x8, [x22, #8]
	stp	w19, w21, [x22]
	mov	x0, x22
	bl	_register_hdlc_device
	cbz	x0, LBB0_24
; %bb.23:
Lloh46:
	adrp	x0, l_.str.7@PAGE
Lloh47:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_pr_err
	mov	x0, x22
	bl	_free_netdev
	b	LBB0_9
LBB0_24:
Lloh48:
	adrp	x1, l_.str.8@PAGE
Lloh49:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_z8530_describe
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_20
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdrp	Lloh5, Lloh7
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh35
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Comtrol SV11"

l_.str.1:                               ; @.str.1
	.asciz	"I/O 0x%X already in use\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_z8530_nop,4,2                  ; @z8530_nop
	.comm	_z8530_interrupt,4,2            ; @z8530_interrupt
l_.str.2:                               ; @.str.2
	.asciz	"Hostess SV11"

l_.str.3:                               ; @.str.3
	.asciz	"IRQ %d already in use\n"

	.comm	_dma,4,2                        ; @dma
l_.str.4:                               ; @.str.4
	.asciz	"Hostess SV/11 (TX)"

l_.str.5:                               ; @.str.5
	.asciz	"Hostess SV/11 (RX)"

l_.str.6:                               ; @.str.6
	.asciz	"Z8530 series device not found\n"

	.comm	_z8530_dead_port,4,2            ; @z8530_dead_port
	.comm	_Z85C30,8,3                     ; @Z85C30
	.comm	_z8530_hdlc_kilostream,4,2      ; @z8530_hdlc_kilostream
	.comm	_z8530_hdlc_kilostream_85230,4,2 ; @z8530_hdlc_kilostream_85230
	.comm	_hostess_attach,4,2             ; @hostess_attach
	.comm	_hostess_queue_xmit,4,2         ; @hostess_queue_xmit
	.comm	_hostess_ops,4,2                ; @hostess_ops
l_.str.7:                               ; @.str.7
	.asciz	"unable to register HDLC device\n"

l_.str.8:                               ; @.str.8
	.asciz	"I/O"

	.no_dead_strip	_sv11_init
.subsections_via_symbols
