	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_change_l2params          ## -- Begin function i40iw_change_l2params
	.p2align	4, 0x90
_i40iw_change_l2params:                 ## @i40iw_change_l2params
	.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	%rdi, %r12
	movq	16(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rax
	cmpq	%rax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rax, (%r12)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_i40iw_reinitialize_ieq
LBB0_2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	callq	_i40iw_fill_qos_list
	movq	_I40IW_MAX_USER_PRIORITY@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_10
## %bb.3:
	movq	8(%r12), %rax
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r12), %rax
	leaq	(%rax,%r15), %rdi
	addq	$8, %rdi
	callq	_spin_unlock_irqrestore
	movq	8(%r12), %rax
	movq	%r13, (%rax,%r15)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	incq	%r15
	movq	_I40IW_MAX_USER_PRIORITY@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %r15
	jge	LBB0_10
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	(%rcx,%r15,8), %r13
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	shlq	$4, %r15
	cmpq	%r13, (%rax,%r15)
	movl	$1, %ecx
	cmovnel	%ecx, %r14d
	leaq	(%rax,%r15), %rdi
	addq	$8, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r12), %rax
	leaq	(%rax,%r15), %rdi
	addq	$12, %rdi
	xorl	%esi, %esi
	callq	_i40iw_get_qp
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	8(%r12), %rax
	leaq	(%rax,%r15), %rdi
	addq	$12, %rdi
	movq	%rbx, %rsi
	callq	_i40iw_get_qp
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_9
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	%r13, (%rbx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_i40iw_qp_suspend_resume
	jmp	LBB0_8
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_MAX_USER_PRIORITY,4,2    ## @I40IW_MAX_USER_PRIORITY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_change_l2params          ; -- Begin function i40iw_change_l2params
	.p2align	2
_i40iw_change_l2params:                 ; @i40iw_change_l2params
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #16]
	ldr	x9, [x0]
	ldr	x8, [x1]
	cmp	x9, x8
	b.eq	LBB0_2
; %bb.1:
	str	x8, [x20]
	mov	x0, x21
	bl	_i40iw_reinitialize_ieq
LBB0_2:
	ldr	x0, [x19, #8]
	bl	_i40iw_fill_qos_list
Lloh0:
	adrp	x23, _I40IW_MAX_USER_PRIORITY@GOTPAGE
Lloh1:
	ldr	x23, [x23, _I40IW_MAX_USER_PRIORITY@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.3:
	mov	x24, #0
	mov	w25, #0
	ldr	x8, [x20, #8]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, x27
	add	x0, x8, #8
	bl	_spin_unlock_irqrestore
	ldr	x8, [x20, #8]
	str	x26, [x8, x27]
	add	x24, x24, #1
	ldrsw	x9, [x23]
	cmp	x24, x9
	b.ge	LBB0_10
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x9, [x19, #8]
	ldr	x26, [x9, x24, lsl #3]
	lsl	x27, x24, #4
	add	x0, x8, x27
	ldr	x8, [x0], #8
	cmp	x8, x26
	csinc	w25, w25, wzr, eq
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #8]
	add	x8, x8, x27
	add	x0, x8, #12
	mov	x1, #0
	bl	_i40iw_get_qp
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x20, #8]
	add	x8, x8, x24, lsl #4
	add	x0, x8, #12
	mov	x1, x22
	bl	_i40iw_get_qp
	mov	x22, x0
	cbz	x0, LBB0_4
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	w25, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	str	x26, [x22]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #1
	bl	_i40iw_qp_suspend_resume
	b	LBB0_7
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_MAX_USER_PRIORITY,4,2    ; @I40IW_MAX_USER_PRIORITY
.subsections_via_symbols
