	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_init_subnqn
_nvme_init_subnqn:                      ## @nvme_init_subnqn
	.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	%rdx, %r13
	movq	%rdi, %r14
	movq	_NVME_QUIRK_IGNORE_DEV_SUBNQN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_1
LBB0_5:
	movl	(%r14), %r15d
	movq	_NVMF_NQN_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	8(%r13), %edi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	movl	12(%r13), %edi
	callq	_le16_to_cpu
	leaq	L_.str.1(%rip), %rdx
	movl	%r15d, %edi
	movq	%r12, %rsi
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_snprintf
	movl	%eax, %ebx
	movl	(%r14), %edi
	addl	%eax, %edi
	movl	4(%r13), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	(%r14), %eax
	leal	(%rbx,%rax), %edi
	addl	$4, %edi
	movl	(%r13), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	(%r14), %eax
	leal	(%rbx,%rax), %edi
	addl	$8, %edi
	movl	$-4, %edx
	subl	%ebx, %edx
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
LBB0_1:
	movq	%rsi, %r15
	movl	16(%r13), %edi
	movq	_NVMF_NQN_SIZE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	callq	_strnlen
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%rbx), %rdx
	cmpq	%rdx, %rax
	jae	LBB0_3
## %bb.6:
	movl	(%r14), %edi
	movl	16(%r13), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strlcpy                        ## TAILCALL
LBB0_3:
	movq	8(%r15), %rbx
	movl	$1, %edi
	movl	$2, %esi
	movl	$1, %edx
	callq	_NVME_VS
	cmpq	%rax, %rbx
	jl	LBB0_5
## %bb.4:
	movl	16(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_NVME_QUIRK_IGNORE_DEV_SUBNQN,4,2 ## @NVME_QUIRK_IGNORE_DEV_SUBNQN
	.comm	_NVMF_NQN_SIZE,8,3              ## @NVMF_NQN_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missing or invalid SUBNQN field.\n"

L_.str.1:                               ## @.str.1
	.asciz	"nqn.2014.08.org.nvmexpress:%04x%04x"

	.no_dead_strip	_nvme_init_subnqn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_init_subnqn
_nvme_init_subnqn:                      ; @nvme_init_subnqn
	.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, x2
	mov	x19, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _NVME_QUIRK_IGNORE_DEV_SUBNQN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NVME_QUIRK_IGNORE_DEV_SUBNQN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x22, _NVMF_NQN_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _NVMF_NQN_SIZE@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
	ldr	w21, [x19]
	ldr	x22, [x22]
	ldr	w0, [x20, #8]
	bl	_le16_to_cpu
	mov	x23, x0
	ldr	w0, [x20, #12]
	bl	_le16_to_cpu
	mov	x4, x0
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	mov	x3, x23
	bl	_snprintf
	mov	x21, x0
	ldr	w8, [x19]
	add	w0, w8, w0
	ldr	w1, [x20, #4]
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x19]
	add	w8, w21, w8
	add	w0, w8, #4
	ldr	w1, [x20]
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x19]
	add	w8, w21, w8
	add	w0, w8, #8
	mov	w8, #-4
	sub	w2, w8, w21
	mov	w1, #0
	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
	b	_memset
LBB0_2:
	mov	x21, x1
	ldr	w0, [x20, #16]
	ldr	x1, [x22]
	bl	_strnlen
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x2, [x22]
	cmp	x0, x2
	b.hs	LBB0_5
; %bb.4:
	ldr	w0, [x19]
	ldr	w1, [x20, #16]
	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
	b	_strlcpy
LBB0_5:
	ldr	x23, [x21, #8]
	mov	w0, #1
	mov	w1, #2
	mov	w2, #1
	bl	_NVME_VS
	cmp	x23, x0
	b.lt	LBB0_1
; %bb.6:
	ldr	w0, [x21, #16]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	b	LBB0_1
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NVME_QUIRK_IGNORE_DEV_SUBNQN,4,2 ; @NVME_QUIRK_IGNORE_DEV_SUBNQN
	.comm	_NVMF_NQN_SIZE,8,3              ; @NVMF_NQN_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missing or invalid SUBNQN field.\n"

l_.str.1:                               ; @.str.1
	.asciz	"nqn.2014.08.org.nvmexpress:%04x%04x"

	.no_dead_strip	_nvme_init_subnqn
.subsections_via_symbols
