	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_qp_add_qos               ## -- Begin function i40iw_qp_add_qos
	.p2align	4, 0x90
_i40iw_qp_add_qos:                      ## @i40iw_qp_add_qos
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	24(%rdi), %r14
	leaq	(%rax,%rax,2), %rdi
	shlq	$2, %rdi
	addq	(%r14), %rdi
	callq	_spin_lock_irqsave
	movq	(%r14), %rax
	movq	8(%rbx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	8(%rax,%rcx,4), %edx
	movl	%edx, 20(%rbx)
	leaq	16(%rbx), %rdi
	leaq	(%rax,%rcx,4), %rsi
	addq	$4, %rsi
	callq	_list_add
	movl	$1, (%rbx)
	movq	8(%rbx), %rax
	leaq	(%rax,%rax,2), %rdi
	shlq	$2, %rdi
	addq	(%r14), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_qp_add_qos               ; -- Begin function i40iw_qp_add_qos
	.p2align	2
_i40iw_qp_add_qos:                      ; @i40iw_qp_add_qos
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	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_2:
	mov	x19, x0
	ldr	x20, [x0, #24]
	ldr	x8, [x20]
	ldr	x9, [x0, #8]
	mov	w21, #12
	madd	x0, x9, x21, x8
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
	ldr	x9, [x19, #8]
	madd	x8, x9, x21, x8
	ldr	w9, [x8, #8]
	str	w9, [x19, #20]
	add	x0, x19, #16
	add	x1, x8, #4
	bl	_list_add
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x20]
	ldr	x9, [x19, #8]
	madd	x0, x9, x21, x8
	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
	b	_spin_unlock_irqrestore
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
