	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_suni_init                      ## -- Begin function suni_init
	.p2align	4, 0x90
_suni_init:                             ## @suni_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kmalloc
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_PRIV
	movq	%r14, 8(%rax)
	movq	_MRI@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_GET
	movq	_SUNI_MRI_TYPE@GOTPCREL(%rip), %rcx
	movzbl	%al, %r12d
	movb	(%rcx), %al
	andb	%r12b, %al
	movzbl	%al, %ebx
	movq	_SUNI_MRI_TYPE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrl	%cl, %ebx
	movq	%r14, %rdi
	callq	_PRIV
	movb	%bl, (%rax)
	movq	_SUNI_MRI_RESET@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	orb	%r12b, %al
	movl	(%r15), %esi
	movzbl	%al, %edi
	callq	_PUT
	movl	(%r15), %esi
	movl	%r12d, %edi
	callq	_PUT
	movq	_MT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_GET
	movq	_SUNI_MT_DS27_53@GOTPCREL(%rip), %rcx
	andb	(%rcx), %al
	movl	(%rbx), %esi
	movzbl	%al, %edi
	callq	_PUT
	movq	%r14, %rdi
	callq	_set_sonet
	movq	_SUNI_TACP_IUCHP_CLP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TACP_IUCHP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	%edi, %edx
	callq	_REG_CHANGE
	movq	_SUNI_IDLE_PATTERN@GOTPCREL(%rip), %rax
	movzbl	(%rax), %edi
	movq	_TACP_IUCPOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PUT
	movq	_suni_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%r14)
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MRI,4,2                        ## @MRI
	.comm	_SUNI_MRI_TYPE,1,0              ## @SUNI_MRI_TYPE
	.comm	_SUNI_MRI_TYPE_SHIFT,1,0        ## @SUNI_MRI_TYPE_SHIFT
	.comm	_SUNI_MRI_RESET,1,0             ## @SUNI_MRI_RESET
	.comm	_MT,4,2                         ## @MT
	.comm	_SUNI_MT_DS27_53,1,0            ## @SUNI_MT_DS27_53
	.comm	_SUNI_TACP_IUCHP_CLP,4,2        ## @SUNI_TACP_IUCHP_CLP
	.comm	_TACP_IUCHP,4,2                 ## @TACP_IUCHP
	.comm	_SUNI_IDLE_PATTERN,1,0          ## @SUNI_IDLE_PATTERN
	.comm	_TACP_IUCPOP,4,2                ## @TACP_IUCPOP
	.comm	_suni_ops,4,2                   ## @suni_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_suni_init                      ; -- Begin function suni_init
	.p2align	2
_suni_init:                             ; @suni_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kmalloc
	str	w0, [x19, #8]
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_PRIV
	str	x19, [x0, #8]
Lloh3:
	adrp	x21, _MRI@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MRI@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_GET
	mov	x20, x0
Lloh5:
	adrp	x8, _SUNI_MRI_TYPE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SUNI_MRI_TYPE@GOTPAGEOFF]
	ldrb	w8, [x8]
	and	w8, w8, w0
Lloh7:
	adrp	x9, _SUNI_MRI_TYPE_SHIFT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SUNI_MRI_TYPE_SHIFT@GOTPAGEOFF]
	ldrb	w9, [x9]
	lsr	w22, w8, w9
	mov	x0, x19
	bl	_PRIV
	strb	w22, [x0]
Lloh9:
	adrp	x8, _SUNI_MRI_RESET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SUNI_MRI_RESET@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w8, w8, w20
	ldr	w1, [x21]
	and	w0, w8, #0xff
	bl	_PUT
	ldr	w1, [x21]
	mov	x0, x20
	bl	_PUT
Lloh11:
	adrp	x20, _MT@GOTPAGE
Lloh12:
	ldr	x20, [x20, _MT@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_GET
Lloh13:
	adrp	x8, _SUNI_MT_DS27_53@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SUNI_MT_DS27_53@GOTPAGEOFF]
	ldrb	w8, [x8]
	and	w0, w8, w0
	ldr	w1, [x20]
	bl	_PUT
	mov	x0, x19
	bl	_set_sonet
Lloh15:
	adrp	x8, _SUNI_TACP_IUCHP_CLP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SUNI_TACP_IUCHP_CLP@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _TACP_IUCHP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TACP_IUCHP@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	w1, #0
	mov	x2, x0
	bl	_REG_CHANGE
Lloh21:
	adrp	x8, _SUNI_IDLE_PATTERN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SUNI_IDLE_PATTERN@GOTPAGEOFF]
	ldrb	w0, [x8]
Lloh23:
	adrp	x8, _TACP_IUCPOP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TACP_IUCPOP@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_PUT
	mov	w0, #0
Lloh26:
	adrp	x8, _suni_ops@GOTPAGE
Lloh27:
	ldr	x8, [x8, _suni_ops@GOTPAGEOFF]
	str	x8, [x19]
	b	LBB0_3
LBB0_2:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MRI,4,2                        ; @MRI
	.comm	_SUNI_MRI_TYPE,1,0              ; @SUNI_MRI_TYPE
	.comm	_SUNI_MRI_TYPE_SHIFT,1,0        ; @SUNI_MRI_TYPE_SHIFT
	.comm	_SUNI_MRI_RESET,1,0             ; @SUNI_MRI_RESET
	.comm	_MT,4,2                         ; @MT
	.comm	_SUNI_MT_DS27_53,1,0            ; @SUNI_MT_DS27_53
	.comm	_SUNI_TACP_IUCHP_CLP,4,2        ; @SUNI_TACP_IUCHP_CLP
	.comm	_TACP_IUCHP,4,2                 ; @TACP_IUCHP
	.comm	_SUNI_IDLE_PATTERN,1,0          ; @SUNI_IDLE_PATTERN
	.comm	_TACP_IUCPOP,4,2                ; @TACP_IUCPOP
	.comm	_suni_ops,4,2                   ; @suni_ops
.subsections_via_symbols
