	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_hex2bn                      ## -- Begin function BN_hex2bn
	.p2align	4, 0x90
_BN_hex2bn:                             ## @BN_hex2bn
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.1:
	movb	(%rsi), %al
	xorl	%ecx, %ecx
	testb	%al, %al
	je	LBB0_13
## %bb.2:
	movq	%rdi, %r15
	cmpb	$45, %al
	jne	LBB0_4
## %bb.3:
	incq	%rsi
	movl	$1, %ecx
LBB0_4:
	movq	_INT_MAX@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	cmpl	$-3, (%r12)
	jl	LBB0_11
## %bb.5:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, %r14
	movsbl	(%rsi,%rbx), %edi
	callq	_ossl_isxdigit
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r12), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	leaq	1(%rbx), %r13
	sarl	$2, %ecx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	movq	%r13, %rbx
	movq	%r14, %rsi
	jl	LBB0_6
## %bb.9:
	testl	%r13d, %r13d
	jne	LBB0_14
	jmp	LBB0_10
LBB0_7:
	movq	%rbx, %r13
	testl	%r13d, %r13d
	je	LBB0_10
LBB0_14:
	movl	(%r12), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	cmpl	%r13d, %ecx
	jge	LBB0_15
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	cmpq	$0, (%r15)
	jne	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	callq	_BN_free
LBB0_13:
	xorl	%ebx, %ebx
LBB0_30:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r13), %ebx
	testq	%r15, %r15
	je	LBB0_30
## %bb.16:
	movq	(%r15), %r12
	testq	%r12, %r12
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_17
## %bb.18:
	movq	%r12, %rdi
	callq	_BN_zero
	jmp	LBB0_19
LBB0_17:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_30
LBB0_19:
	leal	(,%r13,4), %esi
	movq	%r12, %rdi
	callq	_bn_expand
	testq	%rax, %rax
	movq	%r12, %rbx
	je	LBB0_11
## %bb.20:
	testl	%r13d, %r13d
	jle	LBB0_21
## %bb.22:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	_BN_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_23:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_24 Depth 2
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	addl	%eax, %eax
	cmpl	%r13d, %eax
	cmovgel	%r13d, %eax
	movslq	%eax, %r15
	movl	%r13d, %ebx
	subq	%r15, %rbx
	incq	%r15
	addq	%r14, %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_23 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%rbx), %edi
	callq	_OPENSSL_hexchar2int
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovlel	%ecx, %eax
	shll	$4, %r12d
	orl	%eax, %r12d
	decq	%r15
	incq	%rbx
	cmpq	$1, %r15
	jg	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	%r12d, (%rax,%rdx,4)
	incq	%rdx
	movq	_BN_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%eax, %r13d
	subl	%eax, %r13d
	testl	%r13d, %r13d
	jg	LBB0_23
## %bb.26:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_27
LBB0_21:
	xorl	%edx, %edx
LBB0_27:
	movl	%edx, 8(%rbx)
	movq	%rbx, %rdi
	callq	_bn_correct_top
	movq	%rbx, (%r15)
	movq	%rbx, %rdi
	callq	_bn_check_top
	cmpl	$0, 8(%rbx)
	je	LBB0_29
## %bb.28:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 12(%rbx)
LBB0_29:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_BN_BYTES,4,2                   ## @BN_BYTES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_hex2bn                      ; -- Begin function BN_hex2bn
	.p2align	2
_BN_hex2bn:                             ; @BN_hex2bn
	.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
	cbz	x1, LBB0_12
; %bb.1:
	ldrb	w8, [x1]
	cbz	w8, LBB0_12
; %bb.2:
	mov	x19, x0
	mov	w9, #1
	cmp	w8, #45
	csel	w22, wzr, w9, ne
	cinc	x23, x1, eq
Lloh0:
	adrp	x20, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x20, [x20, _INT_MAX@GOTPAGEOFF]
	ldr	w8, [x20]
	cmn	w8, #3
	b.lt	LBB0_9
; %bb.3:
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x23, x21]
	bl	_ossl_isxdigit
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x21, #1
	ldr	w8, [x20]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	cmp	x21, w8, sxtw
	mov	x21, x24
	b.lt	LBB0_4
; %bb.6:
	cbnz	w24, LBB0_8
	b	LBB0_9
LBB0_7:
	mov	x24, x21
	cbz	w24, LBB0_9
LBB0_8:
	ldr	w8, [x20]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	cmp	w24, w8, asr #2
	b.le	LBB0_14
LBB0_9:
	mov	x21, #0
LBB0_10:
	ldr	x8, [x19]
	cbnz	x8, LBB0_12
; %bb.11:
	mov	x0, x21
	bl	_BN_free
LBB0_12:
	mov	w20, #0
LBB0_13:
	mov	x0, x20
	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
LBB0_14:
	add	w20, w22, w24
	cbz	x19, LBB0_13
; %bb.15:
	ldr	x21, [x19]
	cbz	x21, LBB0_17
; %bb.16:
	mov	x0, x21
	bl	_BN_zero
	b	LBB0_18
LBB0_17:
	bl	_BN_new
	mov	x21, x0
	cbz	x0, LBB0_12
LBB0_18:
	lsl	w1, w24, #2
	mov	x0, x21
	bl	_bn_expand
	cbz	x0, LBB0_10
; %bb.19:
	cmp	w24, #1
	b.lt	LBB0_25
; %bb.20:
	str	w22, [sp, #12]                  ; 4-byte Folded Spill
	mov	x26, #0
Lloh2:
	adrp	x25, _BN_BYTES@GOTPAGE
Lloh3:
	ldr	x25, [x25, _BN_BYTES@GOTPAGEOFF]
	ldr	w8, [x25]
LBB0_21:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_22 Depth 2
	mov	w27, #0
	lsl	w8, w8, #1
	cmp	w8, w24
	csel	w8, w8, w24, lt
	sxtw	x8, w8
	mov	w9, w24
	add	x28, x8, #1
	sub	x8, x9, x8
	add	x22, x23, x8
LBB0_22:                                ;   Parent Loop BB0_21 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x22], #1
	bl	_OPENSSL_hexchar2int
	cmp	w0, #0
	csel	w8, w0, wzr, gt
	orr	w27, w8, w27, lsl #4
	sub	x28, x28, #1
	cmp	x28, #1
	b.gt	LBB0_22
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x8, [x21]
	add	x9, x26, #1
	str	w27, [x8, x26, lsl #2]
	ldr	w8, [x25]
	sub	w24, w24, w8, lsl #1
	mov	x26, x9
	cmp	w24, #0
	b.gt	LBB0_21
; %bb.24:
	ldr	w22, [sp, #12]                  ; 4-byte Folded Reload
	b	LBB0_26
LBB0_25:
	mov	w9, #0
LBB0_26:
	str	w9, [x21, #8]
	mov	x0, x21
	bl	_bn_correct_top
	str	x21, [x19]
	mov	x0, x21
	bl	_bn_check_top
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_13
; %bb.27:
	str	w22, [x21, #12]
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_BN_BYTES,4,2                   ; @BN_BYTES
.subsections_via_symbols
