	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sl_alloc
_sl_alloc:                              ## @sl_alloc
	.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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_slip_devs@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	_slip_maxdev@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.2:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, %rcx
	jne	LBB0_3
	jmp	LBB0_9
LBB0_5:
	movq	%rsp, %r13
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_sprintf
	movq	_sl_setup@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$56, %edi
	movq	%r14, %rsi
	callq	_alloc_netdev
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %r15
	movl	%ebx, (%rax)
	movq	%r13, %rsp
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_SLIP_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movq	%r15, 40(%r14)
	leaq	36(%r14), %rdi
	callq	_spin_lock_init
	movq	_SL_MODE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	(%r12), %rax
	movq	%r15, (%rax,%rbx,8)
	jmp	LBB0_9
LBB0_7:
	movq	%r13, %rsp
LBB0_8:
	xorl	%r14d, %r14d
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movq	%r14, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_slip_devs,8,3                  ## @slip_devs
	.comm	_slip_maxdev,4,2                ## @slip_maxdev
	.comm	_SLF_INUSE,4,2                  ## @SLF_INUSE
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sl%d"

	.comm	_sl_setup,4,2                   ## @sl_setup
	.comm	_SLIP_MAGIC,4,2                 ## @SLIP_MAGIC
	.comm	_SL_MODE_DEFAULT,4,2            ## @SL_MODE_DEFAULT
	.comm	_sl_keepalive,4,2               ## @sl_keepalive
	.comm	_sl_outfill,4,2                 ## @sl_outfill
	.no_dead_strip	_sl_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sl_alloc
_sl_alloc:                              ; @sl_alloc
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x22, _slip_devs@GOTPAGE
Lloh4:
	ldr	x22, [x22, _slip_devs@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_8
; %bb.1:
Lloh5:
	adrp	x9, _slip_maxdev@GOTPAGE
Lloh6:
	ldr	x9, [x9, _slip_maxdev@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x19, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, x19, lsl #3]
	cbz	x10, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x19, #1
	cmp	x9, x19
	b.ne	LBB0_3
	b	LBB0_8
LBB0_5:
	mov	x23, sp
Lloh8:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_sprintf
Lloh15:
	adrp	x8, _sl_setup@GOTPAGE
Lloh16:
	ldr	x8, [x8, _sl_setup@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	w0, #56
	mov	x1, x20
	bl	_alloc_netdev
	cbz	x0, LBB0_7
; %bb.6:
	mov	x21, x0
	str	w19, [x0]
	mov	sp, x23
	bl	_netdev_priv
	mov	x20, x0
Lloh18:
	adrp	x8, _SLIP_MAGIC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SLIP_MAGIC@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x0, #48]
	str	x21, [x0, #40]
	add	x0, x0, #36
	bl	_spin_lock_init
Lloh21:
	adrp	x8, _SL_MODE_DEFAULT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SL_MODE_DEFAULT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x20, #32]
	ldr	x8, [x22]
	str	x21, [x8, x19, lsl #3]
	b	LBB0_9
LBB0_7:
	mov	sp, x23
LBB0_8:
	mov	x20, #0
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x20
	sub	sp, x29, #48
	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
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_slip_devs,8,3                  ; @slip_devs
	.comm	_slip_maxdev,4,2                ; @slip_maxdev
	.comm	_SLF_INUSE,4,2                  ; @SLF_INUSE
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sl%d"

	.comm	_sl_setup,4,2                   ; @sl_setup
	.comm	_SLIP_MAGIC,4,2                 ; @SLIP_MAGIC
	.comm	_SL_MODE_DEFAULT,4,2            ; @SL_MODE_DEFAULT
	.comm	_sl_keepalive,4,2               ; @sl_keepalive
	.comm	_sl_outfill,4,2                 ; @sl_outfill
	.no_dead_strip	_sl_alloc
.subsections_via_symbols
