	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OPENSSL_hexstr2buf             ## -- Begin function OPENSSL_hexstr2buf
	.p2align	4, 0x90
_OPENSSL_hexstr2buf:                    ## @OPENSSL_hexstr2buf
	.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	%rsi, %r12
	movq	%rdi, %rbx
	callq	_strlen
	shrq	%rax
	movq	%rax, %rdi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %r13
	incq	%rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rbx), %r14d
	testb	%r14b, %r14b
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpb	$58, %r14b
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	-1(%rbx), %eax
	testb	%al, %al
	je	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %r15
	movzbl	%al, %edi
	callq	_OPENSSL_hexchar2int
	movl	%eax, %r12d
	movzbl	%r14b, %edi
	callq	_OPENSSL_hexchar2int
	testl	%r12d, %r12d
	js	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	js	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	shll	$4, %eax
	orl	%r12d, %eax
	movb	%al, (%r13)
	incq	%r13
	movq	%r15, %r12
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	incq	%rbx
	jmp	LBB0_2
LBB0_8:
	testq	%r12, %r12
	je	LBB0_13
## %bb.9:
	subq	%r15, %r13
	movq	%r13, (%r12)
	jmp	LBB0_13
LBB0_10:
	movq	_CRYPTO_F_OPENSSL_HEXSTR2BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %esi
	callq	_CRYPTOerr
LBB0_12:
	xorl	%r15d, %r15d
LBB0_13:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_CRYPTO_F_OPENSSL_HEXSTR2BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CRYPTO_R_ODD_NUMBER_OF_DIGITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CRYPTOerr
	movq	%r15, %rdi
	callq	_OPENSSL_free
	jmp	LBB0_12
LBB0_15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_OPENSSL_free
	movq	_CRYPTO_F_OPENSSL_HEXSTR2BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CRYPTO_R_ILLEGAL_HEX_DIGIT@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYPTO_F_OPENSSL_HEXSTR2BUF,4,2 ## @CRYPTO_F_OPENSSL_HEXSTR2BUF
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_CRYPTO_R_ODD_NUMBER_OF_DIGITS,4,2 ## @CRYPTO_R_ODD_NUMBER_OF_DIGITS
	.comm	_CRYPTO_R_ILLEGAL_HEX_DIGIT,4,2 ## @CRYPTO_R_ILLEGAL_HEX_DIGIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OPENSSL_hexstr2buf             ; -- Begin function OPENSSL_hexstr2buf
	.p2align	2
_OPENSSL_hexstr2buf:                    ; @OPENSSL_hexstr2buf
	.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, x1
	mov	x21, x0
	bl	_strlen
	lsr	x0, x0, #1
	bl	_OPENSSL_malloc
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.1:
	mov	x24, x19
	add	x21, x21, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldurb	w22, [x21, #-1]
	cbz	w22, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	cmp	w22, #58
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldurb	w0, [x21, #-1]
	cbz	w0, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_OPENSSL_hexchar2int
	mov	x23, x0
	mov	x0, x22
	bl	_OPENSSL_hexchar2int
	tbnz	w23, #31, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	tbnz	w0, #31, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	orr	w8, w23, w0, lsl #4
	strb	w8, [x24], #1
	add	x21, x21, #1
	b	LBB0_2
LBB0_8:
	cbz	x20, LBB0_11
; %bb.9:
	sub	x8, x24, x19
	str	x8, [x20]
	b	LBB0_11
LBB0_10:
Lloh0:
	adrp	x8, _CRYPTO_F_OPENSSL_HEXSTR2BUF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRYPTO_F_OPENSSL_HEXSTR2BUF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_CRYPTOerr
LBB0_11:
	mov	x0, x19
	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
	ret
LBB0_12:
Lloh6:
	adrp	x8, _CRYPTO_F_OPENSSL_HEXSTR2BUF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CRYPTO_F_OPENSSL_HEXSTR2BUF@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _CRYPTO_R_ODD_NUMBER_OF_DIGITS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CRYPTO_R_ODD_NUMBER_OF_DIGITS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_CRYPTOerr
	mov	x0, x19
	bl	_OPENSSL_free
	mov	x19, #0
	b	LBB0_11
LBB0_13:
	mov	x0, x19
	bl	_OPENSSL_free
Lloh12:
	adrp	x8, _CRYPTO_F_OPENSSL_HEXSTR2BUF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CRYPTO_F_OPENSSL_HEXSTR2BUF@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _CRYPTO_R_ILLEGAL_HEX_DIGIT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CRYPTO_R_ILLEGAL_HEX_DIGIT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_CRYPTOerr
	mov	x19, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPTO_F_OPENSSL_HEXSTR2BUF,4,2 ; @CRYPTO_F_OPENSSL_HEXSTR2BUF
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_CRYPTO_R_ODD_NUMBER_OF_DIGITS,4,2 ; @CRYPTO_R_ODD_NUMBER_OF_DIGITS
	.comm	_CRYPTO_R_ILLEGAL_HEX_DIGIT,4,2 ; @CRYPTO_R_ILLEGAL_HEX_DIGIT
.subsections_via_symbols
