	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip_rt_get_source               ## -- Begin function ip_rt_get_source
	.p2align	4, 0x90
_ip_rt_get_source:                      ## @ip_rt_get_source
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpq	$0, 8(%rsi)
	je	LBB0_1
## %bb.2:
	leaq	8(%rbx), %r15
	movl	4(%rbx), %edi
	callq	_dev_net
	leaq	-32(%rbp), %rdx
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_fib_lookup
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	movq	_RT_SCOPE_UNIVERSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_inet_select_addr
	jmp	LBB0_5
LBB0_1:
	movl	16(%rbx), %eax
LBB0_5:
	movl	%eax, -28(%rbp)
	jmp	LBB0_6
LBB0_3:
	movl	-32(%rbp), %edi
	callq	_FIB_RES_PREFSRC
	movl	%eax, -28(%rbp)
	leaq	-32(%rbp), %rdi
	callq	_fib_res_put
LBB0_6:
	leaq	-28(%rbp), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_memcpy
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RT_SCOPE_UNIVERSE,4,2          ## @RT_SCOPE_UNIVERSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip_rt_get_source               ; -- Begin function ip_rt_get_source
	.p2align	2
_ip_rt_get_source:                      ; @ip_rt_get_source
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x21, x1
	ldr	x8, [x21, #8]!
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w0, [x20, #4]
	bl	_dev_net
	add	x2, sp, #8
	mov	x1, x21
	bl	_fib_lookup
	cbz	x0, LBB0_4
; %bb.2:
	ldp	w1, w0, [x20]
Lloh0:
	adrp	x8, _RT_SCOPE_UNIVERSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RT_SCOPE_UNIVERSE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_inet_select_addr
	str	w0, [sp, #12]
	b	LBB0_5
LBB0_3:
	ldr	w8, [x20, #16]
	str	w8, [sp, #12]
	b	LBB0_5
LBB0_4:
	ldr	w0, [sp, #8]
	bl	_FIB_RES_PREFSRC
	str	w0, [sp, #12]
	add	x0, sp, #8
	bl	_fib_res_put
LBB0_5:
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #4
	bl	_memcpy
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RT_SCOPE_UNIVERSE,4,2          ; @RT_SCOPE_UNIVERSE
.subsections_via_symbols
