	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_calc_irq_sets
_nvme_calc_irq_sets:                    ## @nvme_calc_irq_sets
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	16(%rdi), %r8
	xorl	%r9d, %r9d
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	cmpl	$1, %esi
	je	LBB0_5
## %bb.3:
	movq	_write_queues@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, %edx
	je	LBB0_5
## %bb.4:
	movl	%esi, %ecx
	subl	%edx, %ecx
	movl	$1, %r9d
	cmoval	%ecx, %r9d
	jmp	LBB0_5
LBB0_1:
	movl	$1, %esi
LBB0_5:
	subl	%r9d, %esi
	movq	(%r8), %rcx
	movq	_HCTX_TYPE_DEFAULT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%esi, (%rcx,%rdx,4)
	movq	(%rdi), %rax
	movl	%esi, (%rax,%rdx,4)
	movq	_HCTX_TYPE_READ@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%r9d, (%rcx,%rdx,4)
	movl	%r9d, (%rax,%rdx,4)
	cmpl	$1, %r9d
	movl	$2, %eax
	sbbl	$0, %eax
	movl	%eax, 8(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_write_queues,4,2               ## @write_queues
	.comm	_HCTX_TYPE_DEFAULT,8,3          ## @HCTX_TYPE_DEFAULT
	.comm	_HCTX_TYPE_READ,8,3             ## @HCTX_TYPE_READ
	.no_dead_strip	_nvme_calc_irq_sets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_calc_irq_sets
_nvme_calc_irq_sets:                    ; @nvme_calc_irq_sets
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0, #16]
	mov	w8, #1
	cbz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x10, _write_queues@GOTPAGE
Lloh1:
	ldr	x10, [x10, _write_queues@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	subs	w11, w1, w10
	csinc	w11, w11, wzr, hi
	cmp	w10, #0
	csel	w10, wzr, w11, eq
	cmp	w1, #1
	csel	w10, wzr, w10, eq
	b	LBB0_3
LBB0_2:
	mov	w10, #0
	mov	w1, #1
LBB0_3:
	sub	w11, w1, w10
	ldr	x9, [x9]
Lloh3:
	adrp	x12, _HCTX_TYPE_DEFAULT@GOTPAGE
Lloh4:
	ldr	x12, [x12, _HCTX_TYPE_DEFAULT@GOTPAGEOFF]
Lloh5:
	ldr	x12, [x12]
	lsl	x12, x12, #2
	str	w11, [x9, x12]
	ldr	x13, [x0]
	str	w11, [x13, x12]
Lloh6:
	adrp	x11, _HCTX_TYPE_READ@GOTPAGE
Lloh7:
	ldr	x11, [x11, _HCTX_TYPE_READ@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	lsl	x11, x11, #2
	str	w10, [x9, x11]
	str	w10, [x13, x11]
	cmp	w10, #0
	cinc	w8, w8, ne
	str	w8, [x0, #8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_write_queues,4,2               ; @write_queues
	.comm	_HCTX_TYPE_DEFAULT,8,3          ; @HCTX_TYPE_DEFAULT
	.comm	_HCTX_TYPE_READ,8,3             ; @HCTX_TYPE_READ
	.no_dead_strip	_nvme_calc_irq_sets
.subsections_via_symbols
