	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hex_decode                     ## -- Begin function hex_decode
	.p2align	4, 0x90
_hex_decode:                            ## @hex_decode
	.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, %r14
	movq	%rdx, %r15
	testl	%esi, %esi
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movl	%esi, %r12d
	addq	%rdi, %r12
	movabsq	$4294977024, %r13               ## imm = 0x100002600
	movq	%r14, %r15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	incq	%rbx
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	-1(%rbx), %eax
	cmpq	$32, %rax
	ja	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	btq	%rax, %r13
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	leaq	1(%rbx), %rax
	cmpq	%r12, %rbx
	movq	%rax, %rbx
	jb	LBB0_3
	jmp	LBB0_9
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movsbl	%al, %edi
	callq	_get_hex
	shll	$4, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpq	%r12, %rbx
	jb	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movsbl	(%rbx), %edi
	incq	%rbx
	callq	_get_hex
	orl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	movb	%al, (%r15)
	incq	%r15
	cmpq	%r12, %rbx
	jb	LBB0_2
LBB0_9:
	subl	%r14d, %r15d
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ## @ERRCODE_INVALID_PARAMETER_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid hexadecimal data: odd number of digits"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hex_decode                     ; -- Begin function hex_decode
	.p2align	2
_hex_decode:                            ; @hex_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x24, x2
	cbz	w1, LBB0_8
; %bb.1:
	mov	x20, x0
	add	x25, x0, w1, uxtw
	mov	w26, #1
Lloh0:
	adrp	x23, _ERROR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ERROR@GOTPAGEOFF]
	mov	x28, #9728
	movk	x28, #1, lsl #32
Lloh2:
	adrp	x27, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGEOFF]
	mov	x24, x19
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	add	x20, x20, #1
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldurb	w8, [x20, #-1]
	cmp	w8, #32
	lsl	x9, x26, x8
	and	x9, x9, x28
	ccmp	x9, #0, #4, ls
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	add	x8, x20, #1
	cmp	x20, x25
	mov	x20, x8
	b.lo	LBB0_3
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	sxtb	w0, w8
	bl	_get_hex
	mov	x22, x0
	cmp	x20, x25
	b.lo	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	w0, [x27]
	bl	_errcode
	mov	x0, x21
	bl	_errmsg
	mov	x1, x0
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	bl	_ereport
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	lsl	w22, w22, #4
	ldrsb	w0, [x20], #1
	bl	_get_hex
	orr	w8, w0, w22
	strb	w8, [x24], #1
	cmp	x20, x25
	b.lo	LBB0_2
LBB0_8:
	sub	w0, w24, w19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ; @ERRCODE_INVALID_PARAMETER_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid hexadecimal data: odd number of digits"

.subsections_via_symbols
