	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function gl2_render_osd_background
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_1:
	.long	0xbba3d70a                      ## float -0.00499999989
LCPI0_2:
	.long	0x3ba3d70a                      ## float 0.00499999989
LCPI0_3:
	.long	0x437f0000                      ## float 255
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_4:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_gl2_render_osd_background:             ## @gl2_render_osd_background
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	$24, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$48, %edi
	callq	_malloc
	movq	%rax, %r13
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_strlen
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	xorl	%edi, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_font_driver_get_message_width
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movq	8(%r14), %rsi
	movq	16(%r14), %rdi
	cvtsi2ss	%rdi, %xmm1
	divss	%xmm1, %xmm0
	cvtsi2ss	%rsi, %xmm2
	movss	(%rbx), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	divss	%xmm2, %xmm1
	movss	4(%rbx), %xmm2                  ## xmm2 = mem[0],zero,zero,zero
	movss	%xmm2, -56(%rbp)                ## 4-byte Spill
	movss	LCPI0_1(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movss	(%r14), %xmm3                   ## xmm3 = mem[0],zero,zero,zero
	addss	%xmm2, %xmm3
	addss	4(%r14), %xmm2
	movss	LCPI0_2(%rip), %xmm4            ## xmm4 = mem[0],zero,zero,zero
	addss	%xmm4, %xmm0
	addss	%xmm4, %xmm1
	movss	8(%rbx), %xmm5                  ## xmm5 = mem[0],zero,zero,zero
	movss	LCPI0_3(%rip), %xmm4            ## xmm4 = mem[0],zero,zero,zero
	divss	%xmm4, %xmm5
	movss	%xmm5, -52(%rbp)                ## 4-byte Spill
	movss	12(%rbx), %xmm5                 ## xmm5 = mem[0],zero,zero,zero
	divss	%xmm4, %xmm5
	movss	%xmm5, -48(%rbp)                ## 4-byte Spill
	movss	16(%rbx), %xmm5                 ## xmm5 = mem[0],zero,zero,zero
	divss	%xmm4, %xmm5
	movss	%xmm5, -44(%rbp)                ## 4-byte Spill
	movss	%xmm3, (%r13)
	movss	%xmm2, 4(%r13)
	movss	%xmm3, 8(%r13)
	addss	%xmm2, %xmm1
	movss	%xmm1, 12(%r13)
	addss	%xmm3, %xmm0
	movss	%xmm0, 16(%r13)
	movss	%xmm1, 20(%r13)
	movss	%xmm3, 24(%r13)
	movss	%xmm2, 28(%r13)
	movss	%xmm0, 32(%r13)
	movss	%xmm1, 36(%r13)
	movss	%xmm0, 40(%r13)
	movss	%xmm2, 44(%r13)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, -176(%rbp)
	movq	%r13, -168(%rbp)
	movq	%r15, -160(%rbp)
	movq	%r15, -152(%rbp)
	movl	$6, -144(%rbp)
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_video_driver_set_viewport
	movq	8(%r12), %rax
	movl	(%r12), %esi
	movq	_VIDEO_SHADER_STOCK_BLEND@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	$1, %ecx
	callq	*24(%rax)
	movq	8(%r12), %rax
	movl	(%r12), %edi
	leaq	-176(%rbp), %rsi
	callq	*16(%rax)
	movq	_GL_BLEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glEnable
	movq	_GL_SRC_ALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GL_ONE_MINUS_SRC_ALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_glBlendFunc
	movq	_GL_FUNC_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glBlendEquation
	movq	8(%r12), %rax
	movl	(%r12), %edi
	leaq	16(%r12), %rsi
	callq	*8(%rax)
	movq	_UNIFORM_4F@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movl	$1, -136(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -88(%rbp)
	movq	_SHADER_PROGRAM_FRAGMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)
	leaq	L_.str(%rip), %rax
	movq	%rax, -112(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -96(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -104(%rbp)
	movss	-52(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -132(%rbp)
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -128(%rbp)
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -124(%rbp)
	movss	-56(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -120(%rbp)
	movq	8(%r12), %rax
	movl	(%r12), %edi
	leaq	-136(%rbp), %rbx
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	*(%rax)
	movq	_GL_TRIANGLES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-144(%rbp), %edx
	xorl	%esi, %esi
	callq	_glDrawArrays
	xorps	%xmm0, %xmm0
	movups	%xmm0, -132(%rbp)
	movq	8(%r12), %rax
	movl	(%r12), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	*(%rax)
	movq	%r15, %rdi
	callq	_free
	movq	%r13, %rdi
	callq	_free
	movq	8(%r14), %rsi
	movq	16(%r14), %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_video_driver_set_viewport
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDEO_SHADER_STOCK_BLEND,4,2   ## @VIDEO_SHADER_STOCK_BLEND
	.comm	_GL_BLEND,4,2                   ## @GL_BLEND
	.comm	_GL_SRC_ALPHA,4,2               ## @GL_SRC_ALPHA
	.comm	_GL_ONE_MINUS_SRC_ALPHA,4,2     ## @GL_ONE_MINUS_SRC_ALPHA
	.comm	_GL_FUNC_ADD,4,2                ## @GL_FUNC_ADD
	.comm	_UNIFORM_4F,4,2                 ## @UNIFORM_4F
	.comm	_SHADER_PROGRAM_FRAGMENT,4,2    ## @SHADER_PROGRAM_FRAGMENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bgcolor"

	.comm	_GL_TRIANGLES,4,2               ## @GL_TRIANGLES
	.no_dead_strip	_gl2_render_osd_background
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl2_render_osd_background
_gl2_render_osd_background:             ; @gl2_render_osd_background
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	d11, d10, [sp, #112]            ; 16-byte Folded Spill
	stp	d9, d8, [sp, #128]              ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	.cfi_offset b8, -88
	.cfi_offset b9, -96
	.cfi_offset b10, -104
	.cfi_offset b11, -112
	mov	x24, x2
	mov	x19, x1
	mov	x20, x0
	mov	w0, #24
	mov	w1, #4
	bl	_calloc
	mov	x21, x0
	mov	w0, #48
	bl	_malloc
	mov	x22, x0
	bl	_config_get_ptr
	mov	x23, x0
	mov	x0, x24
	bl	_strlen
	mov	x2, x0
	fmov	s0, #1.00000000
	mov	x0, #0
	mov	x1, x24
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_font_driver_get_message_width
	scvtf	s0, w0
	ldr	s1, [x23, #16]
	mov	w8, #1132396544
	dup.2s	v2, w8
	fmov	s3, w8
	ldp	s4, s8, [x23]
	mov	w8, #55050
	movk	w8, #48035, lsl #16
	dup.2s	v5, w8
	ldr	d6, [x19]
	fadd.2s	v5, v6, v5
	ldur	q6, [x19, #8]
	mov.s	v4[1], v0[0]
	scvtf.2d	v0, v6
	fcvtn	v0.2s, v0.2d
	fdiv.2s	v0, v4, v0
	mov	w8, #55050
	movk	w8, #15267, lsl #16
	dup.2s	v4, w8
	fadd.2s	v0, v0, v4
	rev64.2s	v4, v5
	fadd.2s	v0, v4, v0
	mov.d	x0, v6[1]
	ldr	d4, [x23, #8]
	str	d5, [x22]
	str	s5, [x22, #8]
	stur	d0, [x22, #12]
	str	s0, [x22, #20]
	str	d5, [x22, #24]
	fdiv	s9, s1, s3
	rev64.2s	v1, v0
	zip2.2s	v0, v0, v5
	fmov	x1, d6
	add	x23, x20, #16
	fdiv.2s	v10, v4, v2
	str	d1, [x22, #32]
	str	d0, [x22, #40]
	stp	x21, x22, [sp, #72]
	stp	x21, x21, [sp, #88]
	mov	w8, #6
	str	w8, [sp, #104]
	mov	w24, #1
	mov	w2, #1
	mov	w3, #0
	bl	_video_driver_set_viewport
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #24]
	ldr	w1, [x20]
Lloh0:
	adrp	x25, _VIDEO_SHADER_STOCK_BLEND@GOTPAGE
Lloh1:
	ldr	x25, [x25, _VIDEO_SHADER_STOCK_BLEND@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x20
	mov	w3, #1
	blr	x8
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #16]
	ldr	w0, [x20]
	add	x1, sp, #72
	blr	x8
Lloh2:
	adrp	x8, _GL_BLEND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GL_BLEND@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_glEnable
Lloh5:
	adrp	x8, _GL_SRC_ALPHA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GL_SRC_ALPHA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _GL_ONE_MINUS_SRC_ALPHA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_ONE_MINUS_SRC_ALPHA@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_glBlendFunc
Lloh11:
	adrp	x8, _GL_FUNC_ADD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GL_FUNC_ADD@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_glBlendEquation
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	ldr	w0, [x20]
	mov	x1, x23
	blr	x8
Lloh14:
	adrp	x8, _UNIFORM_4F@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UNIFORM_4F@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [sp, #64]
	str	w24, [sp]
	stp	xzr, xzr, [sp, #48]
Lloh17:
	adrp	x8, _SHADER_PROGRAM_FRAGMENT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SHADER_PROGRAM_FRAGMENT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, l_.str@PAGE
Lloh21:
	add	x9, x9, l_.str@PAGEOFF
	str	x9, [sp, #24]
	ldr	w9, [x25]
	stp	w9, w8, [sp, #40]
	movi.2s	v0, #1
	str	d0, [sp, #32]
	stur	d10, [sp, #4]
	stp	s9, s8, [sp, #12]
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w0, [x20]
	mov	x1, sp
	mov	x2, #0
	blr	x8
Lloh22:
	adrp	x8, _GL_TRIANGLES@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GL_TRIANGLES@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	w2, [sp, #104]
	mov	w1, #0
	bl	_glDrawArrays
	stur	xzr, [sp, #12]
	stur	xzr, [sp, #4]
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w0, [x20]
	mov	x1, sp
	mov	x2, #0
	blr	x8
	mov	x0, x21
	bl	_free
	mov	x0, x22
	bl	_free
	ldp	x1, x0, [x19, #8]
	mov	w2, #0
	mov	w3, #1
	bl	_video_driver_set_viewport
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #128]              ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDEO_SHADER_STOCK_BLEND,4,2   ; @VIDEO_SHADER_STOCK_BLEND
	.comm	_GL_BLEND,4,2                   ; @GL_BLEND
	.comm	_GL_SRC_ALPHA,4,2               ; @GL_SRC_ALPHA
	.comm	_GL_ONE_MINUS_SRC_ALPHA,4,2     ; @GL_ONE_MINUS_SRC_ALPHA
	.comm	_GL_FUNC_ADD,4,2                ; @GL_FUNC_ADD
	.comm	_UNIFORM_4F,4,2                 ; @UNIFORM_4F
	.comm	_SHADER_PROGRAM_FRAGMENT,4,2    ; @SHADER_PROGRAM_FRAGMENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bgcolor"

	.comm	_GL_TRIANGLES,4,2               ; @GL_TRIANGLES
	.no_dead_strip	_gl2_render_osd_background
.subsections_via_symbols
