	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function string_to_uuid
_string_to_uuid:                        ## @string_to_uuid
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movb	(%rdi), %al
	xorl	%ebx, %ebx
	cmpb	$123, %al
	sete	%bl
	addq	%rdi, %rbx
	movq	_UUID_LEN@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	jle	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	xorl	%r14d, %r14d
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rbx)
	je	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$0, 1(%rbx)
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$2, %edx
	callq	_memcpy
	movzbl	-44(%rbp), %edi
	callq	_isxdigit
	testl	%eax, %eax
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	-43(%rbp), %edi
	callq	_isxdigit
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movb	$0, -42(%rbp)
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_strtoul
	movq	(%r15), %rcx
	movb	%al, (%rcx,%r14)
	leaq	2(%rbx), %rcx
	movslq	(%r13), %rdx
	leaq	-1(%rdx), %rsi
	leaq	3(%rbx), %rax
	cmpq	%rsi, %r14
	cmovgeq	%rcx, %rax
	testb	$1, %r14b
	cmoveq	%rcx, %rax
	cmpb	$45, 2(%rbx)
	cmovneq	%rcx, %rax
	incq	%r14
	movq	%rax, %rbx
	cmpq	%rdx, %r14
	jl	LBB0_3
## %bb.8:
	cmpb	$123, -41(%rbp)                 ## 1-byte Folded Reload
	je	LBB0_9
LBB0_11:
	cmpb	$0, (%rax)
	jne	LBB0_12
	jmp	LBB0_13
LBB0_1:
	movq	%rbx, %rax
	cmpb	$123, -41(%rbp)                 ## 1-byte Folded Reload
	jne	LBB0_11
LBB0_9:
	cmpb	$125, (%rax)
	jne	LBB0_12
## %bb.10:
	incq	%rax
	cmpb	$0, (%rax)
	je	LBB0_13
LBB0_12:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INVALID_TEXT_REPRESENTATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UUID_LEN,4,2                   ## @UUID_LEN
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_TEXT_REPRESENTATION,4,2 ## @ERRCODE_INVALID_TEXT_REPRESENTATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid input syntax for type %s: \"%s\""

L_.str.1:                               ## @.str.1
	.asciz	"uuid"

	.no_dead_strip	_string_to_uuid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function string_to_uuid
_string_to_uuid:                        ; @string_to_uuid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	mov	x8, x0
	ldrb	w22, [x8], #1
	cmp	w22, #123
	csel	x20, x0, x8, ne
Lloh0:
	adrp	x23, _UUID_LEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _UUID_LEN@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x21, x1
	mov	x24, #0
	mov	w25, #45
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20]
	cbz	w8, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x20, #1]
	cbz	w8, LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #13
	mov	x1, x20
	mov	w2, #2
	bl	_memcpy
	ldrb	w0, [sp, #13]
	bl	_isxdigit
	cbz	w0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w0, [sp, #14]
	bl	_isxdigit
	cbz	w0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	strb	wzr, [sp, #15]
	add	x0, sp, #13
	mov	x1, #0
	mov	w2, #16
	bl	_strtoul
	ldr	x8, [x21]
	strb	w0, [x8, x24]
	ldrb	w8, [x20, #2]!
	ldrsw	x9, [x23]
	sub	x10, x9, #1
	cmp	x24, x10
	cinc	x10, x20, lt
	tst	x24, #0x1
	ccmp	w8, w25, #0, ne
	csel	x20, x20, x10, ne
	add	x24, x24, #1
	cmp	x24, x9
	b.lt	LBB0_2
LBB0_7:
	cmp	w22, #123
	b.ne	LBB0_10
; %bb.8:
	ldrb	w8, [x20]
	cmp	w8, #125
	b.ne	LBB0_11
; %bb.9:
	add	x20, x20, #1
LBB0_10:
	ldrb	w8, [x20]
	cbz	w8, LBB0_12
LBB0_11:
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
Lloh5:
	adrp	x8, _ERRCODE_INVALID_TEXT_REPRESENTATION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERRCODE_INVALID_TEXT_REPRESENTATION@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_errcode
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_UUID_LEN,4,2                   ; @UUID_LEN
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_TEXT_REPRESENTATION,4,2 ; @ERRCODE_INVALID_TEXT_REPRESENTATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid input syntax for type %s: \"%s\""

l_.str.1:                               ; @.str.1
	.asciz	"uuid"

	.no_dead_strip	_string_to_uuid
.subsections_via_symbols
