	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unpack_h
_unpack_h:                              ## @unpack_h
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	_PACK_FLAG_LSB@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	andl	(%rax), %r9d
	setne	-42(%rbp)                       ## 1-byte Folded Spill
	sete	-41(%rbp)                       ## 1-byte Folded Spill
	leal	(%rbx,%rbx), %r15d
	cmpl	$-1, %r8d
	cmovnel	%r8d, %r15d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_mrb_str_new
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_RSTRING_PTR
	movq	%r12, %r10
	movq	%rax, %rdx
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.1:
	movq	%r10, %r12
	movq	%rax, %rdx
	testl	%r15d, %r15d
	jle	LBB0_8
## %bb.2:
	movb	-41(%rbp), %cl                  ## 1-byte Reload
	movb	%cl, %r13b
	shll	$2, %r13d
	movb	-42(%rbp), %cl                  ## 1-byte Reload
	movb	%cl, %r14b
	shll	$2, %r14d
	leal	-2(%r15), %r8d
	leaq	1(%r10), %rcx
	xorl	%edi, %edi
	leaq	L___const.unpack_h.hexadecimal(%rip), %r9
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %r12
	movsbl	-1(%rcx), %edx
	movl	%edx, %esi
	movl	%r13d, %ecx
	sarl	%cl, %esi
	andl	$15, %esi
	movzbl	(%rsi,%r9), %ecx
	movb	%cl, (%rax,%rdi)
	cmpl	$2, %r15d
	jb	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %ecx
	sarl	%cl, %edx
	andl	$15, %edx
	movzbl	(%rdx,%r9), %ecx
	movb	%cl, 1(%rax,%rdi)
	leaq	2(%rdi), %rsi
	cmpl	$2, %ebx
	jb	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	decl	%ebx
	addl	$-2, %r15d
	leaq	1(%r12), %rcx
	cmpl	%edi, %r8d
	movq	%rsi, %rdi
	jne	LBB0_3
LBB0_6:
	movq	%rax, %rdx
	addq	%rsi, %rdx
	jmp	LBB0_8
LBB0_7:
	leaq	(%rax,%rdi), %rdx
	incq	%rdx
LBB0_8:
	subl	%eax, %edx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%r10, %r14
	callq	_mrb_str_resize
	movq	%rbx, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_mrb_ary_push
	subl	%r14d, %r12d
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
	.p2align	4                               ## @__const.unpack_h.hexadecimal
L___const.unpack_h.hexadecimal:
	.asciz	"0123456789abcdef"

	.comm	_PACK_FLAG_LSB,4,2              ## @PACK_FLAG_LSB
	.no_dead_strip	_unpack_h
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unpack_h
_unpack_h:                              ; @unpack_h
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _PACK_FLAG_LSB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PACK_FLAG_LSB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w5
	cset	w26, ne
	cset	w27, eq
	lsl	w8, w2, #1
	cmn	w4, #1
	csel	w24, w8, w4, eq
	mov	x1, #0
	mov	x2, x24
	bl	_mrb_str_new
	mov	x23, x0
	bl	_RSTRING_PTR
	mov	x25, x19
	mov	x8, x0
	cmp	w22, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x25, x19
	mov	x8, x0
	cmp	w24, #1
	b.lt	LBB0_7
; %bb.2:
	lsl	w9, w27, #2
	lsl	w10, w26, #2
	add	x8, x0, #1
	add	x13, x19, #1
Lloh3:
	adrp	x11, l___const.unpack_h.hexadecimal@PAGE
Lloh4:
	add	x11, x11, l___const.unpack_h.hexadecimal@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x25, x13
	ldursb	w13, [x13, #-1]
	asr	w12, w13, w9
	and	x12, x12, #0xf
	ldrb	w12, [x11, x12]
	sturb	w12, [x8, #-1]
	subs	w12, w24, #2
	b.lo	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	asr	w13, w13, w10
	and	x13, x13, #0xf
	ldrb	w13, [x11, x13]
	strb	w13, [x8], #2
	cmp	w22, #2
	b.lo	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w22, w22, #1
	add	x13, x25, #1
	cmp	w24, #2
	mov	x24, x12
	b.ne	LBB0_3
LBB0_6:
	sub	x8, x8, #1
LBB0_7:
	sub	w2, w8, w0
	mov	x0, x21
	mov	x1, x23
	bl	_mrb_str_resize
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_mrb_ary_push
	sub	w0, w25, w19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l___const.unpack_h.hexadecimal:         ; @__const.unpack_h.hexadecimal
	.asciz	"0123456789abcdef"

	.comm	_PACK_FLAG_LSB,4,2              ; @PACK_FLAG_LSB
	.no_dead_strip	_unpack_h
.subsections_via_symbols
