	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmet_execute_io_connect
_nvmet_execute_io_connect:              ## @nvmet_execute_io_connect
	.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	%rdi, %r14
	movq	8(%rdi), %r13
	movq	$0, -48(%rbp)
	movq	(%r13), %rdi
	callq	_le16_to_cpu
	movl	%eax, %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rax, %rdx
	movl	$16, %ecx
	callq	_nvmet_copy_from_sgl
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	movq	(%r14), %rax
	movl	$0, 4(%rax)
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_le16_to_cpu
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_warn
	movq	_NVME_SC_CONNECT_FORMAT@GOTPCREL(%rip), %rax
	movq	_NVME_SC_DNR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	jmp	LBB0_12
LBB0_1:
	movq	_NVME_SC_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_13
LBB0_5:
	movl	12(%r12), %ebx
	movl	8(%r12), %r13d
	movq	(%r12), %rdi
	callq	_le16_to_cpu
	leaq	-48(%rbp), %r8
	movl	%ebx, %edi
	movl	%r13d, %esi
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_nvmet_ctrl_find_get
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:
	movq	-48(%rbp), %rax
	movq	8(%rax), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r15d
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	callq	_pr_warn
	movq	_NVME_SC_CONNECT_INVALID_PARAM@GOTPCREL(%rip), %rax
	movq	_NVME_SC_DNR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_IPO_IATTR_CONNECT_SQE
	movq	(%r14), %rcx
	movl	%eax, 4(%rcx)
	jmp	LBB0_8
LBB0_9:
	movq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_nvmet_install_queue
	movl	%eax, %ebx
	movq	-48(%rbp), %rax
	movl	(%rax), %edx
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.10:
	movl	%edx, %edi
	callq	_cpu_to_le16
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
LBB0_8:
	movq	-48(%rbp), %rdi
	callq	_nvmet_ctrl_put
LBB0_12:
	movq	%r12, %rdi
	callq	_kfree
LBB0_13:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_nvmet_req_complete
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	callq	_pr_debug
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_NVME_SC_INTERNAL,4,2           ## @NVME_SC_INTERNAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid connect version (%d).\n"

	.comm	_NVME_SC_CONNECT_FORMAT,4,2     ## @NVME_SC_CONNECT_FORMAT
	.comm	_NVME_SC_DNR,4,2                ## @NVME_SC_DNR
L_.str.1:                               ## @.str.1
	.asciz	"invalid queue id (%d)\n"

	.comm	_NVME_SC_CONNECT_INVALID_PARAM,4,2 ## @NVME_SC_CONNECT_INVALID_PARAM
L_.str.2:                               ## @.str.2
	.asciz	"adding queue %d to ctrl %d.\n"

	.no_dead_strip	_nvmet_execute_io_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmet_execute_io_connect
_nvmet_execute_io_connect:              ; @nvmet_execute_io_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldr	x23, [x0, #8]
	str	xzr, [sp, #8]
	ldr	x0, [x23]
	bl	_le16_to_cpu
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kmalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	mov	w3, #16
	bl	_nvmet_copy_from_sgl
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.2:
	ldr	x8, [x19]
	str	wzr, [x8, #4]
	ldr	x0, [x23, #8]
	cbz	x0, LBB0_5
; %bb.3:
	bl	_le16_to_cpu
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
Lloh5:
	adrp	x8, _NVME_SC_CONNECT_FORMAT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NVME_SC_CONNECT_FORMAT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _NVME_SC_DNR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NVME_SC_DNR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w22, w9, w8
	b	LBB0_11
LBB0_4:
Lloh11:
	adrp	x8, _NVME_SC_INTERNAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NVME_SC_INTERNAL@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
	b	LBB0_12
LBB0_5:
	ldp	w23, w22, [x20, #8]
	ldr	x0, [x20]
	bl	_le16_to_cpu
	mov	x2, x0
	add	x4, sp, #8
	mov	x0, x22
	mov	x1, x23
	mov	x3, x19
	bl	_nvmet_ctrl_find_get
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.6:
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	cmp	w21, w8
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.7:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_pr_warn
Lloh16:
	adrp	x8, _NVME_SC_CONNECT_INVALID_PARAM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NVME_SC_CONNECT_INVALID_PARAM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _NVME_SC_DNR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _NVME_SC_DNR@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w22, w9, w8
	mov	x0, x21
	bl	_IPO_IATTR_CONNECT_SQE
	ldr	x8, [x19]
	str	w0, [x8, #4]
	b	LBB0_10
LBB0_8:
	ldr	x0, [sp, #8]
	mov	x1, x19
	bl	_nvmet_install_queue
	mov	x22, x0
	ldr	x8, [sp, #8]
	ldr	w2, [x8]
	cbz	w0, LBB0_13
; %bb.9:
	mov	x0, x2
	bl	_cpu_to_le16
	ldr	x8, [x19]
	str	w0, [x8]
LBB0_10:
	ldr	x0, [sp, #8]
	bl	_nvmet_ctrl_put
LBB0_11:
	mov	x0, x20
	bl	_kfree
LBB0_12:
	mov	x0, x19
	mov	x1, x22
	bl	_nvmet_req_complete
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_pr_debug
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_NVME_SC_INTERNAL,4,2           ; @NVME_SC_INTERNAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid connect version (%d).\n"

	.comm	_NVME_SC_CONNECT_FORMAT,4,2     ; @NVME_SC_CONNECT_FORMAT
	.comm	_NVME_SC_DNR,4,2                ; @NVME_SC_DNR
l_.str.1:                               ; @.str.1
	.asciz	"invalid queue id (%d)\n"

	.comm	_NVME_SC_CONNECT_INVALID_PARAM,4,2 ; @NVME_SC_CONNECT_INVALID_PARAM
l_.str.2:                               ; @.str.2
	.asciz	"adding queue %d to ctrl %d.\n"

	.no_dead_strip	_nvmet_execute_io_connect
.subsections_via_symbols
