	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_get_routing_entries
_ql_get_routing_entries:                ## @ql_get_routing_entries
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_SEM_RT_IDX_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_ql_sem_spinlock
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.1:
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ql_get_routing_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.3:
	movl	-36(%rbp), %eax
	movl	%eax, (%r14)
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_ql_get_routing_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.4:
	movl	-36(%rbp), %eax
	movl	%eax, 4(%r14)
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_ql_get_routing_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.5:
	movl	-36(%rbp), %eax
	movl	%eax, 8(%r14)
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_ql_get_routing_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.6:
	movl	-36(%rbp), %eax
	movl	%eax, 12(%r14)
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_ql_get_routing_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.7:
	movl	-36(%rbp), %eax
	movl	%eax, 16(%r14)
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	movl	$5, %esi
	callq	_ql_get_routing_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.8:
	movl	-36(%rbp), %eax
	movl	%eax, 20(%r14)
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	movl	$6, %esi
	callq	_ql_get_routing_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.9:
	movl	-36(%rbp), %eax
	movl	%eax, 24(%r14)
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	movl	$7, %esi
	callq	_ql_get_routing_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.10:
	movl	-36(%rbp), %eax
	movl	%eax, 28(%r14)
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_ql_get_routing_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.11:
	movl	-36(%rbp), %eax
	movl	%eax, 32(%r14)
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	movl	$9, %esi
	callq	_ql_get_routing_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.12:
	movl	-36(%rbp), %eax
	movl	%eax, 36(%r14)
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_ql_get_routing_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.13:
	movl	-36(%rbp), %eax
	movl	%eax, 40(%r14)
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	movl	$11, %esi
	callq	_ql_get_routing_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.14:
	movl	-36(%rbp), %eax
	movl	%eax, 44(%r14)
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	movl	$12, %esi
	callq	_ql_get_routing_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.15:
	movl	-36(%rbp), %eax
	movl	%eax, 48(%r14)
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	movl	$13, %esi
	callq	_ql_get_routing_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.16:
	movl	-36(%rbp), %eax
	movl	%eax, 52(%r14)
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	movl	$14, %esi
	callq	_ql_get_routing_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.17:
	movl	-36(%rbp), %eax
	movl	%eax, 56(%r14)
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	movl	$15, %esi
	callq	_ql_get_routing_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_18
LBB0_2:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	callq	_netif_err
LBB0_19:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_ql_sem_unlock
LBB0_20:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	-36(%rbp), %eax
	movl	%eax, 60(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_SEM_RT_IDX_MASK,4,2            ## @SEM_RT_IDX_MASK
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed read of routing index register.\n"

	.no_dead_strip	_ql_get_routing_entries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_get_routing_entries
_ql_get_routing_entries:                ; @ql_get_routing_entries
	.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
Lloh0:
	adrp	x22, _SEM_RT_IDX_MASK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SEM_RT_IDX_MASK@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_ql_sem_spinlock
	mov	x21, x0
	cbnz	w0, LBB0_19
; %bb.1:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #0
	bl	_ql_get_routing_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.2:
	ldr	w8, [sp, #12]
	str	w8, [x20]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #1
	bl	_ql_get_routing_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.3:
	ldr	w8, [sp, #12]
	str	w8, [x20, #4]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #2
	bl	_ql_get_routing_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.4:
	ldr	w8, [sp, #12]
	str	w8, [x20, #8]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #3
	bl	_ql_get_routing_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.5:
	ldr	w8, [sp, #12]
	str	w8, [x20, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #4
	bl	_ql_get_routing_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.6:
	ldr	w8, [sp, #12]
	str	w8, [x20, #16]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #5
	bl	_ql_get_routing_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.7:
	ldr	w8, [sp, #12]
	str	w8, [x20, #20]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #6
	bl	_ql_get_routing_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.8:
	ldr	w8, [sp, #12]
	str	w8, [x20, #24]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #7
	bl	_ql_get_routing_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.9:
	ldr	w8, [sp, #12]
	str	w8, [x20, #28]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #8
	bl	_ql_get_routing_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.10:
	ldr	w8, [sp, #12]
	str	w8, [x20, #32]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #9
	bl	_ql_get_routing_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.11:
	ldr	w8, [sp, #12]
	str	w8, [x20, #36]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #10
	bl	_ql_get_routing_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.12:
	ldr	w8, [sp, #12]
	str	w8, [x20, #40]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #11
	bl	_ql_get_routing_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.13:
	ldr	w8, [sp, #12]
	str	w8, [x20, #44]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #12
	bl	_ql_get_routing_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.14:
	ldr	w8, [sp, #12]
	str	w8, [x20, #48]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #13
	bl	_ql_get_routing_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.15:
	ldr	w8, [sp, #12]
	str	w8, [x20, #52]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #14
	bl	_ql_get_routing_reg
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.16:
	ldr	w8, [sp, #12]
	str	w8, [x20, #56]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #15
	bl	_ql_get_routing_reg
	mov	x21, x0
	cbz	w0, LBB0_20
LBB0_17:
Lloh2:
	adrp	x8, _drv@GOTPAGE
Lloh3:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
LBB0_18:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ql_sem_unlock
LBB0_19:
	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
	add	sp, sp, #64
	ret
LBB0_20:
	ldr	w8, [sp, #12]
	str	w8, [x20, #60]
	b	LBB0_18
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SEM_RT_IDX_MASK,4,2            ; @SEM_RT_IDX_MASK
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed read of routing index register.\n"

	.no_dead_strip	_ql_get_routing_entries
.subsections_via_symbols
