	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_hex
_set_hex:                               ## @set_hex
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r13
	leal	(%r15,%r15), %ebx
	callq	_strlen
	cmpl	%ebx, %eax
	jle	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %r12d
	jmp	LBB0_4
LBB0_2:
	movl	%eax, %r12d
	jge	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIO_printf
LBB0_5:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_memset
	movl	$1, %eax
	testl	%r12d, %r12d
	jle	LBB0_14
## %bb.6:
	movl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	shlb	$4, %al
	movl	%r15d, %ecx
	shrq	%rcx
	movb	%al, (%r14,%rcx)
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r15
	cmpl	%r15d, %r12d
	je	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13,%r15), %ebx
	movl	%ebx, %edi
	callq	_isxdigit
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %edi
	callq	_OPENSSL_hexchar2int
	testb	$1, %r15b
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%r15d, %ecx
	shrq	%rcx
	orb	%al, (%r14,%rcx)
	jmp	LBB0_12
LBB0_8:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_BIO_printf
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_13:
	movl	$1, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bio_err,4,2                    ## @bio_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hex string is too long, ignoring excess\n"

L_.str.1:                               ## @.str.1
	.asciz	"hex string is too short, padding with zero bytes to length\n"

L_.str.2:                               ## @.str.2
	.asciz	"non-hex digit\n"

	.no_dead_strip	_set_hex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_hex
_set_hex:                               ; @set_hex
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	lsl	w24, w2, #1
	bl	_strlen
Lloh0:
	adrp	x23, _bio_err@GOTPAGE
Lloh1:
	ldr	x23, [x23, _bio_err@GOTPAGEOFF]
	cmp	w0, w24
	b.le	LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x22, x24
	b	LBB0_4
LBB0_2:
	mov	x22, x0
	cmp	w0, w24
	b.ge	LBB0_5
; %bb.3:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	ldr	w0, [x23]
	bl	_BIO_printf
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	cmp	w22, #1
	b.lt	LBB0_12
; %bb.6:
	mov	x24, #0
	mov	w22, w22
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	lsl	w9, w0, #4
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	strb	w9, [x19, x8]
	add	x24, x24, #1
	cmp	w22, w24
	b.eq	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w21, [x20, x24]
	mov	x0, x21
	bl	_isxdigit
	cbz	w0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x21
	bl	_OPENSSL_hexchar2int
	ubfx	x8, x24, #1, #31
	tbz	w24, #0, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldrb	w9, [x19, x8]
	orr	w9, w9, w0
	b	LBB0_8
LBB0_12:
	mov	w0, #1
	b	LBB0_14
LBB0_13:
	ldr	w0, [x23]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_BIO_printf
	mov	w0, #0
LBB0_14:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_bio_err,4,2                    ; @bio_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hex string is too long, ignoring excess\n"

l_.str.1:                               ; @.str.1
	.asciz	"hex string is too short, padding with zero bytes to length\n"

l_.str.2:                               ; @.str.2
	.asciz	"non-hex digit\n"

	.no_dead_strip	_set_hex
.subsections_via_symbols
