	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_der_parse_hex_heim_integer     ## -- Begin function der_parse_hex_heim_integer
	.p2align	4, 0x90
_der_parse_hex_heim_integer:            ## @der_parse_hex_heim_integer
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsi)
	cmpb	$45, (%rdi)
	jne	LBB0_2
## %bb.1:
	incq	%rbx
	movl	$1, 4(%r15)
LBB0_2:
	movq	%rbx, %rdi
	callq	_strlen
	testl	%eax, %eax
	jle	LBB0_13
## %bb.3:
	shrl	%eax
	incl	%eax
	movl	%eax, (%r15)
	movl	%eax, %edi
	callq	_malloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_hex_decode
	movq	8(%r15), %rdi
	testl	%eax, %eax
	js	LBB0_12
## %bb.5:
	xorl	%r14d, %r14d
	movl	$0, %edx
	movq	%rdi, %rsi
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movl	$1, %ecx
	cmovlel	%eax, %ecx
	decl	%ecx
	movq	%rdi, %rsi
	movl	%eax, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rsi)
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rsi
	leal	-1(%rdx), %eax
	cmpl	$1, %edx
	movl	%eax, %edx
	jg	LBB0_7
## %bb.9:
	movl	%ecx, %edx
LBB0_10:
	movl	%edx, (%r15)
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memmove
	jmp	LBB0_15
LBB0_11:
	movl	$0, (%r15)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	callq	_free
LBB0_13:
	movq	$0, 8(%r15)
	movl	$0, (%r15)
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_der_parse_hex_heim_integer     ; -- Begin function der_parse_hex_heim_integer
	.p2align	2
_der_parse_hex_heim_integer:            ; @der_parse_hex_heim_integer
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	stp	xzr, xzr, [x1]
	ldrb	w8, [x0]
	cmp	w8, #45
	b.ne	LBB0_2
; %bb.1:
	add	x20, x20, #1
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_2:
	mov	x0, x20
	bl	_strlen
	cmp	w0, #0
	b.le	LBB0_12
; %bb.3:
	lsr	w8, w0, #1
	add	w0, w8, #1
	str	w0, [x19]
	bl	_malloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_10
; %bb.4:
	mov	x1, x0
	ldr	w2, [x19]
	mov	x0, x20
	bl	_hex_decode
	mov	x2, x0
	ldr	x0, [x19, #8]
	tbnz	w2, #31, LBB0_11
; %bb.5:
	cbz	w2, LBB0_13
; %bb.6:
	cmp	w2, #1
	csinc	w8, w2, wzr, lt
	sub	w8, w8, #1
	mov	x1, x0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x1]
	cbnz	w9, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x1, x1, #1
	subs	w2, w2, #1
	b.gt	LBB0_7
; %bb.9:
	mov	x2, x8
	b	LBB0_14
LBB0_10:
	str	wzr, [x19]
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_15
LBB0_11:
	bl	_free
LBB0_12:
	str	xzr, [x19, #8]
	str	wzr, [x19]
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_15
LBB0_13:
	mov	x1, x0
LBB0_14:
	str	w2, [x19]
	bl	_memmove
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
