	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dn_dev_up                      ## -- Begin function dn_dev_up
	.p2align	4, 0x90
_dn_dev_up:                             ## @dn_dev_up
	.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	%rdi, %r12
	movq	_decnet_address@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	(%rdi), %rbx
	movq	_ARPHRD_ETHER@GOTPCREL(%rip), %r15
	movq	(%r15), %r13
	cmpq	%r13, %rbx
	je	LBB0_2
## %bb.1:
	movq	_ARPHRD_LOOPBACK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_13
LBB0_2:
	cmpq	$0, 16(%r12)
	je	LBB0_3
## %bb.5:
	cmpq	%r13, %rbx
	je	LBB0_6
LBB0_8:
	testq	%r14, %r14
	je	LBB0_13
LBB0_9:
	xorl	%eax, %eax
	callq	_dn_dev_alloc_ifa
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	%rax, %r15
	movq	%r14, 16(%rax)
	movq	%r14, 24(%rax)
	movq	$0, 8(%rax)
	movq	_RT_SCOPE_UNIVERSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movl	(%r15), %edi
	movl	8(%r12), %esi
	callq	_strcpy
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_dn_dev_set_ifa
	cmpq	%r13, %rbx
	jne	LBB0_13
## %bb.11:
	movq	%r12, %rdi
	callq	_dev_hold
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_dn_dev_set_default
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	callq	_dev_put
	jmp	LBB0_13
LBB0_3:
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_dn_dev_create
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	(%r12), %rbx
	movq	(%r15), %r13
	cmpq	%r13, %rbx
	jne	LBB0_8
LBB0_6:
	movl	12(%r12), %edi
	movq	_dn_hiord@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_7
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	12(%r12), %edi
	callq	_dn_eth2dn
	movq	%rax, %r14
	testq	%r14, %r14
	jne	LBB0_9
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_decnet_address,8,3             ## @decnet_address
	.comm	_ARPHRD_ETHER,8,3               ## @ARPHRD_ETHER
	.comm	_ARPHRD_LOOPBACK,8,3            ## @ARPHRD_LOOPBACK
	.comm	_dn_hiord,4,2                   ## @dn_hiord
	.comm	_RT_SCOPE_UNIVERSE,4,2          ## @RT_SCOPE_UNIVERSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dn_dev_up                      ; -- Begin function dn_dev_up
	.p2align	2
_dn_dev_up:                             ; @dn_dev_up
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x22, [x0]
Lloh0:
	adrp	x21, _ARPHRD_ETHER@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ARPHRD_ETHER@GOTPAGEOFF]
	ldr	x23, [x21]
Lloh2:
	adrp	x8, _ARPHRD_LOOPBACK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ARPHRD_LOOPBACK@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x22, x23
	ccmp	x22, x8, #4, ne
	b.ne	LBB0_11
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x8, _decnet_address@GOTPAGE
Lloh6:
	ldr	x8, [x8, _decnet_address@GOTPAGEOFF]
Lloh7:
	ldr	x20, [x8]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_8
; %bb.2:
	cmp	x22, x23
	b.eq	LBB0_10
LBB0_3:
	cbz	x20, LBB0_11
LBB0_4:
	bl	_dn_dev_alloc_ifa
	cbz	x0, LBB0_11
; %bb.5:
	mov	x21, x0
	stp	x20, x20, [x0, #16]
	str	xzr, [x0, #8]
Lloh8:
	adrp	x8, _RT_SCOPE_UNIVERSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RT_SCOPE_UNIVERSE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x0, #4]
	ldr	w0, [x0]
	ldr	w1, [x19, #8]
	bl	_strcpy
	mov	x0, x19
	mov	x1, x21
	bl	_dn_dev_set_ifa
	cmp	x22, x23
	b.ne	LBB0_11
; %bb.6:
	mov	x0, x19
	bl	_dev_hold
	mov	x0, x19
	mov	w1, #0
	bl	_dn_dev_set_default
	cbz	x0, LBB0_11
; %bb.7:
	mov	x0, x19
	bl	_dev_put
	b	LBB0_11
LBB0_8:
	add	x1, sp, #12
	mov	x0, x19
	bl	_dn_dev_create
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x22, [x19]
	ldr	x23, [x21]
	cmp	x22, x23
	b.ne	LBB0_3
LBB0_10:
	ldr	w0, [x19, #12]
Lloh11:
	adrp	x8, _dn_hiord@GOTPAGE
Lloh12:
	ldr	x8, [x8, _dn_hiord@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_memcmp
	cbz	x0, LBB0_12
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
	ldr	w0, [x19, #12]
	bl	_dn_eth2dn
	mov	x20, x0
	cbnz	x20, LBB0_4
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_decnet_address,8,3             ; @decnet_address
	.comm	_ARPHRD_ETHER,8,3               ; @ARPHRD_ETHER
	.comm	_ARPHRD_LOOPBACK,8,3            ; @ARPHRD_LOOPBACK
	.comm	_dn_hiord,4,2                   ; @dn_hiord
	.comm	_RT_SCOPE_UNIVERSE,4,2          ; @RT_SCOPE_UNIVERSE
.subsections_via_symbols
