	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phonet_device_autoconf
_phonet_device_autoconf:                ## @phonet_device_autoconf
	.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
	movq	(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	_SIOCPNGAUTOCONF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-16(%rbp), %rsi
	callq	*%rax
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	xorl	%eax, %eax
	callq	_ASSERT_RTNL
	movl	-16(%rbp), %esi
	movq	%rbx, %rdi
	callq	_phonet_address_add
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_RTM_NEWADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-16(%rbp), %edx
	movq	%rbx, %rsi
	callq	_phonet_address_notify
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_SIOCPNGAUTOCONF,4,2            ## @SIOCPNGAUTOCONF
	.comm	_RTM_NEWADDR,4,2                ## @RTM_NEWADDR
	.no_dead_strip	_phonet_device_autoconf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phonet_device_autoconf
_phonet_device_autoconf:                ; @phonet_device_autoconf
	.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
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, _SIOCPNGAUTOCONF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SIOCPNGAUTOCONF@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	add	x1, sp, #8
	blr	x8
	tbnz	w0, #31, LBB0_5
; %bb.2:
	bl	_ASSERT_RTNL
	ldr	w1, [sp, #8]
	mov	x0, x19
	bl	_phonet_address_add
	cbnz	w0, LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _RTM_NEWADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTM_NEWADDR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w2, [sp, #8]
	mov	x1, x19
	bl	_phonet_address_notify
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_SIOCPNGAUTOCONF,4,2            ; @SIOCPNGAUTOCONF
	.comm	_RTM_NEWADDR,4,2                ; @RTM_NEWADDR
	.no_dead_strip	_phonet_device_autoconf
.subsections_via_symbols
