	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RB_TakeScreenshotJPEG          ## -- Begin function RB_TakeScreenshotJPEG
	.p2align	4, 0x90
_RB_TakeScreenshotJPEG:                 ## @RB_TakeScreenshotJPEG
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movl	%esi, %r13d
	movl	%edi, %r14d
	movq	_ri@GOTPCREL(%rip), %rax
	movq	_glConfig@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	imull	4(%r15), %edi
	shll	$2, %edi
	callq	*16(%rax)
	movq	%rax, %r12
	movq	_GL_RGBA@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_GL_UNSIGNED_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r12, (%rsp)
	movl	%r14d, %edi
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_qglReadPixels
	movq	_tr@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	cmpq	$0, 8(%r15)
	je	LBB0_3
## %bb.2:
	movl	(%r15), %esi
	imull	4(%r15), %esi
	shll	$2, %esi
	movq	%r12, %rdi
	callq	_R_GammaCorrect
LBB0_3:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	movq	_ri@GOTPCREL(%rip), %r14
	callq	*8(%r14)
	movl	(%r15), %edx
	movl	4(%r15), %ecx
	movq	%rbx, %rdi
	movl	$95, %esi
	movq	%r12, %r8
	callq	_SaveJPG
	movq	%r12, %rdi
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*(%rax)                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ri,24,3                        ## @ri
	.comm	_glConfig,16,3                  ## @glConfig
	.comm	_GL_RGBA,4,2                    ## @GL_RGBA
	.comm	_GL_UNSIGNED_BYTE,4,2           ## @GL_UNSIGNED_BYTE
	.comm	_tr,8,3                         ## @tr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RB_TakeScreenshotJPEG          ; -- Begin function RB_TakeScreenshotJPEG
	.p2align	2
_RB_TakeScreenshotJPEG:                 ; @RB_TakeScreenshotJPEG
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x25, _ri@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ri@GOTPAGEOFF]
	ldr	x8, [x25, #16]
Lloh2:
	adrp	x26, _glConfig@GOTPAGE
Lloh3:
	ldr	x26, [x26, _glConfig@GOTPAGEOFF]
	ldp	w9, w10, [x26]
	mul	w9, w9, w10
	lsl	w0, w9, #2
	blr	x8
	mov	x20, x0
Lloh4:
	adrp	x8, _GL_RGBA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GL_RGBA@GOTPAGEOFF]
Lloh6:
	ldr	w4, [x8]
Lloh7:
	adrp	x8, _GL_UNSIGNED_BYTE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GL_UNSIGNED_BYTE@GOTPAGEOFF]
Lloh9:
	ldr	w5, [x8]
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x6, x20
	bl	_qglReadPixels
Lloh10:
	adrp	x8, _tr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _tr@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x9, [x26, #8]
	cmp	x8, #1
	ccmp	x9, #0, #4, ge
	b.eq	LBB0_2
; %bb.1:
	ldp	w8, w9, [x26]
	mul	w8, w8, w9
	lsl	w1, w8, #2
	mov	x0, x20
	bl	_R_GammaCorrect
LBB0_2:
	ldr	x8, [x25, #8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	blr	x8
	ldp	w2, w3, [x26]
	mov	x0, x19
	mov	w1, #95
	mov	x4, x20
	bl	_SaveJPG
	ldr	x1, [x25]
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	br	x1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ri,24,3                        ; @ri
	.comm	_glConfig,16,3                  ; @glConfig
	.comm	_GL_RGBA,4,2                    ; @GL_RGBA
	.comm	_GL_UNSIGNED_BYTE,4,2           ; @GL_UNSIGNED_BYTE
	.comm	_tr,8,3                         ; @tr
.subsections_via_symbols
