	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slvl_setup
_slvl_setup:                            ## @slvl_setup
	.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	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r15
	callq	_alloc_hdlcdev
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	_sealevel_attach@GOTPCREL(%rip), %rax
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_dev_to_hdlc
	movl	%r12d, 4(%rax)
	movq	_sealevel_queue_xmit@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_dev_to_hdlc
	movl	%r12d, (%rax)
	movq	_sealevel_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movl	%r13d, (%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_register_hdlc_device
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	%rbx, %rdi
	callq	_free_netdev
	jmp	LBB0_4
LBB0_3:
	movq	(%r15), %rax
	movq	%rbx, (%rax)
	xorl	%r14d, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sealevel_attach,4,2            ## @sealevel_attach
	.comm	_sealevel_queue_xmit,4,2        ## @sealevel_queue_xmit
	.comm	_sealevel_ops,4,2               ## @sealevel_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to register HDLC device\n"

	.no_dead_strip	_slvl_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slvl_setup
_slvl_setup:                            ; @slvl_setup
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_alloc_hdlcdev
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _sealevel_attach@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sealevel_attach@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	bl	_dev_to_hdlc
	str	w23, [x0, #4]
Lloh3:
	adrp	x8, _sealevel_queue_xmit@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sealevel_queue_xmit@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x0, x19
	bl	_dev_to_hdlc
	str	w23, [x0]
Lloh6:
	adrp	x8, _sealevel_ops@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sealevel_ops@GOTPAGEOFF]
	str	x8, [x19, #8]
	stp	w22, w21, [x19]
	mov	x0, x19
	bl	_register_hdlc_device
	cbz	x0, LBB0_4
; %bb.2:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	x0, x19
	bl	_free_netdev
LBB0_3:
	mov	w0, #-1
	b	LBB0_5
LBB0_4:
	ldr	x8, [x20]
	str	x19, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_sealevel_attach,4,2            ; @sealevel_attach
	.comm	_sealevel_queue_xmit,4,2        ; @sealevel_queue_xmit
	.comm	_sealevel_ops,4,2               ; @sealevel_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to register HDLC device\n"

	.no_dead_strip	_slvl_setup
.subsections_via_symbols
