	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmet_ns_device_nguid_store
_nvmet_ns_device_nguid_store:           ## @nvmet_ns_device_nguid_store
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_to_nvmet_ns
	movq	%rax, %rbx
	movq	16(%rax), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	movq	%r14, -128(%rbp)                ## 8-byte Spill
	addq	%r13, %r14
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$3, %r13
	movq	%r13, %r12
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movq	%r12, %r13
	cmpq	$16, %r15
	je	LBB0_13
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	2(%r13), %r12
	cmpq	%r14, %r12
	ja	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movsbl	(%r13), %edi
	callq	_isxdigit
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movsbl	1(%r13), %edi
	callq	_isxdigit
	testl	%eax, %eax
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movsbl	(%r13), %edi
	callq	_hex_to_bin
	movl	%eax, %ebx
	shll	$4, %ebx
	movsbl	1(%r13), %edi
	callq	_hex_to_bin
	orl	%ebx, %eax
	movl	%eax, -112(%rbp,%r15,4)
	movzbl	2(%r13), %eax
	cmpb	$58, %al
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$45, %al
	je	LBB0_11
	jmp	LBB0_12
LBB0_6:
	movq	-128(%rbp), %r14                ## 8-byte Reload
	movq	-120(%rbp), %r15                ## 8-byte Reload
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.3:
	negl	%ebx
	movq	%rbx, %r14
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%r14d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	-112(%rbp), %rsi
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movl	$64, %edx
	callq	_memcpy
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_mutex_unlock
	movq	-128(%rbp), %r14                ## 8-byte Reload
	jmp	LBB0_14
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_nvmet_ns_device_nguid_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmet_ns_device_nguid_store
_nvmet_ns_device_nguid_store:           ; @nvmet_ns_device_nguid_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x22, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	bl	_to_nvmet_ns
	mov	x21, x0
	ldr	x20, [x0, #16]
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_6
; %bb.1:
Lloh3:
	adrp	x24, _EBUSY@GOTPAGE
Lloh4:
	ldr	x24, [x24, _EBUSY@GOTPAGEOFF]
LBB0_2:
	ldr	w21, [x24]
	mov	x0, x20
	bl	_mutex_unlock
	cbz	w21, LBB0_4
; %bb.3:
	neg	w19, w21
LBB0_4:
	ldr	x8, [sp, #72]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.5:
	mov	x0, x19
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_6:
	mov	x25, #0
	add	x26, x22, x19
Lloh8:
	adrp	x24, _EINVAL@GOTPAGE
Lloh9:
	ldr	x24, [x24, _EINVAL@GOTPAGEOFF]
	add	x27, sp, #8
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x28, x22, #3
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x25, x25, #4
	mov	x22, x28
	cmp	x25, #64
	b.eq	LBB0_14
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x28, x22, #2
	cmp	x28, x26
	b.hi	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldrsb	w0, [x22]
	bl	_isxdigit
	cbz	w0, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldrsb	w0, [x22, #1]
	bl	_isxdigit
	cbz	w0, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldrsb	w0, [x22]
	bl	_hex_to_bin
	mov	x23, x0
	ldrsb	w0, [x22, #1]
	bl	_hex_to_bin
	orr	w8, w0, w23, lsl #4
	str	w8, [x27, x25]
	ldrb	w8, [x22, #2]
	cmp	w8, #58
	b.eq	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w8, #45
	b.eq	LBB0_7
	b	LBB0_8
LBB0_14:
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #64
	bl	_memcpy
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_4
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_nvmet_ns_device_nguid_store
.subsections_via_symbols
