	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_draw_layer_section             ## -- Begin function draw_layer_section
	.p2align	4, 0x90
_draw_layer_section:                    ## @draw_layer_section
	.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	%rsi, %r15
	movq	%rdi, %rbx
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	leaq	1(%rbx), %rdi
	leaq	2(%r15), %r14
	movq	_PIXEL_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_NORM@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rsi
	xorl	%r9d, %r9d
	callq	_draw_string
	jmp	LBB0_3
LBB0_2:
	addq	$-32, %rbx
	leaq	2(%r15), %r14
LBB0_3:
	leaq	32(%rbx), %rdi
	incq	%r15
	movq	_PIXEL_ON@GOTPCREL(%rip), %r12
	movl	(%r12), %r8d
	movq	_NORM@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r15, %rsi
	movl	$9, %edx
	movl	$9, %ecx
	callq	_draw_rect_filled_soft
	addq	$34, %rbx
	movq	_layer@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	$48, %rdx
	movl	(%r12), %ecx
	movq	_XOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%r9d, %r9d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_draw_char                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LAYER"

	.comm	_PIXEL_ON,4,2                   ## @PIXEL_ON
	.comm	_NORM,4,2                       ## @NORM
	.comm	_layer,8,3                      ## @layer
	.comm	_XOR,4,2                        ## @XOR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_draw_layer_section             ; -- Begin function draw_layer_section
	.p2align	2
_draw_layer_section:                    ; @draw_layer_section
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _PIXEL_ON@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PIXEL_ON@GOTPAGEOFF]
Lloh2:
	adrp	x23, _NORM@GOTPAGE
Lloh3:
	ldr	x23, [x23, _NORM@GOTPAGEOFF]
	cbz	w2, LBB0_2
; %bb.1:
	add	x0, x19, #1
	add	x20, x21, #2
	ldr	w3, [x22]
	ldr	w4, [x23]
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x20
	mov	w5, #0
	bl	_draw_string
	b	LBB0_3
LBB0_2:
	sub	x19, x19, #32
	add	x20, x21, #2
LBB0_3:
	add	x0, x19, #32
	add	x1, x21, #1
	ldr	w4, [x22]
	ldr	w5, [x23]
	mov	w2, #9
	mov	w3, #9
	bl	_draw_rect_filled_soft
	add	x0, x19, #34
Lloh6:
	adrp	x8, _layer@GOTPAGE
Lloh7:
	ldr	x8, [x8, _layer@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x2, x8, #48
	ldr	w3, [x22]
Lloh9:
	adrp	x8, _XOR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XOR@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	x1, x20
	mov	w5, #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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_draw_char
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LAYER"

	.comm	_PIXEL_ON,4,2                   ; @PIXEL_ON
	.comm	_NORM,4,2                       ; @NORM
	.comm	_layer,8,3                      ; @layer
	.comm	_XOR,4,2                        ; @XOR
.subsections_via_symbols
