	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resizer_set_crop_params
_resizer_set_crop_params:               ## @resizer_set_crop_params
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	40(%rdi), %rsi
	callq	_resizer_set_ratio
	movq	40(%rbx), %rax
	movq	_RESIZE_DIVISOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_1
## %bb.2:
	movq	_RSZ_BILINEAR@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_RSZ_THE_SAME@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_resizer_set_bilinear
	movq	%rbx, %rdi
	callq	_resizer_adjust_bandwidth
	movq	(%rbx), %rax
	movq	_RESIZER_INPUT_MEMORY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	(%r14), %esi
	imull	12(%rbx), %esi
	addl	16(%rbx), %esi
	leal	(%rsi,%rsi), %eax
	movl	%eax, 8(%rbx)
	andl	$15, %esi
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%edx, %edx
	callq	_resizer_set_start
	movslq	8(%rbx), %rsi
	andq	$-32, %rsi
	addq	32(%rbx), %rsi
	movq	%rbx, %rdi
	callq	___resizer_set_inaddr
	jmp	LBB0_6
LBB0_5:
	movl	12(%rbx), %edx
	movl	16(%rbx), %esi
	addl	%esi, %esi
	movq	%rbx, %rdi
	callq	_resizer_set_start
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	___resizer_set_inaddr
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_resizer_set_input_offset
LBB0_6:
	movl	20(%rbx), %edx
	movl	24(%rbx), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_resizer_set_input_size         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RESIZE_DIVISOR,8,3             ## @RESIZE_DIVISOR
	.comm	_RSZ_THE_SAME,4,2               ## @RSZ_THE_SAME
	.comm	_RSZ_BILINEAR,4,2               ## @RSZ_BILINEAR
	.comm	_RESIZER_INPUT_MEMORY,8,3       ## @RESIZER_INPUT_MEMORY
	.no_dead_strip	_resizer_set_crop_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resizer_set_crop_params
_resizer_set_crop_params:               ; @resizer_set_crop_params
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	add	x1, x0, #40
	bl	_resizer_set_ratio
	ldr	x8, [x19, #40]
Lloh0:
	adrp	x9, _RESIZE_DIVISOR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RESIZE_DIVISOR@GOTPAGEOFF]
Lloh2:
	adrp	x10, _RSZ_BILINEAR@GOTPAGE
Lloh3:
	ldr	x10, [x10, _RSZ_BILINEAR@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x11, _RSZ_THE_SAME@GOTPAGE
Lloh6:
	ldr	x11, [x11, _RSZ_THE_SAME@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, lt
	ldr	w1, [x8]
	mov	x0, x19
	bl	_resizer_set_bilinear
	mov	x0, x19
	bl	_resizer_adjust_bandwidth
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _RESIZER_INPUT_MEMORY@GOTPAGE
Lloh8:
	ldr	x9, [x9, _RESIZER_INPUT_MEMORY@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x20]
	ldp	w9, w10, [x19, #12]
	madd	w8, w8, w9, w10
	lsl	w9, w8, #1
	str	w9, [x19, #8]
	and	w1, w8, #0xf
	mov	x0, x19
	mov	w2, #0
	bl	_resizer_set_start
	ldr	x8, [x19, #32]
	ldrsw	x9, [x19, #8]
	and	x9, x9, #0xffffffffffffffe0
	add	x1, x8, x9
	mov	x0, x19
	bl	___resizer_set_inaddr
	b	LBB0_3
LBB0_2:
	ldp	w2, w8, [x19, #12]
	lsl	w1, w8, #1
	mov	x0, x19
	bl	_resizer_set_start
	mov	x0, x19
	mov	x1, #0
	bl	___resizer_set_inaddr
	mov	x0, x19
	mov	w1, #0
	bl	_resizer_set_input_offset
LBB0_3:
	ldp	w2, w1, [x19, #20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_resizer_set_input_size
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_RESIZE_DIVISOR,8,3             ; @RESIZE_DIVISOR
	.comm	_RSZ_THE_SAME,4,2               ; @RSZ_THE_SAME
	.comm	_RSZ_BILINEAR,4,2               ; @RSZ_BILINEAR
	.comm	_RESIZER_INPUT_MEMORY,8,3       ; @RESIZER_INPUT_MEMORY
	.no_dead_strip	_resizer_set_crop_params
.subsections_via_symbols
