	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_axis_from_file
_init_axis_from_file:                   ## @init_axis_from_file
	.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
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movl	20(%rdi), %eax
	movl	24(%rdi), %r9d
	subq	$8, %rsp
	leaq	-80(%rbp), %rdi
	leaq	-96(%rbp), %rsi
	leaq	-108(%rbp), %rdx
	leaq	-104(%rbp), %rcx
	leaq	-112(%rbp), %r8
	pushq	%rax
	callq	_ff_load_image
	addq	$16, %rsp
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	12(%rax), %ecx
	movl	%ecx, -100(%rbp)                ## 4-byte Spill
	movl	16(%rax), %ebx
	movl	16(%r15), %r13d
	movl	8(%r15), %edi
	movl	12(%r15), %r14d
	callq	_convert_axis_pixel_format
	movl	-108(%rbp), %ecx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movl	-104(%rbp), %r11d
	movl	-112(%rbp), %r10d
	movl	20(%r15), %r12d
	subq	$8, %rsp
	leaq	-80(%rbp), %r9
	movl	%ebx, %edi
	movl	-100(%rbp), %esi                ## 4-byte Reload
	movl	%r13d, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	pushq	%r12
	pushq	%r10
	pushq	%r11
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	leaq	-96(%rbp), %rax
	pushq	%rax
	callq	_ff_scale_image
	addq	$48, %rsp
	testl	%eax, %eax
	js	LBB0_3
## %bb.7:
	movl	16(%r15), %eax
	movq	(%r15), %rcx
	movl	%eax, 8(%rcx)
	movl	12(%r15), %eax
	movl	%eax, 4(%rcx)
	movl	8(%r15), %edi
	callq	_convert_axis_pixel_format
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_3:
	movl	%eax, %ebx
LBB0_4:
	movq	%r15, %rdi
	callq	_av_frame_free
LBB0_5:
	leaq	-80(%rbp), %rdi
	callq	_av_freep
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.6:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_init_axis_from_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_axis_from_file
_init_axis_from_file:                   ; @init_axis_from_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #48]
	ldp	w6, w5, [x0, #20]
	add	x0, sp, #48
	add	x1, sp, #32
	add	x2, sp, #24
	add	x3, sp, #20
	add	x4, sp, #28
	bl	_ff_load_image
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x20, x0
	bl	_av_frame_alloc
	str	x0, [x19]
	cbz	x0, LBB0_5
; %bb.2:
	ldp	w21, w20, [x0, #12]
	ldp	w23, w22, [x19, #12]
	ldr	w0, [x19, #8]
	bl	_convert_axis_pixel_format
	mov	x4, x0
	ldp	w8, w7, [sp, #20]
	ldr	w9, [sp, #28]
	ldr	w10, [x19, #20]
	stp	w9, w10, [sp, #4]
	add	x5, sp, #48
	add	x6, sp, #32
	str	w8, [sp]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_ff_scale_image
	tbnz	w0, #31, LBB0_4
; %bb.3:
	ldr	x8, [x19]
	ldur	d0, [x19, #12]
	stur	d0, [x8, #4]
	ldr	w0, [x19, #8]
	bl	_convert_axis_pixel_format
	mov	w20, #0
	ldr	x8, [x19]
	str	w0, [x8]
	b	LBB0_6
LBB0_4:
	mov	x20, x0
LBB0_5:
	mov	x0, x19
	bl	_av_frame_free
LBB0_6:
	add	x0, sp, #48
	bl	_av_freep
	ldur	x8, [x29, #-56]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_init_axis_from_file
.subsections_via_symbols
