	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt6_add_dflt_router            ## -- Begin function rt6_add_dflt_router
	.p2align	4, 0x90
_rt6_add_dflt_router:                   ## @rt6_add_dflt_router
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_RTF_GATEWAY@GOTPCREL(%rip), %rax
	movq	_RTF_ADDRCONF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_RTF_DEFAULT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_RTF_UP@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_RTF_EXPIRES@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%edx, %edi
	callq	_RTF_PREF
	orl	%ebx, %eax
	movl	%eax, -80(%rbp)
	leaq	-76(%rbp), %r15
	xorps	%xmm0, %xmm0
	movups	%xmm0, -76(%rbp)
	movups	%xmm0, -64(%rbp)
	movq	%r12, %rdi
	callq	_dev_net
	movl	%eax, -72(%rbp)
	movl	(%r12), %eax
	movl	%eax, -48(%rbp)
	movq	_IP6_RT_PRIO_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_RT6_TABLE_DFLT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ipv6_addr_copy
	leaq	-80(%rbp), %rdi
	callq	_ip6_route_add
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_rt6_get_dflt_router
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTF_GATEWAY,4,2                ## @RTF_GATEWAY
	.comm	_RTF_ADDRCONF,4,2               ## @RTF_ADDRCONF
	.comm	_RTF_DEFAULT,4,2                ## @RTF_DEFAULT
	.comm	_RTF_UP,4,2                     ## @RTF_UP
	.comm	_RTF_EXPIRES,4,2                ## @RTF_EXPIRES
	.comm	_IP6_RT_PRIO_USER,4,2           ## @IP6_RT_PRIO_USER
	.comm	_RT6_TABLE_DFLT,4,2             ## @RT6_TABLE_DFLT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt6_add_dflt_router            ; -- Begin function rt6_add_dflt_router
	.p2align	2
_rt6_add_dflt_router:                   ; @rt6_add_dflt_router
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _RTF_GATEWAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTF_GATEWAY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _RTF_ADDRCONF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RTF_ADDRCONF@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _RTF_DEFAULT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RTF_DEFAULT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _RTF_UP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RTF_UP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _RTF_EXPIRES@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RTF_EXPIRES@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w21, w8, w9
	mov	x0, x2
	bl	_RTF_PREF
	orr	w8, w21, w0
	str	w8, [sp]
	mov	x8, sp
	stur	xzr, [sp, #4]
	orr	x21, x8, #0x4
	stur	xzr, [sp, #20]
	stur	xzr, [sp, #12]
	str	wzr, [sp, #28]
	mov	x0, x19
	bl	_dev_net
	ldr	w8, [x19]
	str	w0, [sp, #8]
	str	w8, [sp, #32]
Lloh15:
	adrp	x8, _IP6_RT_PRIO_USER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IP6_RT_PRIO_USER@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _RT6_TABLE_DFLT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RT6_TABLE_DFLT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #36]
	mov	x0, x21
	mov	x1, x20
	bl	_ipv6_addr_copy
	mov	x0, sp
	bl	_ip6_route_add
	mov	x0, x20
	mov	x1, x19
	bl	_rt6_get_dflt_router
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RTF_GATEWAY,4,2                ; @RTF_GATEWAY
	.comm	_RTF_ADDRCONF,4,2               ; @RTF_ADDRCONF
	.comm	_RTF_DEFAULT,4,2                ; @RTF_DEFAULT
	.comm	_RTF_UP,4,2                     ; @RTF_UP
	.comm	_RTF_EXPIRES,4,2                ; @RTF_EXPIRES
	.comm	_IP6_RT_PRIO_USER,4,2           ; @IP6_RT_PRIO_USER
	.comm	_RT6_TABLE_DFLT,4,2             ; @RT6_TABLE_DFLT
.subsections_via_symbols
