	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rotator_src_set_buf
_rotator_src_set_buf:                   ## @rotator_src_set_buf
	.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	%rsi, %r15
	movl	40(%rsi), %edi
	callq	_ROT_SET_BUF_SIZE_H
	movl	%eax, %r14d
	movq	24(%r15), %rcx
	movq	32(%r15), %rax
	movl	(%rax), %eax
	movq	(%rcx), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %edi
	callq	_ROT_SET_BUF_SIZE_W
	orl	%eax, %r14d
	movq	_ROT_SRC_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rot_write
	movl	20(%r15), %edi
	callq	_ROT_CROP_POS_Y
	movl	%eax, %ebx
	movl	16(%r15), %edi
	callq	_ROT_CROP_POS_X
	orl	%eax, %ebx
	movq	_ROT_SRC_CROP_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_rot_write
	movl	12(%r15), %edi
	callq	_ROT_SRC_CROP_SIZE_H
	movl	%eax, %ebx
	movl	8(%r15), %edi
	callq	_ROT_SRC_CROP_SIZE_W
	orl	%eax, %ebx
	movq	_ROT_SRC_CROP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_rot_write
	movq	(%r15), %rax
	movl	(%rax), %ebx
	xorl	%edi, %edi
	callq	_ROT_SRC_BUF_ADDR
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_rot_write
	movq	(%r15), %rax
	movl	4(%rax), %ebx
	movl	$1, %edi
	callq	_ROT_SRC_BUF_ADDR
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rot_write                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ROT_SRC_BUF_SIZE,4,2           ## @ROT_SRC_BUF_SIZE
	.comm	_ROT_SRC_CROP_POS,4,2           ## @ROT_SRC_CROP_POS
	.comm	_ROT_SRC_CROP_SIZE,4,2          ## @ROT_SRC_CROP_SIZE
	.no_dead_strip	_rotator_src_set_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rotator_src_set_buf
_rotator_src_set_buf:                   ; @rotator_src_set_buf
	.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	x19, x1
	ldr	w0, [x1, #40]
	bl	_ROT_SET_BUF_SIZE_H
	mov	x20, x0
	ldp	x9, x8, [x19, #24]
	ldr	w8, [x8]
	ldr	x9, [x9]
	ldr	w9, [x9]
	sdiv	w0, w8, w9
	bl	_ROT_SET_BUF_SIZE_W
	orr	w0, w0, w20
Lloh0:
	adrp	x8, _ROT_SRC_BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ROT_SRC_BUF_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_rot_write
	ldr	w0, [x19, #20]
	bl	_ROT_CROP_POS_Y
	mov	x20, x0
	ldr	w0, [x19, #16]
	bl	_ROT_CROP_POS_X
	orr	w0, w0, w20
Lloh3:
	adrp	x8, _ROT_SRC_CROP_POS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ROT_SRC_CROP_POS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_rot_write
	ldr	w0, [x19, #12]
	bl	_ROT_SRC_CROP_SIZE_H
	mov	x20, x0
	ldr	w0, [x19, #8]
	bl	_ROT_SRC_CROP_SIZE_W
	orr	w0, w0, w20
Lloh6:
	adrp	x8, _ROT_SRC_CROP_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ROT_SRC_CROP_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_rot_write
	ldr	x8, [x19]
	ldr	w20, [x8]
	mov	w0, #0
	bl	_ROT_SRC_BUF_ADDR
	mov	x1, x0
	mov	x0, x20
	bl	_rot_write
	ldr	x8, [x19]
	ldr	w19, [x8, #4]
	mov	w0, #1
	bl	_ROT_SRC_BUF_ADDR
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rot_write
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ROT_SRC_BUF_SIZE,4,2           ; @ROT_SRC_BUF_SIZE
	.comm	_ROT_SRC_CROP_POS,4,2           ; @ROT_SRC_CROP_POS
	.comm	_ROT_SRC_CROP_SIZE,4,2          ; @ROT_SRC_CROP_SIZE
	.no_dead_strip	_rotator_src_set_buf
.subsections_via_symbols
