	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gsc_src_set_size
_gsc_src_set_size:                      ## @gsc_src_set_size
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	16(%rsi), %edi
	callq	_GSC_SRCIMG_OFFSET_X
	movl	%eax, %ebx
	movl	12(%r15), %edi
	callq	_GSC_SRCIMG_OFFSET_Y
	orl	%eax, %ebx
	movq	_GSC_SRCIMG_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_gsc_write
	movq	(%r15), %rdi
	callq	_GSC_CROPPED_WIDTH
	movl	%eax, %ebx
	movl	8(%r15), %edi
	callq	_GSC_CROPPED_HEIGHT
	orl	%eax, %ebx
	movq	_GSC_CROPPED_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_gsc_write
	movq	_GSC_SRCIMG_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_gsc_read
	movq	_GSC_SRCIMG_HEIGHT_MASK@GOTPCREL(%rip), %rcx
	movq	_GSC_SRCIMG_WIDTH_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	24(%r15), %rax
	movq	40(%r15), %rcx
	movl	(%rax), %eax
	movq	(%rcx), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %edi
	callq	_GSC_SRCIMG_WIDTH
	movl	%eax, %r12d
	movl	32(%r15), %edi
	callq	_GSC_SRCIMG_HEIGHT
	orl	%eax, %ebx
	orl	%r12d, %ebx
	movl	(%r13), %esi
	movl	%ebx, %edi
	callq	_gsc_write
	movq	_GSC_IN_CON@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_gsc_read
	movq	_GSC_IN_RGB_TYPE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	(%r15), %rcx
	movq	_GSC_WIDTH_ITU_709@GOTPCREL(%rip), %rdx
	notl	%edi
	andl	%eax, %edi
	cmpq	$0, (%r14)
	movq	_GSC_IN_RGB_SD_WIDE@GOTPCREL(%rip), %rax
	cmoveq	_GSC_IN_RGB_SD_NARROW@GOTPCREL(%rip), %rax
	movq	_GSC_IN_RGB_HD_WIDE@GOTPCREL(%rip), %rsi
	cmoveq	_GSC_IN_RGB_HD_NARROW@GOTPCREL(%rip), %rsi
	cmpq	(%rdx), %rcx
	cmovlq	%rax, %rsi
	orl	(%rsi), %edi
	movl	(%rbx), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gsc_write                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GSC_SRCIMG_OFFSET,4,2          ## @GSC_SRCIMG_OFFSET
	.comm	_GSC_CROPPED_SIZE,4,2           ## @GSC_CROPPED_SIZE
	.comm	_GSC_SRCIMG_SIZE,4,2            ## @GSC_SRCIMG_SIZE
	.comm	_GSC_SRCIMG_HEIGHT_MASK,4,2     ## @GSC_SRCIMG_HEIGHT_MASK
	.comm	_GSC_SRCIMG_WIDTH_MASK,4,2      ## @GSC_SRCIMG_WIDTH_MASK
	.comm	_GSC_IN_CON,4,2                 ## @GSC_IN_CON
	.comm	_GSC_IN_RGB_TYPE_MASK,4,2       ## @GSC_IN_RGB_TYPE_MASK
	.comm	_GSC_WIDTH_ITU_709,8,3          ## @GSC_WIDTH_ITU_709
	.comm	_GSC_IN_RGB_HD_WIDE,4,2         ## @GSC_IN_RGB_HD_WIDE
	.comm	_GSC_IN_RGB_HD_NARROW,4,2       ## @GSC_IN_RGB_HD_NARROW
	.comm	_GSC_IN_RGB_SD_WIDE,4,2         ## @GSC_IN_RGB_SD_WIDE
	.comm	_GSC_IN_RGB_SD_NARROW,4,2       ## @GSC_IN_RGB_SD_NARROW
	.no_dead_strip	_gsc_src_set_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gsc_src_set_size
