	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_route_initialize
_ql_route_initialize:                   ## @ql_route_initialize
	.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	%rdi, %r14
	callq	_ql_clear_routing_entries
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.1:
	movq	_SEM_RT_IDX_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_ql_sem_spinlock
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.2:
	movq	_RT_IDX_IP_CSUM_ERR_SLOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RT_IDX_IP_CSUM_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_ql_set_routing_reg
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	leaq	L_.str(%rip), %rcx
	jmp	LBB0_14
LBB0_4:
	movq	_RT_IDX_TCP_UDP_CSUM_ERR_SLOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RT_IDX_TU_CSUM_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_ql_set_routing_reg
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_14
LBB0_6:
	movq	_RT_IDX_BCAST_SLOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RT_IDX_BCAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_ql_set_routing_reg
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_14
LBB0_8:
	cmpl	$2, (%r14)
	jl	LBB0_11
## %bb.9:
	movq	_RT_IDX_RSS_MATCH_SLOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RT_IDX_RSS_MATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_ql_set_routing_reg
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	leaq	L_.str.3(%rip), %rcx
	jmp	LBB0_14
LBB0_11:
	movq	_RT_IDX_CAM_HIT_SLOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RT_IDX_CAM_HIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_ql_set_routing_reg
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movl	%eax, %ebx
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	leaq	L_.str.4(%rip), %rcx
LBB0_14:
	movq	%r14, %rdi
	callq	_netif_err
LBB0_15:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_ql_sem_unlock
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_SEM_RT_IDX_MASK,4,2            ## @SEM_RT_IDX_MASK
	.comm	_RT_IDX_IP_CSUM_ERR_SLOT,4,2    ## @RT_IDX_IP_CSUM_ERR_SLOT
	.comm	_RT_IDX_IP_CSUM_ERR,4,2         ## @RT_IDX_IP_CSUM_ERR
	.comm	_ifup,4,2                       ## @ifup
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to init routing register for IP CSUM error packets.\n"

	.comm	_RT_IDX_TCP_UDP_CSUM_ERR_SLOT,4,2 ## @RT_IDX_TCP_UDP_CSUM_ERR_SLOT
	.comm	_RT_IDX_TU_CSUM_ERR,4,2         ## @RT_IDX_TU_CSUM_ERR
L_.str.1:                               ## @.str.1
	.asciz	"Failed to init routing register for TCP/UDP CSUM error packets.\n"

	.comm	_RT_IDX_BCAST_SLOT,4,2          ## @RT_IDX_BCAST_SLOT
	.comm	_RT_IDX_BCAST,4,2               ## @RT_IDX_BCAST
L_.str.2:                               ## @.str.2
	.asciz	"Failed to init routing register for broadcast packets.\n"

	.comm	_RT_IDX_RSS_MATCH_SLOT,4,2      ## @RT_IDX_RSS_MATCH_SLOT
	.comm	_RT_IDX_RSS_MATCH,4,2           ## @RT_IDX_RSS_MATCH
L_.str.3:                               ## @.str.3
	.asciz	"Failed to init routing register for MATCH RSS packets.\n"

	.comm	_RT_IDX_CAM_HIT_SLOT,4,2        ## @RT_IDX_CAM_HIT_SLOT
	.comm	_RT_IDX_CAM_HIT,4,2             ## @RT_IDX_CAM_HIT
L_.str.4:                               ## @.str.4
	.asciz	"Failed to init routing register for CAM packets.\n"

	.no_dead_strip	_ql_route_initialize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_route_initialize
_ql_route_initialize:                   ; @ql_route_initialize
	.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
	mov	x19, x0
	bl	_ql_clear_routing_entries
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.1:
Lloh0:
	adrp	x21, _SEM_RT_IDX_MASK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SEM_RT_IDX_MASK@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ql_sem_spinlock
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.2:
Lloh2:
	adrp	x8, _RT_IDX_IP_CSUM_ERR_SLOT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RT_IDX_IP_CSUM_ERR_SLOT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _RT_IDX_IP_CSUM_ERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RT_IDX_IP_CSUM_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_ql_set_routing_reg
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh8:
	adrp	x8, _ifup@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_8
