	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_gif_background_color
_get_gif_background_color:              ## @get_gif_background_color
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.1:
	movq	8(%rdi), %rcx
	movq	_PropertyTagIndexBackground@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$16, %rcx
	movq	%rsi, %rdx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, -16(%rcx)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$24, %rcx
	decq	%rdx
	jne	LBB0_2
## %bb.5:
	xorl	%r8d, %r8d
	jmp	LBB0_6
LBB0_3:
	movq	(%rcx), %rax
	movl	(%rax), %r8d
LBB0_6:
	movq	8(%rdi), %rdx
	movq	_PropertyTagIndexTransparent@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	addq	$16, %rdx
	movq	%rsi, %rax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	$24, %rdx
	decq	%rax
	je	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r9, -16(%rdx)
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rdx), %rcx
	cmpl	%r8d, (%rcx)
	jne	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_11:
	movq	8(%rdi), %rdx
	movq	_PropertyTagGlobalPalette@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$16, %rdx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, -16(%rdx)
	je	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	addq	$24, %rdx
	decq	%rsi
	jne	LBB0_12
	jmp	LBB0_16
LBB0_13:
	movslq	-8(%rdx), %rax
	imulq	$1431655766, %rax, %rax         ## imm = 0x55555556
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	addl	%ecx, %eax
	cmpl	%r8d, %eax
	jle	LBB0_16
## %bb.14:
	movq	(%rdx), %rax
	leal	(%r8,%r8,2), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %edx
	movl	4(%rax,%rcx,4), %esi
	shll	$8, %esi
	shll	$16, %edx
	addl	8(%rax,%rcx,4), %esi
	leal	(%rdx,%rsi), %eax
	addl	$-16777216, %eax                ## imm = 0xFF000000
	popq	%rbp
	retq
LBB0_16:
	leaq	L_.str(%rip), %rdi
	callq	_FIXME
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PropertyTagIndexBackground,8,3 ## @PropertyTagIndexBackground
	.comm	_PropertyTagIndexTransparent,8,3 ## @PropertyTagIndexTransparent
	.comm	_PropertyTagGlobalPalette,8,3   ## @PropertyTagGlobalPalette
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't get gif background color\n"

	.no_dead_strip	_get_gif_background_color
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_gif_background_color
_get_gif_background_color:              ; @get_gif_background_color
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
	cbz	x8, LBB0_16
; %bb.1:
	ldr	x9, [x0, #8]
Lloh0:
	adrp	x10, _PropertyTagIndexBackground@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PropertyTagIndexBackground@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	add	x9, x9, #16
	mov	x11, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x9, #-16]
	cmp	x12, x10
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #24
	subs	x11, x11, #1
	b.ne	LBB0_2
; %bb.4:
	mov	w9, #0
	b	LBB0_6
LBB0_5:
	ldr	x9, [x9]
	ldr	w9, [x9]
LBB0_6:
	ldr	x11, [x0, #8]
Lloh3:
	adrp	x10, _PropertyTagIndexTransparent@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PropertyTagIndexTransparent@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	x11, x11, #16
	mov	x12, x8
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x11, x11, #24
	subs	x12, x12, #1
	b.eq	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x13, [x11, #-16]
	cmp	x13, x10
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x13, [x11]
	ldr	w13, [x13]
	cmp	w13, w9
	b.ne	LBB0_7
; %bb.10:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	x10, [x0, #8]
Lloh6:
	adrp	x11, _PropertyTagGlobalPalette@GOTPAGE
Lloh7:
	ldr	x11, [x11, _PropertyTagGlobalPalette@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	add	x10, x10, #16
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x10, #-16]
	cmp	x12, x11
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x10, x10, #24
	subs	x8, x8, #1
	b.ne	LBB0_12
	b	LBB0_16
LBB0_14:
	ldursw	x8, [x10, #-8]
	mov	w11, #21846
	movk	w11, #21845, lsl #16
	mul	x8, x8, x11
	lsr	x11, x8, #63
	lsr	x8, x8, #32
	add	w8, w8, w11
	cmp	w8, w9
	b.le	LBB0_16
; %bb.15:
	ldr	x8, [x10]
	add	w9, w9, w9, lsl #1
	add	x8, x8, w9, sxtw #2
	ldp	w10, w9, [x8, #4]
	ldr	w8, [x8]
	add	w9, w9, w10, lsl #8
	add	w8, w9, w8, lsl #16
	mov	w9, #-16777216
	add	w0, w8, w9
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_16:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PropertyTagIndexBackground,8,3 ; @PropertyTagIndexBackground
	.comm	_PropertyTagIndexTransparent,8,3 ; @PropertyTagIndexTransparent
	.comm	_PropertyTagGlobalPalette,8,3   ; @PropertyTagGlobalPalette
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't get gif background color\n"

	.no_dead_strip	_get_gif_background_color
.subsections_via_symbols
