	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_eth_queue_qid_usage_add
_qed_eth_queue_qid_usage_add:           ## @qed_eth_queue_qid_usage_add
	.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	%rsi, %rbx
	movq	%rdi, %r13
	movq	(%rdi), %r14
	movq	8(%rsi), %r12
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%r14), %rcx
	cmpq	%rcx, %r12
	jae	LBB0_1
## %bb.2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %rax
	movl	(%rax,%r12,4), %edi
	movq	_MAX_QUEUES_PER_QZONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_find_first_zero_bit
	movq	%rax, %r13
	xorl	%ebx, %ebx
	movq	_MAX_QUEUES_PER_QZONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jge	LBB0_4
## %bb.3:
	movq	16(%r14), %rax
	movl	(%rax,%r12,4), %esi
	movq	%r13, %rdi
	callq	___set_bit
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	movl	$1, %ebx
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_DP_NOTICE
	xorl	%ebx, %ebx
LBB0_4:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Requested to increase usage for qzone %04x out of %08x\n"

	.comm	_MAX_QUEUES_PER_QZONE,8,3       ## @MAX_QUEUES_PER_QZONE
	.no_dead_strip	_qed_eth_queue_qid_usage_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_eth_queue_qid_usage_add
_qed_eth_queue_qid_usage_add:           ; @qed_eth_queue_qid_usage_add
	.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	x20, x1
	mov	x22, x0
	ldr	x23, [x0]
	ldr	x21, [x1, #8]
	add	x19, x23, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x3, [x23]
	cmp	x21, x3
	b.hs	LBB0_3
; %bb.1:
	ldr	x8, [x23, #16]
	ldr	w0, [x8, x21, lsl #2]
Lloh0:
	adrp	x24, _MAX_QUEUES_PER_QZONE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MAX_QUEUES_PER_QZONE@GOTPAGEOFF]
	ldr	x1, [x24]
	bl	_find_first_zero_bit
	ldr	x8, [x24]
	cmp	x0, x8
	b.ge	LBB0_4
; %bb.2:
	mov	x22, x0
	ldr	x8, [x23, #16]
	ldr	w1, [x8, x21, lsl #2]
	bl	___set_bit
	str	x22, [x20]
	mov	w20, #1
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_DP_NOTICE
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Requested to increase usage for qzone %04x out of %08x\n"

	.comm	_MAX_QUEUES_PER_QZONE,8,3       ; @MAX_QUEUES_PER_QZONE
	.no_dead_strip	_qed_eth_queue_qid_usage_add
.subsections_via_symbols
