	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_arcdev                   ## -- Begin function alloc_arcdev
	.p2align	4, 0x90
_alloc_arcdev:                          ## @alloc_arcdev
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	cmpb	$0, (%rdi)
	leaq	L_.str(%rip), %rsi
	cmovneq	%rdi, %rsi
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
LBB0_3:
	movq	_arcdev_setup@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %edi
	callq	_alloc_netdev
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	%rax, %rdi
	callq	_spin_lock_init
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"arc%d"

	.comm	_arcdev_setup,4,2               ## @arcdev_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_arcdev                   ; -- Begin function alloc_arcdev
	.p2align	2
_alloc_arcdev:                          ; @alloc_arcdev
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	cbz	x0, LBB0_2
; %bb.1:
	ldrb	w8, [x0]
	cmp	w8, #0
	csel	x1, x1, x0, eq
LBB0_2:
Lloh2:
	adrp	x8, _arcdev_setup@GOTPAGE
Lloh3:
	ldr	x8, [x8, _arcdev_setup@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w0, #4
	bl	_alloc_netdev
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_netdev_priv
	bl	_spin_lock_init
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"arc%d"

	.comm	_arcdev_setup,4,2               ; @arcdev_setup
.subsections_via_symbols
