	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libopenjpeg_matches_pix_fmt
_libopenjpeg_matches_pix_fmt:           ## @libopenjpeg_matches_pix_fmt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_av_pix_fmt_desc_get
	movq	%rax, %rdx
	movl	(%rax), %ecx
	xorl	%eax, %eax
	cmpl	(%rbx), %ecx
	jne	LBB0_19
## %bb.1:
	decl	%ecx
	cmpl	$3, %ecx
	ja	LBB0_2
## %bb.3:
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rcx,4), %rcx
	addq	%rsi, %rcx
	jmpq	*%rcx
LBB0_15:
	movq	16(%rdx), %rdi
	movq	8(%rbx), %rsi
LBB0_16:
	movl	(%rdi), %ecx
	cmpl	8(%rsi), %ecx
	jl	LBB0_19
## %bb.17:
	cmpl	$1, (%rsi)
	jne	LBB0_19
## %bb.18:
	xorl	%eax, %eax
	cmpl	$1, 4(%rsi)
	sete	%al
	jmp	LBB0_19
LBB0_7:
	movq	16(%rdx), %rdi
	movq	8(%rbx), %rsi
LBB0_8:
	movl	8(%rdi), %ecx
	cmpl	32(%rsi), %ecx
	jl	LBB0_19
## %bb.9:
	movb	4(%rdx), %cl
	movl	$1, %ebx
	shll	%cl, %ebx
	movl	$1, %r8d
	cmpl	24(%rsi), %ebx
	jne	LBB0_19
## %bb.10:
	movb	8(%rdx), %cl
	shll	%cl, %r8d
	cmpl	28(%rsi), %r8d
	je	LBB0_12
	jmp	LBB0_19
LBB0_4:
	movq	16(%rdx), %rdi
	movl	12(%rdi), %ecx
	movq	8(%rbx), %rsi
	cmpl	44(%rsi), %ecx
	jl	LBB0_19
## %bb.5:
	cmpl	$1, 36(%rsi)
	jne	LBB0_19
## %bb.6:
	cmpl	$1, 40(%rsi)
	je	LBB0_8
	jmp	LBB0_19
LBB0_2:
	movl	$1, %eax
	jmp	LBB0_19
LBB0_11:
	movq	16(%rdx), %rdi
	movq	8(%rbx), %rsi
LBB0_12:
	movl	4(%rdi), %ecx
	cmpl	20(%rsi), %ecx
	jl	LBB0_19
## %bb.13:
	movb	4(%rdx), %cl
	movl	$1, %ebx
	shll	%cl, %ebx
	movl	$1, %r8d
	cmpl	12(%rsi), %ebx
	jne	LBB0_19
## %bb.14:
	movb	8(%rdx), %cl
	shll	%cl, %r8d
	cmpl	16(%rsi), %r8d
	je	LBB0_16
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_11
	.long	L0_0_set_7
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_libopenjpeg_matches_pix_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libopenjpeg_matches_pix_fmt
_libopenjpeg_matches_pix_fmt:           ; @libopenjpeg_matches_pix_fmt
	.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, x0
	mov	x0, x1
	bl	_av_pix_fmt_desc_get
	ldr	w8, [x0]
	ldr	w9, [x19]
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.1:
	sub	w8, w8, #1
	cmp	w8, #3
	b.hi	LBB0_11
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	ldr	x9, [x0, #16]
	ldr	x8, [x19, #8]
LBB0_4:
	ldr	w9, [x9]
	ldr	w10, [x8, #8]
	cmp	w9, w10
	b.lt	LBB0_19
; %bb.5:
	ldr	w9, [x8]
	cmp	w9, #1
	b.ne	LBB0_19
; %bb.6:
	ldr	w8, [x8, #4]
	cmp	w8, #1
	cset	w0, eq
	b	LBB0_20
LBB0_7:
	ldr	x9, [x0, #16]
	ldr	x8, [x19, #8]
LBB0_8:
	ldr	w10, [x9, #8]
	ldr	w11, [x8, #32]
	cmp	w10, w11
	b.lt	LBB0_19
; %bb.9:
	ldr	w11, [x0, #4]
	mov	w10, #1
	lsl	w11, w10, w11
	ldr	w12, [x8, #24]
	cmp	w11, w12
	b.ne	LBB0_19
; %bb.10:
	ldr	w11, [x0, #8]
	lsl	w10, w10, w11
	ldr	w11, [x8, #28]
	cmp	w10, w11
	b.ne	LBB0_19
	b	LBB0_13
LBB0_11:
	mov	w0, #1
	b	LBB0_20
LBB0_12:
	ldr	x9, [x0, #16]
	ldr	x8, [x19, #8]
LBB0_13:
	ldr	w10, [x9, #4]
	ldr	w11, [x8, #20]
	cmp	w10, w11
	b.lt	LBB0_19
; %bb.14:
	ldr	w11, [x0, #4]
	mov	w10, #1
	lsl	w11, w10, w11
	ldr	w12, [x8, #12]
	cmp	w11, w12
	b.ne	LBB0_19
; %bb.15:
	ldr	w11, [x0, #8]
	lsl	w10, w10, w11
	ldr	w11, [x8, #16]
	cmp	w10, w11
	b.eq	LBB0_4
	b	LBB0_19
LBB0_16:
	ldr	x9, [x0, #16]
	ldr	w10, [x9, #12]
	ldr	x8, [x19, #8]
	ldr	w11, [x8, #44]
	cmp	w10, w11
	b.lt	LBB0_19
; %bb.17:
	ldr	w10, [x8, #36]
	cmp	w10, #1
	b.ne	LBB0_19
; %bb.18:
	ldr	w10, [x8, #40]
	cmp	w10, #1
	b.eq	LBB0_8
LBB0_19:
	mov	w0, #0
LBB0_20:
	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
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
                                        ; -- End function
	.no_dead_strip	_libopenjpeg_matches_pix_fmt
.subsections_via_symbols
