	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_bkg_attr                   ## -- Begin function set_bkg_attr
	.p2align	4, 0x90
_set_bkg_attr:                          ## @set_bkg_attr
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_VBK_REG@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	testq	%rcx, %rcx
	jle	LBB0_14
## %bb.1:
	movq	%r8, %rbx
	movq	%rdx, %r13
	leaq	-1(%rdx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, %r15d
	andl	$3, %r15d
	movq	%rdx, %r12
	andq	$-4, %r12
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_msg_tile@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r14,%rax), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	_set_bkg_tiles
	incq	%r14
	cmpq	-72(%rbp), %r14                 ## 8-byte Folded Reload
	je	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
	testq	%r13, %r13
	jle	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_bkgCGB@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_msg_tile@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	cmpq	$3, -48(%rbp)                   ## 8-byte Folded Reload
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	testq	%r15, %r15
	jne	LBB0_10
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rbx,%rcx), %edx
	movl	(%rax,%rdx,4), %edx
	movl	%edx, (%r8,%rcx,4)
	movzbl	1(%rbx,%rcx), %edx
	movl	(%rax,%rdx,4), %edx
	movl	%edx, 4(%r8,%rcx,4)
	movzbl	2(%rbx,%rcx), %edx
	movl	(%rax,%rdx,4), %edx
	movl	%edx, 8(%r8,%rcx,4)
	movzbl	3(%rbx,%rcx), %edx
	movl	(%rax,%rdx,4), %edx
	movl	%edx, 12(%r8,%rcx,4)
	addq	$4, %rcx
	cmpq	%rcx, %r12
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%rcx, %rbx
	testq	%r15, %r15
	je	LBB0_13
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r8,%rcx,4), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rbx,%rcx), %esi
	movl	(%rax,%rsi,4), %esi
	movl	%esi, (%rdx,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %r15
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	addq	%rcx, %rbx
	jmp	LBB0_13
LBB0_14:
	movq	_VBK_REG@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VBK_REG,4,2                    ## @VBK_REG
	.comm	_bkgCGB,8,3                     ## @bkgCGB
	.comm	_msg_tile,8,3                   ## @msg_tile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_bkg_attr                   ; -- Begin function set_bkg_attr
	.p2align	2
_set_bkg_attr:                          ; @set_bkg_attr
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 w27, -88
	.cfi_offset w28, -96
	mov	w8, #1
Lloh0:
	adrp	x24, _VBK_REG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _VBK_REG@GOTPAGEOFF]
	str	w8, [x24]
	cmp	x3, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	x25, #0
Lloh2:
	adrp	x26, _bkgCGB@GOTPAGE
Lloh3:
	ldr	x26, [x26, _bkgCGB@GOTPAGEOFF]
Lloh4:
	adrp	x27, _msg_tile@GOTPAGE
Lloh5:
	ldr	x27, [x27, _msg_tile@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x4, [x27]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, x25, x22
	mov	x0, x23
	mov	x2, x21
	mov	w3, #1
	bl	_set_bkg_tiles
	add	x25, x25, #1
	cmp	x25, x20
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	cmp	x21, #0
	b.le	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
	ldr	x9, [x26]
	ldr	x4, [x27]
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w10, [x19, x8]
	ldr	w10, [x9, x10, lsl #2]
	str	w10, [x4, x8, lsl #2]
	add	x8, x8, #1
	cmp	x21, x8
	b.ne	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x19, x19, x8
	b	LBB0_3
LBB0_8:
	str	wzr, [x24]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_VBK_REG,4,2                    ; @VBK_REG
	.comm	_bkgCGB,8,3                     ; @bkgCGB
	.comm	_msg_tile,8,3                   ; @msg_tile
.subsections_via_symbols
