	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_picture_fill                ## -- Begin function hb_picture_fill
	.p2align	4, 0x90
_hb_picture_fill:                       ## @hb_picture_fill
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rsi, %r8
	cmpl	$0, 16(%rdx)
	js	LBB0_1
## %bb.10:
	movq	8(%rbx), %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdx
	movl	(%rcx,%rax,8), %eax
	movl	%eax, (%r8,%rdx,4)
	leaq	1(%rdx), %rax
	movslq	16(%rbx), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_11
## %bb.2:
	testl	$-4, %eax
	jne	LBB0_7
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movl	-4(%r8,%rax,4), %ecx
	movl	%eax, %edx
	movl	%ecx, (%r8,%rdx,4)
	cmpl	$3, %eax
	jae	LBB0_7
## %bb.4:
	leaq	1(%rdx), %r9
	movl	%r9d, %esi
	movl	%ecx, (%r8,%rsi,4)
	cmpl	$2, %r9d
	ja	LBB0_7
## %bb.5:
	addq	$2, %rdx
	movl	%edx, %esi
	movl	%ecx, (%r8,%rsi,4)
	cmpl	$2, %edx
	ja	LBB0_7
## %bb.6:
	addl	$3, %eax
	movl	%ecx, (%r8,%rax,4)
LBB0_7:
	movl	20(%rbx), %esi
	movq	8(%rbx), %rax
	movl	4(%rax), %edx
	movl	4(%rbx), %ecx
	callq	_av_image_fill_pointers
	movl	%eax, %r14d
	movl	(%rbx), %esi
	cmpl	%esi, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %edx
	callq	_hb_error
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Internal error hb_picture_fill expected %d, got %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_picture_fill                ; -- Begin function hb_picture_fill
	.p2align	2
_hb_picture_fill:                       ; @hb_picture_fill
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x4, x1
	ldr	w8, [x2, #16]
	tbnz	w8, #31, LBB0_4
; %bb.1:
	mov	x8, #0
	ldr	x9, [x19, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #8
	mov	x11, x8
	str	w10, [x4, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x10, [x19, #16]
	cmp	x11, x10
	b.lt	LBB0_2
; %bb.3:
	tst	x8, #0xfffffffc
	b.ne	LBB0_9
	b	LBB0_5
LBB0_4:
	mov	x8, #0
LBB0_5:
	add	x9, x4, x8, lsl #2
	ldur	w9, [x9, #-4]
	str	w9, [x4, w8, uxtw #2]
	cmp	w8, #3
	b.hs	LBB0_9
; %bb.6:
	and	x10, x8, #0xffffffff
	add	x11, x10, #1
	str	w9, [x4, w11, uxtw #2]
	cmp	w11, #2
	b.hi	LBB0_9
; %bb.7:
	add	x10, x10, #2
	str	w9, [x4, w10, uxtw #2]
	cmp	w10, #2
	b.hi	LBB0_9
; %bb.8:
	add	w8, w8, #3
	str	w9, [x4, w8, uxtw #2]
LBB0_9:
	ldr	w1, [x19, #20]
	ldr	x8, [x19, #8]
	ldr	w2, [x8, #4]
	ldr	w3, [x19, #4]
	bl	_av_image_fill_pointers
	mov	x20, x0
	ldr	w1, [x19]
	cmp	w0, w1
	b.eq	LBB0_11
; %bb.10:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_hb_error
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Internal error hb_picture_fill expected %d, got %d"

.subsections_via_symbols
