	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_palette_transparency_index
_get_palette_transparency_index:        ## @get_palette_transparency_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$-1, %eax
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	_AVPALETTE_COUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	testq	%r8, %r8
	je	LBB0_9
## %bb.2:
	cmpl	$1, %r8d
	jne	LBB0_4
## %bb.3:
	movl	$-1, %ecx
	movl	$255, %eax
	xorl	%esi, %esi
	jmp	LBB0_6
LBB0_4:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	movl	$-1, %ecx
	movl	$255, %eax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	3(%rdi,%rsi,4), %r10d
	cmpl	%eax, %r10d
	movl	%ecx, %edx
	cmovbl	%esi, %edx
	cmovbl	%r10d, %eax
	movsbl	7(%rdi,%rsi,4), %r10d
	leal	1(%rsi), %ecx
	cmpl	%eax, %r10d
	cmovael	%edx, %ecx
	cmovbl	%r10d, %eax
	addq	$2, %rsi
	cmpq	%r9, %rsi
	jne	LBB0_5
LBB0_6:
	testb	$1, %r8b
	je	LBB0_8
## %bb.7:
	movsbl	3(%rdi,%rsi,4), %edx
	cmpl	%eax, %edx
	cmovbl	%esi, %ecx
	cmovbl	%edx, %eax
LBB0_8:
	cmpl	$128, %eax
	movl	$-1, %eax
	cmovbl	%ecx, %eax
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVPALETTE_COUNT,4,2            ## @AVPALETTE_COUNT
	.no_dead_strip	_get_palette_transparency_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_palette_transparency_index
_get_palette_transparency_index:        ; @get_palette_transparency_index
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _AVPALETTE_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVPALETTE_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x10, #0
	mov	w9, #-1
	mov	w11, #255
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x12, x0, x10, lsl #2
	ldrsb	w12, [x12, #3]
	cmp	w12, w11
	csel	w9, w10, w9, lo
	csel	w11, w12, w11, lo
	add	x10, x10, #1
	cmp	x8, x10
	b.ne	LBB0_3
; %bb.4:
	cmp	w11, #128
	csinv	w0, w9, wzr, lo
	ret
LBB0_5:
	mov	w0, #-1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVPALETTE_COUNT,4,2            ; @AVPALETTE_COUNT
	.no_dead_strip	_get_palette_transparency_index
.subsections_via_symbols
