	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmp_parse
_bmp_parse:                             ## @bmp_parse
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%r8, -120(%rbp)                 ## 8-byte Spill
	movq	%r8, -72(%rbp)
	movl	%r9d, -48(%rbp)
	movq	(%rdi), %r13
	leaq	8(%r13), %r15
	movl	8(%r13), %r14d
	movq	_END_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movl	$0, (%rcx)
	movl	12(%r13), %ecx
	movl	%r9d, %eax
	negl	%eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	cmpl	$11, %ecx
	jl	LBB0_5
LBB0_2:
	movl	4(%r13), %edi
	testl	%edi, %edi
	je	LBB0_19
## %bb.3:
	movl	%r12d, %esi
	callq	_FFMIN
	movl	%eax, %ebx
	subl	%eax, 4(%r13)
	jne	LBB0_19
## %bb.4:
	movl	$0, 12(%r13)
	xorl	%ecx, %ecx
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	cmpl	%r12d, %ebx
	jge	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	%ebx, %rax
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	leaq	(%rdx,%rax,4), %r15
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edx
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rdx), %rbx
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=2
	incl	%ecx
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=2
	movl	%ecx, 12(%r13)
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=2
	incq	%r12
	movl	%r12d, %eax
	addl	%ebx, %eax
	je	LBB0_15
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	shll	$8, %r14d
	orl	(%r15,%r12,4), %r14d
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpl	$10, %ecx
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	%r14d, %edi
	callq	_av_bswap32
	addl	$-201, %eax
	xorl	%ecx, %ecx
	cmpl	$-189, %eax
	jb	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	12(%r13), %ecx
	incl	%ecx
	movl	%ecx, 12(%r13)
	movl	(%r13), %eax
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	addl	%edx, %eax
	addl	%r12d, %eax
	addl	$-17, %eax
	movl	%eax, 4(%r13)
	movl	16(%r13), %eax
	addl	%edx, %eax
	addl	%r12d, %eax
	cmpl	$17, %eax
	jg	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	addq	%r12, %rbx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	$0, (%r15)
                                        ## kill: def $ebx killed $ebx killed $rbx def $rbx
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	cmpl	$11, %ecx
	jge	LBB0_2
	jmp	LBB0_5
LBB0_15:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
LBB0_17:
	movl	%eax, %ebx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_18:
	movl	%r14d, (%r15)
LBB0_19:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	leaq	-72(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_ff_combine_frame
	testq	%rax, %rax
	js	LBB0_20
## %bb.21:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	jns	LBB0_24
## %bb.22:
	movq	_END_NOT_FOUND@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r14d
	je	LBB0_24
## %bb.23:
	notl	%ebx
	addl	12(%r13), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_FFMAX
LBB0_24:
	movl	%eax, 12(%r13)
	movq	-72(%rbp), %rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	-48(%rbp), %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_25
LBB0_20:
	movl	-48(%rbp), %r14d
LBB0_25:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	leal	(%rdx,%r12), %eax
	addl	$-17, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %eax
	addl	%r12d, %eax
	xorl	%r14d, %r14d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_END_NOT_FOUND,4,2              ## @END_NOT_FOUND
	.no_dead_strip	_bmp_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmp_parse
_bmp_parse:                             ; @bmp_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x5
	mov	x26, x4
	str	x2, [sp, #16]                   ; 8-byte Folded Spill
	mov	w22, #0
	str	x4, [sp, #40]
	str	w5, [sp, #36]
	ldr	x27, [x0]
	mov	x23, x27
	ldr	w24, [x23, #8]!
Lloh0:
	adrp	x8, _END_NOT_FOUND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _END_NOT_FOUND@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	str	x3, [sp, #24]                   ; 8-byte Folded Spill
	str	wzr, [x3]
	ldr	w8, [x27, #12]
	neg	w28, w5
	str	x28, [sp, #8]                   ; 8-byte Folded Spill
	cmp	w8, #11
	b.lt	LBB0_4
LBB0_1:
	ldr	w0, [x27, #4]
	cbz	w0, LBB0_17
; %bb.2:
	mov	x1, x25
	bl	_FFMIN
	mov	x22, x0
	ldr	w8, [x27, #4]
	subs	w8, w8, w0
	str	w8, [x27, #4]
	b.ne	LBB0_17
; %bb.3:
	str	wzr, [x27, #12]
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	cmp	w22, w25
	b.ge	LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, #0
	add	x19, x26, w22, sxtw #2
	add	x28, x28, w22, uxtw
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	w8, w8, #1
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	str	w8, [x27, #12]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x20, x20, #1
	cmn	w28, w20
	b.eq	LBB0_15
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x19, x20, lsl #2]
	orr	w24, w9, w24, lsl #8
	cbz	w8, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	cmp	w8, #10
	b.ne	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x24
	bl	_av_bswap32
	sub	w8, w0, #201
	cmn	w8, #189
	b.hs	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	w8, #0
	b	LBB0_7
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w8, w9, [x27, #12]
	add	w8, w8, #1
	str	w8, [x27, #12]
	ldr	w10, [x27]
	add	w10, w22, w10
	add	w10, w10, w20
	sub	w10, w10, #17
	str	w10, [x27, #4]
	add	w9, w22, w9
	add	w9, w9, w20
	cmp	w9, #17
	b.gt	LBB0_25
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x20, w22, uxtw
	str	wzr, [x23]
	ldr	x28, [sp, #8]                   ; 8-byte Folded Reload
	cmp	w8, #11
	b.ge	LBB0_1
	b	LBB0_4
LBB0_15:
	mov	x22, x25
LBB0_16:
	str	w24, [x23]
LBB0_17:
	add	x2, sp, #40
	add	x3, sp, #36
	mov	x0, x23
	mov	x1, x21
	bl	_ff_combine_frame
	tbnz	x0, #63, LBB0_21
; %bb.18:
	mov	w0, #0
	tbz	w21, #31, LBB0_22
; %bb.19:
Lloh3:
	adrp	x8, _END_NOT_FOUND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _END_NOT_FOUND@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w21, w8
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	b.eq	LBB0_23
; %bb.20:
	ldr	w8, [x27, #12]
	mvn	w9, w22
	add	w0, w8, w9
	mov	w1, #0
	bl	_FFMAX
	b	LBB0_23
LBB0_21:
	ldr	w21, [sp, #36]
	b	LBB0_24
LBB0_22:
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
LBB0_23:
	str	w0, [x27, #12]
	ldr	x8, [sp, #40]
	str	x8, [x20]
	ldr	w8, [sp, #36]
	str	w8, [x19]
LBB0_24:
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_25:
	mov	w24, #0
	add	w22, w22, w20
	sub	w21, w22, #17
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_END_NOT_FOUND,4,2              ; @END_NOT_FOUND
	.no_dead_strip	_bmp_parse
.subsections_via_symbols
