	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_json_to_image               ## -- Begin function hb_json_to_image
	.p2align	4, 0x90
_hb_json_to_image:                      ## @hb_json_to_image
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_hb_value_json
	movq	%rax, %r15
	movq	%rax, -56(%rbp)
	leaq	-76(%rbp), %rdi
	callq	_unpack_i
	movl	%eax, %r12d
	leaq	-72(%rbp), %rdi
	callq	_unpack_i
	movl	%eax, %r14d
	leaq	-68(%rbp), %rdi
	callq	_unpack_b
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %r10
	leaq	L_.str.2(%rip), %r11
	leaq	L_.str(%rip), %rcx
	leaq	L_.str.1(%rip), %r8
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	%r12d, %r9d
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r10
	pushq	%r14
	pushq	%r11
	callq	_json_unpack_ex
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_11
## %bb.1:
	movl	-76(%rbp), %edi
	movl	-72(%rbp), %esi
	movl	-68(%rbp), %edx
	callq	_hb_image_init
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	%rax, %r14
	movq	$0, -64(%rbp)
	leaq	-64(%rbp), %rdi
	callq	_unpack_o
	leaq	L_.str.5(%rip), %rcx
	leaq	L_.str.6(%rip), %r8
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_json_unpack_ex
	testl	%eax, %eax
	js	LBB0_13
## %bb.3:
	movq	-64(%rbp), %rdi
	callq	_hb_value_type
	movq	_HB_VALUE_TYPE_ARRAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.4:
	movq	-64(%rbp), %rdi
	callq	_hb_value_array_len
	testl	%eax, %eax
	jle	LBB0_16
