	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipv6cp_InterfaceUp             ## -- Begin function ipv6cp_InterfaceUp
	.p2align	4, 0x90
_ipv6cp_InterfaceUp:                    ## @ipv6cp_InterfaceUp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edx
	movl	12(%rdi), %esi
	callq	_ipcp_SetIPv6address
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_iface_SetFlags
	movl	$1, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_log_Printf
	jmp	LBB0_4
LBB0_1:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_log_Printf
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LogERROR,4,2                   ## @LogERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ipv6cp_InterfaceUp: unable to set ipv6 address\n"

	.comm	_IFF_UP,4,2                     ## @IFF_UP
L_.str.1:                               ## @.str.1
	.asciz	"ipv6cp_InterfaceUp: Can't set the IFF_UP flag on %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipv6cp_InterfaceUp             ; -- Begin function ipv6cp_InterfaceUp
	.p2align	2
_ipv6cp_InterfaceUp:                    ; @ipv6cp_InterfaceUp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldp	w2, w1, [x0, #8]
	bl	_ipcp_SetIPv6address
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _IFF_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFF_UP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_iface_SetFlags
	cbz	w0, LBB0_4
; %bb.2:
	mov	w0, #1
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _LogERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _LogERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	bl	_log_Printf
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LogERROR,4,2                   ; @LogERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ipv6cp_InterfaceUp: unable to set ipv6 address\n"

	.comm	_IFF_UP,4,2                     ; @IFF_UP
l_.str.1:                               ; @.str.1
	.asciz	"ipv6cp_InterfaceUp: Can't set the IFF_UP flag on %s\n"

.subsections_via_symbols
