	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function inet6_set_link_af
_inet6_set_link_af:                     ## @inet6_set_link_af
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	callq	___in6_dev_get
	movq	%rax, %r14
	movq	_IFLA_INET6_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	1(%rbx), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_nla_parse_nested
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_BUG
LBB0_4:
	movq	_IFLA_INET6_TOKEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_nla_data
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_inet6_set_iftoken
	movl	%eax, %r13d
	jmp	LBB0_6
LBB0_1:
	movq	_EAFNOSUPPORT@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	%r15d, %r13d
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IFLA_INET6_MAX,4,2             ## @IFLA_INET6_MAX
	.comm	_EAFNOSUPPORT,4,2               ## @EAFNOSUPPORT
	.comm	_IFLA_INET6_TOKEN,8,3           ## @IFLA_INET6_TOKEN
	.no_dead_strip	_inet6_set_link_af
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function inet6_set_link_af
_inet6_set_link_af:                     ; @inet6_set_link_af
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #16
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	bl	___in6_dev_get
	mov	x19, x0
Lloh6:
	adrp	x8, _IFLA_INET6_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IFLA_INET6_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	w8, w1, #1
	lsl	x8, x8, #3
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x21, x9, x8
	mov	sp, x21
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x21
	mov	x2, x20
	mov	x3, #0
	bl	_nla_parse_nested
	tbz	x0, #63, LBB0_3
; %bb.2:
	bl	_BUG
LBB0_3:
Lloh11:
	adrp	x8, _IFLA_INET6_TOKEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IFLA_INET6_TOKEN@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	cbz	x0, LBB0_6
; %bb.4:
	bl	_nla_data
	mov	x1, x0
	mov	x0, x19
	bl	_inet6_set_iftoken
	b	LBB0_7
LBB0_5:
Lloh14:
	adrp	x8, _EAFNOSUPPORT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EAFNOSUPPORT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	neg	w0, w22
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IFLA_INET6_MAX,4,2             ; @IFLA_INET6_MAX
	.comm	_EAFNOSUPPORT,4,2               ; @EAFNOSUPPORT
	.comm	_IFLA_INET6_TOKEN,8,3           ; @IFLA_INET6_TOKEN
	.no_dead_strip	_inet6_set_link_af
.subsections_via_symbols
