	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_background
_draw_background:                       ## @draw_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	8(%rdi), %rbx
	movq	_color_systems@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	movq	(%rbx), %r15
	movq	(%rax), %rdi
	movl	8(%rbx), %r12d
	movl	(%rdi), %edx
	movl	4(%rdi), %esi
	callq	_ff_get_video_buffer
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	(%r14,%r15,4), %r14
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movq	(%rax), %r15
	movl	(%rcx), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	movl	20(%rbx), %r9d
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%r12d, %ecx
	movl	$65535, %r8d                    ## imm = 0xFFFF
	callq	_tongue_outline
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	movl	20(%rbx), %r10d
	movl	12(%rbx), %eax
	movl	16(%rbx), %r11d
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%r12d, %ecx
	movl	$65535, %r8d                    ## imm = 0xFFFF
	movq	%r14, %r9
	pushq	%rax
	pushq	%r11
	pushq	%r10
	pushq	24(%rbx)
	callq	_fill_in_tongue
	addq	$32, %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_color_systems,8,3              ## @color_systems
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_draw_background
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_background
_draw_background:                       ; @draw_background
	.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
Lloh0:
	adrp	x8, _color_systems@GOTPAGE
Lloh1:
	ldr	x8, [x8, _color_systems@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	ldp	x8, x22, [x0]
	ldr	x21, [x22]
	ldr	x0, [x8]
	ldr	w19, [x22, #8]
	ldp	w2, w1, [x0]
	bl	_ff_get_video_buffer
	str	x0, [x22, #32]
	cbz	x0, LBB0_2
; %bb.1:
	add	x20, x20, x21, lsl #2
	ldp	x9, x8, [x0]
	ldr	x21, [x8]
	ldr	w8, [x9]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w1, w8, #1
	ldr	w5, [x22, #20]
	mov	x0, x21
	mov	x2, x19
	mov	x3, x19
	mov	w4, #65535
	bl	_tongue_outline
	ldp	x6, x8, [x22, #24]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w1, w8, #1
	ldp	w8, w7, [x22, #16]
	ldr	w9, [x22, #12]
	stp	w8, w9, [sp]
	mov	x0, x21
	mov	x2, x19
	mov	x3, x19
	mov	w4, #65535
	mov	x5, x20
	bl	_fill_in_tongue
	mov	w0, #0
	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_2:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	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	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_color_systems,8,3              ; @color_systems
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_draw_background
.subsections_via_symbols
