	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt6_get_dflt_router            ## -- Begin function rt6_get_dflt_router
	.p2align	4, 0x90
_rt6_get_dflt_router:                   ## @rt6_get_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	%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	%rsi, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_dev_net
	movq	_RT6_TABLE_DFLT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_fib6_get_table
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_write_lock_bh
	movq	8(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.2:
	movq	_RTF_ADDRCONF@GOTPCREL(%rip), %r13
	movq	_RTF_DEFAULT@GOTPCREL(%rip), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, 24(%rbx)
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rbx), %eax
	movl	(%r12), %ecx
	orl	(%r13), %ecx
	notl	%eax
	testl	%eax, %ecx
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	16(%rbx), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ipv6_addr_equal
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	leaq	8(%rbx), %rdi
	callq	_dst_hold
	jmp	LBB0_11
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%r14, %rdi
	callq	_write_unlock_bh
	jmp	LBB0_12
LBB0_8:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RT6_TABLE_DFLT,4,2             ## @RT6_TABLE_DFLT
	.comm	_RTF_ADDRCONF,4,2               ## @RTF_ADDRCONF
	.comm	_RTF_DEFAULT,4,2                ## @RTF_DEFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt6_get_dflt_router            ; -- Begin function rt6_get_dflt_router
	.p2align	2
_rt6_get_dflt_router:                   ; @rt6_get_dflt_router
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x22, x0
	mov	x0, x1
	bl	_dev_net
Lloh0:
	adrp	x8, _RT6_TABLE_DFLT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RT6_TABLE_DFLT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_fib6_get_table
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	bl	_write_lock_bh
	ldr	x21, [x19, #8]
	cbz	x21, LBB0_8
; %bb.2:
Lloh3:
	adrp	x23, _RTF_ADDRCONF@GOTPAGE
Lloh4:
	ldr	x23, [x23, _RTF_ADDRCONF@GOTPAGEOFF]
Lloh5:
	adrp	x24, _RTF_DEFAULT@GOTPAGE
Lloh6:
	ldr	x24, [x24, _RTF_DEFAULT@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x21, [x21, #8]
	cbz	x21, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #24]
	cmp	x8, x20
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	ldr	w9, [x23]
	ldr	w10, [x24]
	orr	w9, w10, w9
	bics	wzr, w9, w8
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x21, #16
	mov	x1, x22
	bl	_ipv6_addr_equal
	cbz	x0, LBB0_3
; %bb.7:
	add	x0, x21, #8
	bl	_dst_hold
LBB0_8:
	mov	x0, x19
	bl	_write_unlock_bh
	b	LBB0_10
LBB0_9:
	mov	x21, #0
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_RT6_TABLE_DFLT,4,2             ; @RT6_TABLE_DFLT
	.comm	_RTF_ADDRCONF,4,2               ; @RTF_ADDRCONF
	.comm	_RTF_DEFAULT,4,2                ; @RTF_DEFAULT
.subsections_via_symbols
