	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_update_ring_coalescing
_ql_update_ring_coalescing:             ## @ql_update_ring_coalescing
	.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	%rdi, %r12
	movl	48(%rdi), %edi
	callq	_netif_running
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_15
## %bb.1:
	movq	(%r12), %r15
	movq	56(%r12), %rbx
	movq	16(%rbx,%r15,4), %rdi
	callq	_le16_to_cpu
	cmpq	8(%r12), %rax
	jne	LBB0_3
## %bb.2:
	movq	8(%rbx,%r15,4), %rdi
	callq	_le16_to_cpu
	cmpq	16(%r12), %rax
	je	LBB0_8
LBB0_3:
	movq	(%r12), %rax
	cmpl	%eax, 24(%r12)
	jle	LBB0_8
## %bb.4:
	movslq	%eax, %r13
	leaq	(,%r13,4), %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdi
	movq	56(%r12), %r14
	leaq	(%r14,%rbx), %r15
	callq	_cpu_to_le16
	movq	%rax, 16(%r14,%rbx)
	movq	16(%r12), %rdi
	callq	_cpu_to_le16
	movq	%rax, 8(%r14,%rbx)
	movq	_FLAGS_LI@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	%r8, (%r14,%rbx)
	movq	_CFG_LCQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$24, %edx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_ql_write_cfg
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
	movslq	24(%r12), %rax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_6
LBB0_8:
	movq	56(%r12), %rbx
	movq	16(%rbx), %rdi
	callq	_le16_to_cpu
	cmpq	32(%r12), %rax
	jne	LBB0_10
## %bb.9:
	movq	8(%rbx), %rdi
	callq	_le16_to_cpu
	cmpq	40(%r12), %rax
	je	LBB0_14
LBB0_10:
	cmpq	$0, (%r12)
	movl	$0, %r14d
	je	LBB0_15
## %bb.11:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rdi
	movq	56(%r12), %r13
	leaq	(%rbx,%r13), %r14
	callq	_cpu_to_le16
	movq	%rax, 16(%r13,%rbx)
	movq	40(%r12), %rdi
	callq	_cpu_to_le16
	movq	%rax, 8(%r13,%rbx)
	movq	_FLAGS_LI@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	%r8, (%r13,%rbx)
	movq	_CFG_LCQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$24, %edx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_ql_write_cfg
	testl	%eax, %eax
	jne	LBB0_7
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%r15
	addq	$4, %rbx
	cmpq	%r15, (%r12)
	ja	LBB0_12
LBB0_14:
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_7:
	movl	%eax, %r14d
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	48(%r12), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	callq	_netif_err
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAGS_LI,8,3                   ## @FLAGS_LI
	.comm	_CFG_LCQ,4,2                    ## @CFG_LCQ
	.comm	_ifup,4,2                       ## @ifup
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to load CQICB.\n"

	.no_dead_strip	_ql_update_ring_coalescing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_update_ring_coalescing
_ql_update_ring_coalescing:             ; @ql_update_ring_coalescing
	.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	x19, x0
	ldr	w0, [x0, #48]
	bl	_netif_running
	cbz	w0, LBB0_13
; %bb.1:
	ldr	x8, [x19, #56]
	ldr	x9, [x19]
	add	x20, x8, x9, lsl #2
	ldr	x0, [x20, #16]
	bl	_le16_to_cpu
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	ldr	x0, [x20, #8]
	bl	_le16_to_cpu
	ldr	x8, [x19, #16]
	cmp	x0, x8
	b.eq	LBB0_7
LBB0_3:
	ldr	x8, [x19]
	ldr	w9, [x19, #24]
	cmp	w9, w8
	b.le	LBB0_7
; %bb.4:
	sxtw	x21, w8
	lsl	x22, x21, #2
Lloh0:
	adrp	x23, _FLAGS_LI@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FLAGS_LI@GOTPAGEOFF]
Lloh2:
	adrp	x24, _CFG_LCQ@GOTPAGE
Lloh3:
	ldr	x24, [x24, _CFG_LCQ@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	add	x20, x8, x22
	ldr	x0, [x19, #8]
	bl	_cpu_to_le16
	str	x0, [x20, #16]
	ldr	x0, [x19, #16]
	bl	_cpu_to_le16
	str	x0, [x20, #8]
	ldr	x4, [x23]
	str	x4, [x20]
	ldr	w3, [x24]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #24
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_ql_write_cfg
	cbnz	w0, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19, #24]
	add	x22, x22, #4
	cmp	x21, x8
	b.lt	LBB0_5
LBB0_7:
	ldr	x20, [x19, #56]
	ldr	x0, [x20, #16]
	bl	_le16_to_cpu
	ldr	x8, [x19, #32]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.8:
	ldr	x0, [x20, #8]
	bl	_le16_to_cpu
	ldr	x8, [x19, #40]
	cmp	x0, x8
	b.eq	LBB0_13
LBB0_9:
	ldr	x8, [x19]
	cbz	x8, LBB0_13
; %bb.10:
	mov	x21, #0
	mov	x22, #0
Lloh4:
	adrp	x23, _FLAGS_LI@GOTPAGE
Lloh5:
	ldr	x23, [x23, _FLAGS_LI@GOTPAGEOFF]
Lloh6:
	adrp	x24, _CFG_LCQ@GOTPAGE
Lloh7:
	ldr	x24, [x24, _CFG_LCQ@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	add	x20, x8, x21
	ldr	x0, [x19, #32]
	bl	_cpu_to_le16
	str	x0, [x20, #16]
	ldr	x0, [x19, #40]
	bl	_cpu_to_le16
	str	x0, [x20, #8]
	ldr	x4, [x23]
	str	x4, [x20]
	ldr	w3, [x24]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #24
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_ql_write_cfg
	cbnz	w0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x22, x22, #1
	ldr	x8, [x19]
	add	x21, x21, #4
	cmp	x8, x22
	b.hi	LBB0_11
LBB0_13:
	mov	w20, #0
	b	LBB0_15
LBB0_14:
	mov	x20, x0
Lloh8:
	adrp	x8, _ifup@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x19, #48]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
LBB0_15:
	mov	x0, x20
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAGS_LI,8,3                   ; @FLAGS_LI
	.comm	_CFG_LCQ,4,2                    ; @CFG_LCQ
	.comm	_ifup,4,2                       ; @ifup
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to load CQICB.\n"

	.no_dead_strip	_ql_update_ring_coalescing
.subsections_via_symbols
