	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl2_update_input_size
_gl2_update_input_size:                 ## @gl2_update_input_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	movq	8(%rdi), %rax
	cmpl	%esi, (%rcx,%rax,4)
	jne	LBB0_2
## %bb.1:
	movq	16(%rbx), %rdx
	cmpl	%r14d, (%rdx,%rax,4)
	je	LBB0_6
LBB0_2:
	cmpq	$0, 48(%rbx)
	je	LBB0_6
## %bb.3:
	movl	%r15d, (%rcx,%rax,4)
	movq	16(%rbx), %rcx
	movl	%r14d, (%rcx,%rax,4)
	testl	%r8d, %r8d
	je	LBB0_5
## %bb.4:
	movq	_GL_UNPACK_ALIGNMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leal	(,%r15,4), %edi
	callq	_video_pixel_get_alignment
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_glPixelStorei
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%rbx), %r8d
	movl	28(%rbx), %r9d
	movl	60(%rbx), %r10d
	movl	56(%rbx), %eax
	subq	$8, %rsp
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	pushq	48(%rbx)
	pushq	%rax
	pushq	%r10
	callq	_glTexSubImage2D
	addq	$32, %rsp
	jmp	LBB0_5
LBB0_6:
	movslq	36(%rbx), %rsi
	addq	%rsi, %rax
	decq	%rax
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_7
## %bb.8:
	xorl	%edx, %edx
	divq	%rsi
	cmpl	%r15d, (%rcx,%rdx,4)
	je	LBB0_10
	jmp	LBB0_5
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
	cmpl	%r15d, (%rcx,%rdx,4)
	jne	LBB0_5
LBB0_10:
	movq	16(%rbx), %rax
	cmpl	%r14d, (%rax,%rdx,4)
	jne	LBB0_5
## %bb.11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%r15d, %eax
	cvtsi2ss	%rax, %xmm0
	cvtsi2ssl	24(%rbx), %xmm2
	movl	%r14d, %eax
	cvtsi2ss	%rax, %xmm1
	cvtsi2ssl	28(%rbx), %xmm3
	divss	%xmm2, %xmm0
	divss	%xmm3, %xmm1
	movl	40(%rbx), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_texture_coords             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_UNPACK_ALIGNMENT,4,2        ## @GL_UNPACK_ALIGNMENT
	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.comm	_GL_TEXTURE_REFERENCE_BUFFER_SCE,4,2 ## @GL_TEXTURE_REFERENCE_BUFFER_SCE
	.no_dead_strip	_gl2_update_input_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl2_update_input_size
_gl2_update_input_size:                 ; @gl2_update_input_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldp	x8, x9, [x0]
	ldr	w10, [x8, x9, lsl #2]
	cmp	w10, w1
	b.ne	LBB0_2
; %bb.1:
	ldr	x10, [x20, #16]
	ldr	w10, [x10, x9, lsl #2]
	cmp	w10, w19
	b.eq	LBB0_5
LBB0_2:
	ldr	x10, [x20, #48]
	cbz	x10, LBB0_5
; %bb.3:
	lsl	x9, x9, #2
	str	w21, [x8, x9]
	ldr	x8, [x20, #16]
	str	w19, [x8, x9]
	cbz	w4, LBB0_8
; %bb.4:
Lloh0:
	adrp	x8, _GL_UNPACK_ALIGNMENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_UNPACK_ALIGNMENT@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	lsl	w0, w21, #2
	bl	_video_pixel_get_alignment
	mov	x1, x0
	mov	x0, x22
	bl	_glPixelStorei
Lloh3:
	adrp	x8, _GL_TEXTURE_2D@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_TEXTURE_2D@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	w4, w5, [x20, #24]
	ldp	w7, w6, [x20, #56]
	ldr	x8, [x20, #48]
	str	x8, [sp]
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_glTexSubImage2D
	b	LBB0_8
LBB0_5:
	ldrsw	x10, [x20, #36]
	add	x9, x9, x10
	sub	x9, x9, #1
	udiv	x11, x9, x10
	msub	x9, x11, x10, x9
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, w21
	b.ne	LBB0_8
; %bb.6:
	ldr	x8, [x20, #16]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, w19
	b.ne	LBB0_8
; %bb.7:
	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
	add	sp, sp, #64
	ret
LBB0_8:
	ucvtf	s0, w21
	ldp	s1, s2, [x20, #24]
	scvtf	s1, s1
	fdiv	s0, s0, s1
	ucvtf	s1, w19
	scvtf	s2, s2
	fdiv	s1, s1, s2
	ldr	w0, [x20, #40]
	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
	add	sp, sp, #64
	b	_set_texture_coords
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_UNPACK_ALIGNMENT,4,2        ; @GL_UNPACK_ALIGNMENT
	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.comm	_GL_TEXTURE_REFERENCE_BUFFER_SCE,4,2 ; @GL_TEXTURE_REFERENCE_BUFFER_SCE
	.no_dead_strip	_gl2_update_input_size
.subsections_via_symbols