## %bb.5:
	movl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%r12
	cmpq	%r12, -96(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_16
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rdi
	movl	%r12d, %esi
	callq	_hb_value_array_get
	movq	%rax, %r13
	movq	$0, -88(%rbp)
	leaq	-100(%rbp), %rdi
	callq	_unpack_i
	movl	%eax, %r15d
	leaq	-88(%rbp), %rdi
	callq	_unpack_s
	movl	%eax, %ebx
	movq	%r13, %rdi
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	leaq	L_.str.8(%rip), %rcx
	leaq	L_.str.9(%rip), %r8
	movl	%r15d, %r9d
	xorl	%eax, %eax
	pushq	%rbx
	leaq	L_.str.10(%rip), %rbx
	pushq	%rbx
	callq	_json_unpack_ex
	addq	$16, %rsp
	testl	%eax, %eax
	js	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r14), %rax
	movl	(%rax,%r12,8), %edx
	testl	%edx, %edx
	jle	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-88(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	4(%rax,%r12,8), %edi
	callq	_av_base64_decode
	jmp	LBB0_6
LBB0_11:
	movl	-48(%rbp), %esi
	leaq	L_.str.4(%rip), %rdi
	callq	_hb_error
LBB0_12:
	leaq	-56(%rbp), %rdi
	callq	_hb_value_free
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_13:
	movl	-48(%rbp), %esi
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_15
LBB0_14:
	movl	-48(%rbp), %esi
	leaq	L_.str.11(%rip), %rdi
LBB0_15:
	callq	_hb_error
LBB0_16:
	leaq	-56(%rbp), %rdi
	callq	_hb_value_free
LBB0_17:
	movq	%r14, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"{s:i, s:i, s:i,}"

L_.str.1:                               ## @.str.1
	.asciz	"Format"

L_.str.2:                               ## @.str.2
	.asciz	"Width"

L_.str.3:                               ## @.str.3
	.asciz	"Height"

L_.str.4:                               ## @.str.4
	.asciz	"image: json unpack failure: %s"

L_.str.5:                               ## @.str.5
	.asciz	"{s:o}"

L_.str.6:                               ## @.str.6
	.asciz	"Planes"

L_.str.7:                               ## @.str.7
	.asciz	"image::planes: json unpack failure: %s"

	.comm	_HB_VALUE_TYPE_ARRAY,8,3        ## @HB_VALUE_TYPE_ARRAY
L_.str.8:                               ## @.str.8
	.asciz	"{s:i, s:s}"

L_.str.9:                               ## @.str.9
	.asciz	"Size"

L_.str.10:                              ## @.str.10
	.asciz	"Data"

L_.str.11:                              ## @.str.11
	.asciz	"image::plane::data: json unpack failure: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_json_to_image               ; -- Begin function hb_json_to_image
	.p2align	2
_hb_json_to_image:                      ; @hb_json_to_image
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	bl	_hb_value_json
	mov	x20, x0
	str	x0, [sp, #80]
	add	x0, sp, #76
	bl	_unpack_i
	mov	x19, x0
	add	x0, sp, #72
	bl	_unpack_i
	mov	x21, x0
	add	x0, sp, #68
	bl	_unpack_b
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, l_.str.3@PAGE
Lloh1:
	add	x8, x8, l_.str.3@PAGEOFF
	stp	x8, x0, [sp, #16]
Lloh2:
	adrp	x8, l_.str.2@PAGE
Lloh3:
	add	x8, x8, l_.str.2@PAGEOFF
	stp	x8, x21, [sp]
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
Lloh6:
	adrp	x4, l_.str.1@PAGE
Lloh7:
	add	x4, x4, l_.str.1@PAGEOFF
	add	x1, sp, #88
	mov	x0, x20
	mov	w2, #0
	mov	x5, x19
	bl	_json_unpack_ex
	tbnz	w0, #31, LBB0_10
; %bb.1:
	ldp	w1, w0, [sp, #72]
	ldr	w2, [sp, #68]
	bl	_hb_image_init
	mov	x19, x0
	cbz	x0, LBB0_14
; %bb.2:
	str	xzr, [sp, #56]
	add	x0, sp, #56
	bl	_unpack_o
	mov	x5, x0
Lloh8:
	adrp	x3, l_.str.5@PAGE
Lloh9:
	add	x3, x3, l_.str.5@PAGEOFF
Lloh10:
	adrp	x4, l_.str.6@PAGE
Lloh11:
	add	x4, x4, l_.str.6@PAGEOFF
	add	x1, sp, #88
	mov	x0, x20
	mov	w2, #0
	bl	_json_unpack_ex
	tbnz	w0, #31, LBB0_11
; %bb.3:
	ldr	x0, [sp, #56]
	bl	_hb_value_type
Lloh12:
	adrp	x8, _HB_VALUE_TYPE_ARRAY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HB_VALUE_TYPE_ARRAY@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.4:
	ldr	x0, [sp, #56]
	bl	_hb_value_array_len
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.5:
	mov	x25, #0
	mov	w20, #0
	mov	w8, w0
	lsl	x26, x8, #3
Lloh15:
	adrp	x27, l_.str.10@PAGE
Lloh16:
	add	x27, x27, l_.str.10@PAGEOFF
Lloh17:
	adrp	x21, l_.str.8@PAGE
Lloh18:
	add	x21, x21, l_.str.8@PAGEOFF
Lloh19:
	adrp	x22, l_.str.9@PAGE
Lloh20:
	add	x22, x22, l_.str.9@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w20, w20, #1
	add	x25, x25, #8
	cmp	x26, x25
	b.eq	LBB0_14
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #56]
	mov	x1, x20
	bl	_hb_value_array_get
	mov	x23, x0
	str	xzr, [sp, #48]
	add	x0, sp, #44
	bl	_unpack_i
	mov	x24, x0
	add	x0, sp, #48
	bl	_unpack_s
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x27, x0, [sp]
	add	x1, sp, #88
	mov	x0, x23
	mov	w2, #0
	mov	x3, x21
	mov	x4, x22
	mov	x5, x24
	bl	_json_unpack_ex
	tbnz	w0, #31, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19]
	ldr	w2, [x8, x25]
	ldr	x1, [sp, #48]
	cmp	w2, #1
	ccmp	x1, #0, #4, ge
	b.eq	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x8, x25
	ldr	w0, [x8, #4]
	bl	_av_base64_decode
	b	LBB0_6
LBB0_10:
	ldr	w1, [sp, #88]
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_hb_error
	add	x0, sp, #80
	bl	_hb_value_free
	mov	x19, #0
	b	LBB0_15
LBB0_11:
	ldr	w1, [sp, #88]
Lloh23:
	adrp	x0, l_.str.7@PAGE
Lloh24:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_13
LBB0_12:
	ldr	w1, [sp, #88]
Lloh25:
	adrp	x0, l_.str.11@PAGE
Lloh26:
	add	x0, x0, l_.str.11@PAGEOFF
LBB0_13:
	bl	_hb_error
LBB0_14:
	add	x0, sp, #80
	bl	_hb_value_free
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"{s:i, s:i, s:i,}"

l_.str.1:                               ; @.str.1
	.asciz	"Format"

l_.str.2:                               ; @.str.2
	.asciz	"Width"

l_.str.3:                               ; @.str.3
	.asciz	"Height"

l_.str.4:                               ; @.str.4
	.asciz	"image: json unpack failure: %s"

l_.str.5:                               ; @.str.5
	.asciz	"{s:o}"

l_.str.6:                               ; @.str.6
	.asciz	"Planes"

l_.str.7:                               ; @.str.7
	.asciz	"image::planes: json unpack failure: %s"

	.comm	_HB_VALUE_TYPE_ARRAY,8,3        ; @HB_VALUE_TYPE_ARRAY
l_.str.8:                               ; @.str.8
	.asciz	"{s:i, s:s}"

l_.str.9:                               ; @.str.9
	.asciz	"Size"

l_.str.10:                              ; @.str.10
	.asciz	"Data"

l_.str.11:                              ; @.str.11
	.asciz	"image::plane::data: json unpack failure: %s"

.subsections_via_symbols
