	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_jpeg_find_format
_s5p_jpeg_find_format:                  ## @s5p_jpeg_find_format
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	_S5P_JPEG_ENCODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_FMT_TYPE_OUTPUT@GOTPCREL(%rip), %rax
	movq	_SJPEG_FMT_FLAG_DEC_OUTPUT@GOTPCREL(%rip), %rcx
	cmoveq	_SJPEG_FMT_FLAG_ENC_OUTPUT@GOTPCREL(%rip), %rcx
	movq	_SJPEG_FMT_FLAG_DEC_CAPTURE@GOTPCREL(%rip), %rdi
	cmoveq	_SJPEG_FMT_FLAG_ENC_CAPTURE@GOTPCREL(%rip), %rdi
	cmpl	%edx, (%rax)
	cmoveq	%rcx, %rdi
	movq	%rsi, %rbx
	movl	(%rdi), %r12d
	movq	_sjpeg_formats@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$16, %r15
	cmpq	%rax, %r14
	jae	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	cmpq	%rbx, (%rdi,%r15)
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%rdi,%r15), %eax
	testl	%r12d, %eax
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	(%rcx), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.6:
	addq	%r15, %rdi
	movq	%rdi, %rax
	jmp	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S5P_JPEG_ENCODE,8,3            ## @S5P_JPEG_ENCODE
	.comm	_FMT_TYPE_OUTPUT,4,2            ## @FMT_TYPE_OUTPUT
	.comm	_SJPEG_FMT_FLAG_ENC_OUTPUT,4,2  ## @SJPEG_FMT_FLAG_ENC_OUTPUT
	.comm	_SJPEG_FMT_FLAG_ENC_CAPTURE,4,2 ## @SJPEG_FMT_FLAG_ENC_CAPTURE
	.comm	_SJPEG_FMT_FLAG_DEC_OUTPUT,4,2  ## @SJPEG_FMT_FLAG_DEC_OUTPUT
	.comm	_SJPEG_FMT_FLAG_DEC_CAPTURE,4,2 ## @SJPEG_FMT_FLAG_DEC_CAPTURE
	.comm	_sjpeg_formats,8,3              ## @sjpeg_formats
	.no_dead_strip	_s5p_jpeg_find_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_jpeg_find_format
_s5p_jpeg_find_format:                  ; @s5p_jpeg_find_format
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _S5P_JPEG_ENCODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _S5P_JPEG_ENCODE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _FMT_TYPE_OUTPUT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _FMT_TYPE_OUTPUT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _SJPEG_FMT_FLAG_ENC_OUTPUT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _SJPEG_FMT_FLAG_ENC_OUTPUT@GOTPAGEOFF]
Lloh8:
	adrp	x12, _SJPEG_FMT_FLAG_DEC_OUTPUT@GOTPAGE
Lloh9:
	ldr	x12, [x12, _SJPEG_FMT_FLAG_DEC_OUTPUT@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x11, x12, eq
Lloh10:
	adrp	x9, _SJPEG_FMT_FLAG_ENC_CAPTURE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SJPEG_FMT_FLAG_ENC_CAPTURE@GOTPAGEOFF]
Lloh12:
	adrp	x11, _SJPEG_FMT_FLAG_DEC_CAPTURE@GOTPAGE
Lloh13:
	ldr	x11, [x11, _SJPEG_FMT_FLAG_DEC_CAPTURE@GOTPAGEOFF]
	csel	x9, x9, x11, eq
	cmp	w10, w2
	csel	x8, x8, x9, eq
	ldr	w21, [x8]
Lloh14:
	adrp	x22, _sjpeg_formats@GOTPAGE
Lloh15:
	ldr	x22, [x22, _sjpeg_formats@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_7
; %bb.1:
	mov	x23, #0
	mov	x24, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	bl	_ARRAY_SIZE
	add	x23, x23, #16
	cmp	x24, w0, uxtw
	b.hs	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	ldr	x8, [x0, x23]
	cmp	x8, x19
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x0, x23
	ldr	w8, [x8, #8]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x20, #8]
	ldr	x9, [x9]
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.6:
	add	x0, x0, x23
	b	LBB0_8
LBB0_7:
	mov	x0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_S5P_JPEG_ENCODE,8,3            ; @S5P_JPEG_ENCODE
	.comm	_FMT_TYPE_OUTPUT,4,2            ; @FMT_TYPE_OUTPUT
	.comm	_SJPEG_FMT_FLAG_ENC_OUTPUT,4,2  ; @SJPEG_FMT_FLAG_ENC_OUTPUT
	.comm	_SJPEG_FMT_FLAG_ENC_CAPTURE,4,2 ; @SJPEG_FMT_FLAG_ENC_CAPTURE
	.comm	_SJPEG_FMT_FLAG_DEC_OUTPUT,4,2  ; @SJPEG_FMT_FLAG_DEC_OUTPUT
	.comm	_SJPEG_FMT_FLAG_DEC_CAPTURE,4,2 ; @SJPEG_FMT_FLAG_DEC_CAPTURE
	.comm	_sjpeg_formats,8,3              ; @sjpeg_formats
	.no_dead_strip	_s5p_jpeg_find_format
.subsections_via_symbols
