	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function get_preview_geometry
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_get_preview_geometry:                  ## @get_preview_geometry
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rsi), %eax
	movl	%eax, (%rdx)
	movl	4(%rsi), %eax
	movl	%eax, 4(%rdx)
	movl	8(%rsi), %eax
	movl	%eax, 8(%rdx)
	movl	4(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_ghb_settings_combo_int
	movq	%rax, (%rbx)
	movl	4(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_ghb_dict_get_bool
	testq	%rax, %rax
	je	LBB0_1
LBB0_3:
	movq	_HB_KEEP_DISPLAY_ASPECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	movl	%eax, 80(%rbx)
	movq	$0, 72(%rbx)
	movl	4(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_ghb_settings_combo_int
	movl	%eax, 8(%rbx)
	movl	4(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_ghb_dict_get_int
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	4(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_ghb_dict_get_int
	movq	16(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movl	4(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_ghb_dict_get_int
	movq	16(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movl	4(%r15), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_ghb_dict_get_int
	movq	16(%rbx), %rcx
	movl	%eax, 12(%rcx)
	movl	4(%r15), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_ghb_dict_get_int
	movq	%rax, 32(%rbx)
	movl	4(%r15), %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_ghb_dict_get_int
	movq	%rax, 24(%rbx)
	movl	4(%r15), %edi
	leaq	L_.str.9(%rip), %rsi
	callq	_ghb_dict_get_int
	movq	%rax, 48(%rbx)
	movl	4(%r15), %edi
	leaq	L_.str.10(%rip), %rsi
	callq	_ghb_dict_get_int
	movq	%rax, 40(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%rbx)
	movl	(%r15), %edi
	leaq	L_.str.11(%rip), %rsi
	callq	_ghb_dict_get_bool
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	32(%rbx), %r9
	movq	16(%rbx), %r11
	movq	24(%rbx), %r8
	movl	4(%r11), %r10d
	movl	12(%r11), %esi
	addl	8(%r11), %esi
	movl	(%r14), %edi
	movl	4(%r14), %ecx
	subl	%esi, %edi
	movl	%r9d, %eax
	cltd
	idivl	%edi
	movl	%eax, %edi
	addl	(%r11), %r10d
	subl	%r10d, %ecx
	movl	%r8d, %eax
	cltd
	idivl	%ecx
	imull	%esi, %edi
	movslq	%edi, %rcx
	addq	%r9, %rcx
	movq	%rcx, 32(%rbx)
	imull	%r10d, %eax
	cltq
	addq	%r8, %rax
	movq	%rax, 24(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r11)
	movl	$2, 8(%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%rbx), %rcx
	movq	_HB_ANAMORPHIC_STRICT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	movq	_HB_ANAMORPHIC_LOOSE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PicturePAR"

L_.str.1:                               ## @.str.1
	.asciz	"PictureKeepRatio"

	.comm	_HB_ANAMORPHIC_STRICT,8,3       ## @HB_ANAMORPHIC_STRICT
	.comm	_HB_ANAMORPHIC_LOOSE,8,3        ## @HB_ANAMORPHIC_LOOSE
	.comm	_HB_KEEP_DISPLAY_ASPECT,4,2     ## @HB_KEEP_DISPLAY_ASPECT
L_.str.2:                               ## @.str.2
	.asciz	"PictureModulus"

L_.str.3:                               ## @.str.3
	.asciz	"PictureTopCrop"

L_.str.4:                               ## @.str.4
	.asciz	"PictureBottomCrop"

L_.str.5:                               ## @.str.5
	.asciz	"PictureLeftCrop"

L_.str.6:                               ## @.str.6
	.asciz	"PictureRightCrop"

L_.str.7:                               ## @.str.7
	.asciz	"scale_width"

L_.str.8:                               ## @.str.8
	.asciz	"scale_height"

L_.str.9:                               ## @.str.9
	.asciz	"PicturePARWidth"

L_.str.10:                              ## @.str.10
	.asciz	"PicturePARHeight"

L_.str.11:                              ## @.str.11
	.asciz	"preview_show_crop"

	.no_dead_strip	_get_preview_geometry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_preview_geometry
_get_preview_geometry:                  ; @get_preview_geometry
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	ldr	d0, [x1]
	str	d0, [x2]
	ldr	w8, [x1, #8]
	str	w8, [x2, #8]
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ghb_settings_combo_int
	str	x0, [x19]
	ldr	w0, [x21, #4]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ghb_dict_get_bool
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _HB_ANAMORPHIC_STRICT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _HB_ANAMORPHIC_STRICT@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
Lloh7:
	adrp	x10, _HB_ANAMORPHIC_LOOSE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _HB_ANAMORPHIC_LOOSE@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _HB_KEEP_DISPLAY_ASPECT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HB_KEEP_DISPLAY_ASPECT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	b	LBB0_4
LBB0_3:
	mov	w8, #0
LBB0_4:
	str	w8, [x19, #80]
	str	xzr, [x19, #72]
	ldr	w0, [x21, #4]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ghb_settings_combo_int
	str	w0, [x19, #8]
	ldr	w0, [x21, #4]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_ghb_dict_get_int
	ldr	x8, [x19, #16]
	str	w0, [x8]
	ldr	w0, [x21, #4]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_ghb_dict_get_int
	ldr	x8, [x19, #16]
	str	w0, [x8, #4]
	ldr	w0, [x21, #4]
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_ghb_dict_get_int
	ldr	x8, [x19, #16]
	str	w0, [x8, #8]
	ldr	w0, [x21, #4]
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_ghb_dict_get_int
	ldr	x8, [x19, #16]
	str	w0, [x8, #12]
	ldr	w0, [x21, #4]
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_ghb_dict_get_int
	str	x0, [x19, #32]
	ldr	w0, [x21, #4]
Lloh25:
	adrp	x1, l_.str.8@PAGE
Lloh26:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_ghb_dict_get_int
	str	x0, [x19, #24]
	ldr	w0, [x21, #4]
Lloh27:
	adrp	x1, l_.str.9@PAGE
Lloh28:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_ghb_dict_get_int
	str	x0, [x19, #48]
	ldr	w0, [x21, #4]
Lloh29:
	adrp	x1, l_.str.10@PAGE
Lloh30:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_ghb_dict_get_int
	str	x0, [x19, #40]
	stp	xzr, xzr, [x19, #56]
	ldr	w0, [x21]
Lloh31:
	adrp	x1, l_.str.11@PAGE
Lloh32:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_ghb_dict_get_bool
	cbz	x0, LBB0_6
; %bb.5:
	ldp	x10, x8, [x19, #24]
	ldr	x9, [x19, #16]
	ldp	w11, w12, [x9, #8]
	ldp	w13, w14, [x20]
	add	w11, w12, w11
	sub	w12, w13, w11
	sdiv	w12, w8, w12
	ldp	w13, w15, [x9]
	add	w13, w15, w13
	sub	w14, w14, w13
	sdiv	w14, w10, w14
	mul	w11, w12, w11
	add	x8, x8, w11, sxtw
	mul	w11, w14, w13
	add	x10, x10, w11, sxtw
	stp	x10, x8, [x19, #24]
	stp	xzr, xzr, [x9]
	mov	w8, #2
	str	w8, [x19, #8]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PicturePAR"

l_.str.1:                               ; @.str.1
	.asciz	"PictureKeepRatio"

	.comm	_HB_ANAMORPHIC_STRICT,8,3       ; @HB_ANAMORPHIC_STRICT
	.comm	_HB_ANAMORPHIC_LOOSE,8,3        ; @HB_ANAMORPHIC_LOOSE
	.comm	_HB_KEEP_DISPLAY_ASPECT,4,2     ; @HB_KEEP_DISPLAY_ASPECT
l_.str.2:                               ; @.str.2
	.asciz	"PictureModulus"

l_.str.3:                               ; @.str.3
	.asciz	"PictureTopCrop"

l_.str.4:                               ; @.str.4
	.asciz	"PictureBottomCrop"

l_.str.5:                               ; @.str.5
	.asciz	"PictureLeftCrop"

l_.str.6:                               ; @.str.6
	.asciz	"PictureRightCrop"

l_.str.7:                               ; @.str.7
	.asciz	"scale_width"

l_.str.8:                               ; @.str.8
	.asciz	"scale_height"

l_.str.9:                               ; @.str.9
	.asciz	"PicturePARWidth"

l_.str.10:                              ; @.str.10
	.asciz	"PicturePARHeight"

l_.str.11:                              ; @.str.11
	.asciz	"preview_show_crop"

	.no_dead_strip	_get_preview_geometry
.subsections_via_symbols
