	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnic_get_route
_cnic_get_route:                        ## @cnic_get_route
	.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, %rbx
	movq	%rdi, %r15
	movq	40(%rdi), %r13
	movq	8(%r13), %rdx
	movq	$0, -48(%rbp)
	movq	16(%rsi), %rax
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	cmpq	%rax, 48(%rbx)
	jne	LBB0_2
## %bb.5:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	_SK_F_IPV6@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	32(%r15), %r12
	movq	%r12, %rsi
	callq	_clear_bit
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_set_bit
	leaq	48(%rbx), %rdi
	leaq	-48(%rbp), %rsi
	callq	_cnic_get_v6_route
	movq	24(%r15), %rdi
	leaq	60(%rbx), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	56(%rbx), %eax
	movl	%eax, 16(%r15)
	addq	$24, %rbx
	jmp	LBB0_7
LBB0_2:
	movq	(%rbx), %rax
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	cmpq	%rax, 32(%rbx)
	jne	LBB0_4
## %bb.6:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	_SK_F_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	32(%r15), %rsi
	callq	_clear_bit
	leaq	32(%rbx), %rdi
	leaq	-48(%rbp), %rsi
	callq	_cnic_get_v4_route
	movl	44(%rbx), %eax
	movq	24(%r15), %rcx
	movl	%eax, (%rcx)
	movl	40(%rbx), %eax
	movl	%eax, 16(%r15)
	addq	$8, %rbx
LBB0_7:
	movl	(%rbx), %r12d
	movq	$0, 8(%r15)
	movq	(%r13), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.9:
	leaq	-64(%rbp), %rsi
	callq	_cnic_get_vlan
	movq	-64(%rbp), %rcx
	cmpq	(%r13), %rcx
	jne	LBB0_11
## %bb.10:
	movq	%rax, 8(%r15)
	movq	-48(%rbp), %rdi
	callq	_dst_mtu
	movl	%eax, 4(%r15)
LBB0_11:
	movl	%r12d, %edi
	callq	_be16_to_cpu
	movl	%eax, %ebx
	movq	_CNIC_LOCAL_PORT_MIN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jl	LBB0_15
## %bb.12:
	movq	_CNIC_LOCAL_PORT_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_15
## %bb.13:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_cnic_alloc_id
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	testl	%ebx, %ebx
	jne	LBB0_18
LBB0_15:
	movq	%r14, %rdi
	callq	_cnic_alloc_new_id
	cmpl	$-1, %eax
	je	LBB0_16
## %bb.17:
	movl	%eax, %edi
	callq	_cpu_to_be16
	movl	%eax, %r12d
LBB0_18:
	movl	%r12d, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movq	-48(%rbp), %rdi
	callq	_dst_release
LBB0_20:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SK_F_IPV6,4,2                  ## @SK_F_IPV6
	.comm	_CNIC_LOCAL_PORT_MIN,4,2        ## @CNIC_LOCAL_PORT_MIN
	.comm	_CNIC_LOCAL_PORT_MAX,4,2        ## @CNIC_LOCAL_PORT_MAX
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_cnic_get_route
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnic_get_route
_cnic_get_route:                        ; @cnic_get_route
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x19, x0
	ldr	x23, [x0, #40]
	ldr	x20, [x23, #8]
	str	xzr, [sp, #8]
	ldr	x8, [x1, #16]
Lloh0:
	adrp	x9, _AF_INET6@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_INET6@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x9, [x21, #48]
	cmp	x9, x8
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x24, _SK_F_IPV6@GOTPAGE
Lloh4:
	ldr	x24, [x24, _SK_F_IPV6@GOTPAGEOFF]
	ldr	w0, [x24]
	add	x22, x19, #32
	mov	x1, x22
	bl	_clear_bit
	ldr	w0, [x24]
	mov	x1, x22
	bl	_set_bit
	add	x0, x21, #48
	add	x1, sp, #8
	bl	_cnic_get_v6_route
	ldr	x0, [x19, #24]
	add	x1, x21, #60
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x21, #56]
	str	w8, [x19, #16]
	add	x8, x21, #24
	b	LBB0_6
LBB0_3:
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _AF_INET@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.4:
	ldr	x9, [x21, #32]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.5:
Lloh8:
	adrp	x8, _SK_F_IPV6@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SK_F_IPV6@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, x19, #32
	bl	_clear_bit
	add	x0, x21, #32
	add	x1, sp, #8
	bl	_cnic_get_v4_route
	ldr	w8, [x21, #44]
	ldr	x9, [x19, #24]
	str	w8, [x9]
	ldr	w8, [x21, #40]
	str	w8, [x19, #16]
	add	x8, x21, #8
LBB0_6:
	ldr	w21, [x8]
	str	xzr, [x19, #8]
	ldr	x8, [x23]
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_10
; %bb.7:
	ldr	x0, [x8]
	cbz	x0, LBB0_10
; %bb.8:
	mov	x1, sp
	bl	_cnic_get_vlan
	ldr	x8, [sp]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	str	x0, [x19, #8]
	ldr	x0, [sp, #8]
	bl	_dst_mtu
	str	w0, [x19, #4]
LBB0_10:
	mov	x0, x21
	bl	_be16_to_cpu
Lloh11:
	adrp	x8, _CNIC_LOCAL_PORT_MIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CNIC_LOCAL_PORT_MIN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, w8
	b.lt	LBB0_14
; %bb.11:
	mov	x22, x0
Lloh14:
	adrp	x8, _CNIC_LOCAL_PORT_MAX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CNIC_LOCAL_PORT_MAX@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_14
; %bb.12:
	mov	x0, x20
	mov	x1, x22
	bl	_cnic_alloc_id
	cbnz	x0, LBB0_14
; %bb.13:
	cbnz	w22, LBB0_16
LBB0_14:
	mov	x0, x20
	bl	_cnic_alloc_new_id
	cmn	w0, #1
	b.eq	LBB0_18
; %bb.15:
	bl	_cpu_to_be16
	mov	x21, x0
LBB0_16:
	mov	w20, #0
	str	w21, [x19]
	b	LBB0_19
LBB0_17:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_20
LBB0_18:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_19:
	ldr	x0, [sp, #8]
	bl	_dst_release
LBB0_20:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SK_F_IPV6,4,2                  ; @SK_F_IPV6
	.comm	_CNIC_LOCAL_PORT_MIN,4,2        ; @CNIC_LOCAL_PORT_MIN
	.comm	_CNIC_LOCAL_PORT_MAX,4,2        ; @CNIC_LOCAL_PORT_MAX
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_cnic_get_route
.subsections_via_symbols
