	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clip_create
_clip_create:                           ## @clip_create
	.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	_clip_devs@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	cmpl	$-1, %edi
	je	LBB0_6
## %bb.1:
	movl	%edi, %r14d
	testq	%rbx, %rbx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_PRIV
	cmpl	%r14d, (%rax)
	je	LBB0_4
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_PRIV
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
LBB0_11:
	movq	_clip_setup@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movl	$24, %edi
	callq	_alloc_netdev
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PRIV
	movq	%rax, %r15
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	callq	_sprintf
	leaq	16(%r15), %rdi
	callq	_spin_lock_init
	movl	%r14d, (%r15)
	movq	%rbx, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_free_netdev
	movl	%r12d, %r14d
	jmp	LBB0_16
LBB0_6:
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_PRIV
	movq	8(%rax), %rbx
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_PRIV
	cmpl	%r14d, (%rax)
	jl	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_PRIV
	movl	(%rax), %r14d
	incl	%r14d
	jmp	LBB0_10
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_EEXIST@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_16
LBB0_15:
	movq	(%r13), %rax
	movq	%rax, 8(%r15)
	movq	%rbx, (%r13)
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_debug
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_clip_devs,8,3                  ## @clip_devs
	.comm	_EEXIST,4,2                     ## @EEXIST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_clip_setup,4,2                 ## @clip_setup
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"atm%d"

L_.str.2:                               ## @.str.2
	.asciz	"registered (net:%s)\n"

	.no_dead_strip	_clip_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clip_create
_clip_create:                           ; @clip_create
	.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
Lloh0:
	adrp	x23, _clip_devs@GOTPAGE
Lloh1:
	ldr	x23, [x23, _clip_devs@GOTPAGEOFF]
	ldr	x20, [x23]
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x0
	cbz	x20, LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_PRIV
	ldr	w8, [x0]
	cmp	w8, w19
	b.eq	LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_PRIV
	ldr	x20, [x0, #8]
	cbnz	x20, LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w19, #0
	cbnz	x20, LBB0_9
LBB0_5:
Lloh2:
	adrp	x8, _clip_setup@GOTPAGE
Lloh3:
	ldr	x8, [x8, _clip_setup@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #24
	bl	_alloc_netdev
	cbz	x0, LBB0_11
; %bb.6:
	mov	x20, x0
	bl	_PRIV
	mov	x21, x0
	ldr	w0, [x20]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_sprintf
	add	x0, x21, #16
	bl	_spin_lock_init
	str	w19, [x21]
	mov	x0, x20
	bl	_register_netdev
	cbz	w0, LBB0_14
; %bb.7:
	mov	x22, x0
	mov	x0, x20
	bl	_free_netdev
	mov	x19, x22
	b	LBB0_15
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	bl	_PRIV
	ldr	x20, [x0, #8]
	cbz	x20, LBB0_5
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_PRIV
	ldr	w8, [x0]
	cmp	w8, w19
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	bl	_PRIV
	ldr	w8, [x0]
	add	w19, w8, #1
	b	LBB0_8
LBB0_11:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh11:
	adrp	x8, _EEXIST@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_15
LBB0_14:
	ldr	x8, [x23]
	str	x8, [x21, #8]
	str	x20, [x23]
	ldr	w1, [x20]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
LBB0_15:
	mov	x0, x19
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_clip_devs,8,3                  ; @clip_devs
	.comm	_EEXIST,4,2                     ; @EEXIST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_clip_setup,4,2                 ; @clip_setup
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"atm%d"

l_.str.2:                               ; @.str.2
	.asciz	"registered (net:%s)\n"

	.no_dead_strip	_clip_create
.subsections_via_symbols