LBB0_4:
Lloh13:
	adrp	x8, _RT_IDX_TCP_UDP_CSUM_ERR_SLOT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RT_IDX_TCP_UDP_CSUM_ERR_SLOT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _RT_IDX_TU_CSUM_ERR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RT_IDX_TU_CSUM_ERR@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_ql_set_routing_reg
	cbz	w0, LBB0_6
; %bb.5:
	mov	x20, x0
Lloh19:
	adrp	x8, _ifup@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
Lloh22:
	adrp	x3, l_.str.1@PAGE
Lloh23:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_6:
Lloh24:
	adrp	x8, _RT_IDX_BCAST_SLOT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RT_IDX_BCAST_SLOT@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _RT_IDX_BCAST@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RT_IDX_BCAST@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_ql_set_routing_reg
	cbz	w0, LBB0_11
; %bb.7:
	mov	x20, x0
Lloh30:
	adrp	x8, _ifup@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
Lloh33:
	adrp	x3, l_.str.2@PAGE
Lloh34:
	add	x3, x3, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_netif_err
LBB0_9:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ql_sem_unlock
LBB0_10:
	mov	x0, x20
	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_11:
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_14
; %bb.12:
Lloh35:
	adrp	x8, _RT_IDX_RSS_MATCH_SLOT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _RT_IDX_RSS_MATCH_SLOT@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x8, _RT_IDX_RSS_MATCH@GOTPAGE
Lloh39:
	ldr	x8, [x8, _RT_IDX_RSS_MATCH@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_ql_set_routing_reg
	cbz	w0, LBB0_14
; %bb.13:
	mov	x20, x0
Lloh41:
	adrp	x8, _ifup@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
Lloh44:
	adrp	x3, l_.str.3@PAGE
Lloh45:
	add	x3, x3, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_14:
Lloh46:
	adrp	x8, _RT_IDX_CAM_HIT_SLOT@GOTPAGE
Lloh47:
	ldr	x8, [x8, _RT_IDX_CAM_HIT_SLOT@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
Lloh49:
	adrp	x8, _RT_IDX_CAM_HIT@GOTPAGE
Lloh50:
	ldr	x8, [x8, _RT_IDX_CAM_HIT@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_ql_set_routing_reg
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.15:
Lloh52:
	adrp	x8, _ifup@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
Lloh55:
	adrp	x3, l_.str.4@PAGE
Lloh56:
	add	x3, x3, l_.str.4@PAGEOFF
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_SEM_RT_IDX_MASK,4,2            ; @SEM_RT_IDX_MASK
	.comm	_RT_IDX_IP_CSUM_ERR_SLOT,4,2    ; @RT_IDX_IP_CSUM_ERR_SLOT
	.comm	_RT_IDX_IP_CSUM_ERR,4,2         ; @RT_IDX_IP_CSUM_ERR
	.comm	_ifup,4,2                       ; @ifup
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to init routing register for IP CSUM error packets.\n"

	.comm	_RT_IDX_TCP_UDP_CSUM_ERR_SLOT,4,2 ; @RT_IDX_TCP_UDP_CSUM_ERR_SLOT
	.comm	_RT_IDX_TU_CSUM_ERR,4,2         ; @RT_IDX_TU_CSUM_ERR
l_.str.1:                               ; @.str.1
	.asciz	"Failed to init routing register for TCP/UDP CSUM error packets.\n"

	.comm	_RT_IDX_BCAST_SLOT,4,2          ; @RT_IDX_BCAST_SLOT
	.comm	_RT_IDX_BCAST,4,2               ; @RT_IDX_BCAST
l_.str.2:                               ; @.str.2
	.asciz	"Failed to init routing register for broadcast packets.\n"

	.comm	_RT_IDX_RSS_MATCH_SLOT,4,2      ; @RT_IDX_RSS_MATCH_SLOT
	.comm	_RT_IDX_RSS_MATCH,4,2           ; @RT_IDX_RSS_MATCH
l_.str.3:                               ; @.str.3
	.asciz	"Failed to init routing register for MATCH RSS packets.\n"

	.comm	_RT_IDX_CAM_HIT_SLOT,4,2        ; @RT_IDX_CAM_HIT_SLOT
	.comm	_RT_IDX_CAM_HIT,4,2             ; @RT_IDX_CAM_HIT
l_.str.4:                               ; @.str.4
	.asciz	"Failed to init routing register for CAM packets.\n"

	.no_dead_strip	_ql_route_initialize
.subsections_via_symbols
