	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_mask
_load_mask:                             ## @load_mask
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %r9
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, -160(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	subq	$8, %rsp
	leaq	-80(%rbp), %rdi
	leaq	-128(%rbp), %r15
	leaq	-148(%rbp), %r8
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	pushq	%r13
	callq	_ff_load_image
	addq	$16, %rsp
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	(%r12), %edx
	movl	(%r14), %ecx
	movq	_AV_PIX_FMT_GRAY8@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	-148(%rbp), %eax
	subq	$8, %rsp
	leaq	-112(%rbp), %rdi
	leaq	-144(%rbp), %rsi
	leaq	-80(%rbp), %r9
	pushq	%r13
	pushq	%rax
	pushq	%rcx
	pushq	%rdx
	pushq	%r15
	callq	_ff_scale_image
	addq	$48, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movl	(%r14), %edi
	imull	(%r12), %edi
	callq	_av_malloc
	movq	-160(%rbp), %r15                ## 8-byte Reload
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	movq	(%r15), %rax
LBB0_5:
	movl	(%r12), %esi
	movq	-112(%rbp), %rdx
	movl	-144(%rbp), %ecx
	movl	(%r14), %r9d
	movq	%rax, %rdi
	movl	%esi, %r8d
	callq	_av_image_copy_plane
LBB0_6:
	leaq	-80(%rbp), %rdi
	callq	_av_freep
	leaq	-112(%rbp), %rdi
	callq	_av_freep
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %ebx
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%ebx, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_GRAY8,4,2           ## @AV_PIX_FMT_GRAY8
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_load_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_mask
_load_mask:                             ; @load_mask
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x23, x4
	mov	x5, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	x0, sp, #88
	add	x1, sp, #40
	add	x4, sp, #20
	mov	x2, x20
	mov	x3, x19
	mov	x6, x23
	bl	_ff_load_image
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	w2, [x20]
	ldr	w3, [x19]
Lloh3:
	adrp	x8, _AV_PIX_FMT_GRAY8@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_PIX_FMT_GRAY8@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	ldr	w8, [sp, #20]
	str	x23, [sp, #8]
	add	x0, sp, #56
	add	x1, sp, #24
	add	x5, sp, #88
	add	x6, sp, #40
	stp	w3, w8, [sp]
	mov	x7, x2
	bl	_ff_scale_image
	mov	x21, x0
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	w8, [x20]
	ldr	w9, [x19]
	mul	w0, w9, w8
	bl	_av_malloc
	str	x0, [x22]
	cbnz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x21, x0
	ldr	x0, [x22]
LBB0_4:
	ldr	w1, [x20]
	ldr	x2, [sp, #56]
	ldr	w3, [sp, #24]
	ldr	w5, [x19]
	mov	x4, x1
	bl	_av_image_copy_plane
LBB0_5:
	add	x0, sp, #88
	bl	_av_freep
	add	x0, sp, #56
	bl	_av_freep
	b	LBB0_7
LBB0_6:
	mov	x21, x0
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x21
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_GRAY8,4,2           ; @AV_PIX_FMT_GRAY8
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_load_mask
.subsections_via_symbols
