	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_fmt                       ## -- Begin function find_fmt
	.p2align	4, 0x90
_find_fmt:                              ## @find_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	%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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_gsc_formats@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%r14, %rax
	jle	LBB0_9
## %bb.1:
	movl	(%rbx), %edi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rbx, %r14
	cmoveq	%rax, %r13
	incq	%rbx
	movq	_gsc_formats@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ARRAY_SIZE
	movl	%eax, %ecx
	movq	%r13, %rax
	cmpq	%rcx, %rbx
	jae	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_get_format
	testq	%r12, %r12
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rax), %rcx
	cmpq	(%r12), %rcx
	je	LBB0_10
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	testq	%r15, %r15
	je	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rax), %rcx
	cmpq	(%r15), %rcx
	jne	LBB0_3
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gsc_formats,4,2                ## @gsc_formats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_fmt                       ; -- Begin function find_fmt
	.p2align	2
_find_fmt:                              ; @find_fmt
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _gsc_formats@GOTPAGE
Lloh1:
	ldr	x23, [x23, _gsc_formats@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_ARRAY_SIZE
	mov	w8, w0
	cmp	x8, x19
	b.le	LBB0_8
; %bb.1:
	ldr	w0, [x23]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_8
; %bb.2:
	mov	x22, #0
	mov	x24, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x19, x22
	csel	x24, x0, x24, eq
	add	x22, x22, #1
	ldr	w0, [x23]
	bl	_ARRAY_SIZE
	cmp	x22, w0, uxtw
	mov	x0, x24
	b.hs	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_get_format
	cbz	x21, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x0]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	x20, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x0, #8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_3
	b	LBB0_9
LBB0_8:
	mov	x0, #0
LBB0_9:
	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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_gsc_formats,4,2                ; @gsc_formats
.subsections_via_symbols
