	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_tcp_set_io_queues
_nvme_tcp_set_io_queues:                ## @nvme_tcp_set_io_queues
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_to_tcp_ctrl
	movq	%rax, %r14
	movq	(%rbx), %rbx
	cmpl	$0, (%rbx)
	movl	4(%rbx), %edi
	je	LBB0_3
## %bb.1:
	cmpl	%r15d, %edi
	jae	LBB0_3
## %bb.2:
	movq	(%r14), %rax
	movq	_HCTX_TYPE_READ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%edi, (%rax,%rcx,4)
	subl	%edi, %r15d
	movl	(%rbx), %edi
LBB0_3:
	movl	%r15d, %esi
	callq	_min
	movq	(%r14), %rcx
	movq	_HCTX_TYPE_DEFAULT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	subl	%eax, %r15d
	movl	8(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_6
## %bb.4:
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.5:
	movl	%r15d, %esi
	callq	_min
	movq	(%r14), %rcx
	movq	_HCTX_TYPE_POLL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCTX_TYPE_READ,8,3             ## @HCTX_TYPE_READ
	.comm	_HCTX_TYPE_DEFAULT,8,3          ## @HCTX_TYPE_DEFAULT
	.comm	_HCTX_TYPE_POLL,8,3             ## @HCTX_TYPE_POLL
	.no_dead_strip	_nvme_tcp_set_io_queues
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_tcp_set_io_queues
_nvme_tcp_set_io_queues:                ; @nvme_tcp_set_io_queues
	.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
	mov	x20, x1
	mov	x21, x0
	bl	_to_tcp_ctrl
	mov	x19, x0
	ldr	x21, [x21]
	ldp	w8, w0, [x21]
	cmp	w8, #0
	ccmp	w0, w20, #2, ne
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _HCTX_TYPE_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCTX_TYPE_READ@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh2:
	ldr	x8, [x8]
	str	w0, [x9, x8, lsl #2]
	sub	w20, w20, w0
	ldr	w0, [x21]
LBB0_2:
	mov	x1, x20
	bl	_min
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _HCTX_TYPE_DEFAULT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HCTX_TYPE_DEFAULT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	str	w0, [x8, x9, lsl #2]
	sub	w1, w20, w0
	ldr	w0, [x21, #8]
	cmp	w0, #0
	ccmp	w1, #0, #4, ne
	b.eq	LBB0_4
; %bb.3:
	bl	_min
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _HCTX_TYPE_POLL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HCTX_TYPE_POLL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	str	w0, [x8, x9, lsl #2]
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HCTX_TYPE_READ,8,3             ; @HCTX_TYPE_READ
	.comm	_HCTX_TYPE_DEFAULT,8,3          ; @HCTX_TYPE_DEFAULT
	.comm	_HCTX_TYPE_POLL,8,3             ; @HCTX_TYPE_POLL
	.no_dead_strip	_nvme_tcp_set_io_queues
.subsections_via_symbols