_gsc_src_set_size:                      ; @gsc_src_set_size
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #16]
	bl	_GSC_SRCIMG_OFFSET_X
	mov	x21, x0
	ldr	w0, [x20, #12]
	bl	_GSC_SRCIMG_OFFSET_Y
	orr	w0, w0, w21
Lloh0:
	adrp	x8, _GSC_SRCIMG_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GSC_SRCIMG_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_gsc_write
	ldr	x0, [x20]
	bl	_GSC_CROPPED_WIDTH
	mov	x21, x0
	ldr	w0, [x20, #8]
	bl	_GSC_CROPPED_HEIGHT
	orr	w0, w0, w21
Lloh3:
	adrp	x8, _GSC_CROPPED_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GSC_CROPPED_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_gsc_write
Lloh6:
	adrp	x22, _GSC_SRCIMG_SIZE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _GSC_SRCIMG_SIZE@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_gsc_read
Lloh8:
	adrp	x8, _GSC_SRCIMG_HEIGHT_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GSC_SRCIMG_HEIGHT_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _GSC_SRCIMG_WIDTH_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _GSC_SRCIMG_WIDTH_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w23, w0, w8
	ldr	x8, [x20, #24]
	ldr	w8, [x8]
	ldr	x9, [x20, #40]
	ldr	x9, [x9]
	ldr	w9, [x9]
	sdiv	w0, w8, w9
	bl	_GSC_SRCIMG_WIDTH
	mov	x21, x0
	ldr	w0, [x20, #32]
	bl	_GSC_SRCIMG_HEIGHT
	orr	w8, w21, w23
	orr	w0, w8, w0
	ldr	w1, [x22]
	bl	_gsc_write
Lloh14:
	adrp	x21, _GSC_IN_CON@GOTPAGE
Lloh15:
	ldr	x21, [x21, _GSC_IN_CON@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_gsc_read
Lloh16:
	adrp	x8, _GSC_IN_RGB_TYPE_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GSC_IN_RGB_TYPE_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	x9, [x20]
Lloh19:
	adrp	x10, _GSC_WIDTH_ITU_709@GOTPAGE
Lloh20:
	ldr	x10, [x10, _GSC_WIDTH_ITU_709@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	ldr	x11, [x19]
	bic	w8, w0, w8
Lloh22:
	adrp	x12, _GSC_IN_RGB_SD_NARROW@GOTPAGE
Lloh23:
	ldr	x12, [x12, _GSC_IN_RGB_SD_NARROW@GOTPAGEOFF]
Lloh24:
	adrp	x13, _GSC_IN_RGB_SD_WIDE@GOTPAGE
Lloh25:
	ldr	x13, [x13, _GSC_IN_RGB_SD_WIDE@GOTPAGEOFF]
	cmp	x11, #0
	csel	x11, x12, x13, eq
Lloh26:
	adrp	x12, _GSC_IN_RGB_HD_NARROW@GOTPAGE
Lloh27:
	ldr	x12, [x12, _GSC_IN_RGB_HD_NARROW@GOTPAGEOFF]
Lloh28:
	adrp	x13, _GSC_IN_RGB_HD_WIDE@GOTPAGE
Lloh29:
	ldr	x13, [x13, _GSC_IN_RGB_HD_WIDE@GOTPAGEOFF]
	csel	x12, x12, x13, eq
	cmp	x9, x10
	csel	x9, x11, x12, lt
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	w1, [x21]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_gsc_write
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GSC_SRCIMG_OFFSET,4,2          ; @GSC_SRCIMG_OFFSET
	.comm	_GSC_CROPPED_SIZE,4,2           ; @GSC_CROPPED_SIZE
	.comm	_GSC_SRCIMG_SIZE,4,2            ; @GSC_SRCIMG_SIZE
	.comm	_GSC_SRCIMG_HEIGHT_MASK,4,2     ; @GSC_SRCIMG_HEIGHT_MASK
	.comm	_GSC_SRCIMG_WIDTH_MASK,4,2      ; @GSC_SRCIMG_WIDTH_MASK
	.comm	_GSC_IN_CON,4,2                 ; @GSC_IN_CON
	.comm	_GSC_IN_RGB_TYPE_MASK,4,2       ; @GSC_IN_RGB_TYPE_MASK
	.comm	_GSC_WIDTH_ITU_709,8,3          ; @GSC_WIDTH_ITU_709
	.comm	_GSC_IN_RGB_HD_WIDE,4,2         ; @GSC_IN_RGB_HD_WIDE
	.comm	_GSC_IN_RGB_HD_NARROW,4,2       ; @GSC_IN_RGB_HD_NARROW
	.comm	_GSC_IN_RGB_SD_WIDE,4,2         ; @GSC_IN_RGB_SD_WIDE
	.comm	_GSC_IN_RGB_SD_NARROW,4,2       ; @GSC_IN_RGB_SD_NARROW
	.no_dead_strip	_gsc_src_set_size
.subsections_via_symbols
