	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_slip_maxdev@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	movq	_slip_devs@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%rbx,8)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rbx, %rax
	jne	LBB0_2
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_sprintf
	movq	_NET_NAME_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_sl_setup@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$40, %edi
	movq	%r15, %rsi
	callq	_alloc_netdev
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %r15
	movl	%ebx, (%rax)
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_SLIP_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	%r15, 24(%r14)
	leaq	16(%r14), %rdi
	callq	_spin_lock_init
	leaq	12(%r14), %rdi
	movq	_slip_transmit@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_SL_MODE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	(%r12), %rax
	movq	%r15, (%rax,%rbx,8)
	jmp	LBB0_8
LBB0_7:
	xorl	%r14d, %r14d
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movq	%r14, %rax
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.comm	_slip_maxdev,4,2                ## @slip_maxdev
	.comm	_slip_devs,8,3                  ## @slip_devs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sl%d"

	.comm	_NET_NAME_UNKNOWN,4,2           ## @NET_NAME_UNKNOWN
	.comm	_sl_setup,4,2                   ## @sl_setup
	.comm	_SLIP_MAGIC,4,2                 ## @SLIP_MAGIC
	.comm	_slip_transmit,4,2              ## @slip_transmit
	.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	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
	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, #-40]
Lloh3:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	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
Lloh8:
	adrp	x8, _slip_maxdev@GOTPAGE
Lloh9:
	ldr	x8, [x8, _slip_maxdev@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, #0
Lloh11:
	adrp	x22, _slip_devs@GOTPAGE
Lloh12:
	ldr	x22, [x22, _slip_devs@GOTPAGEOFF]
	ldr	x9, [x22]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x19, lsl #3]
	cbz	x10, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x19, x19, #1
	cmp	x8, x19
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_sprintf
Lloh15:
	adrp	x8, _NET_NAME_UNKNOWN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NET_NAME_UNKNOWN@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x8, _sl_setup@GOTPAGE
Lloh19:
	ldr	x8, [x8, _sl_setup@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	w0, #40
	mov	x1, x20
	bl	_alloc_netdev
	cbz	x0, LBB0_6
; %bb.5:
	mov	x21, x0
	str	w19, [x0]
	bl	_netdev_priv
	mov	x20, x0
Lloh21:
	adrp	x8, _SLIP_MAGIC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SLIP_MAGIC@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	str	x21, [x0, #24]
	add	x0, x0, #16
	bl	_spin_lock_init
	add	x0, x20, #12
Lloh24:
	adrp	x8, _slip_transmit@GOTPAGE
Lloh25:
	ldr	x8, [x8, _slip_transmit@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh27:
	adrp	x8, _SL_MODE_DEFAULT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SL_MODE_DEFAULT@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	ldr	x8, [x22]
	str	x21, [x8, x19, lsl #3]
	b	LBB0_7
LBB0_6:
	mov	x20, #0
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x20
	sub	sp, x29, #32
	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
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.comm	_slip_maxdev,4,2                ; @slip_maxdev
	.comm	_slip_devs,8,3                  ; @slip_devs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sl%d"

	.comm	_NET_NAME_UNKNOWN,4,2           ; @NET_NAME_UNKNOWN
	.comm	_sl_setup,4,2                   ; @sl_setup
	.comm	_SLIP_MAGIC,4,2                 ; @SLIP_MAGIC
	.comm	_slip_transmit,4,2              ; @slip_transmit
	.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
