	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfag12864b_clear
_cfag12864b_clear:                      ## @cfag12864b_clear
	.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
	movl	$1, %edi
	movl	$1, %esi
	callq	_cfag12864b_setcontrollers
	movq	_CFAG12864B_PAGES@GOTPCREL(%rip), %r14
	cmpb	$0, (%r14)
	je	LBB0_6
## %bb.1:
	xorl	%r15d, %r15d
	movq	_CFAG12864B_ADDRESSES@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incb	%r15b
	cmpb	(%r14), %r15b
	jae	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movzbl	%r15b, %edi
	callq	_cfag12864b_page
	xorl	%edi, %edi
	callq	_cfag12864b_address
	cmpb	$0, (%r12)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%edi, %edi
	callq	_cfag12864b_writebyte
	incb	%bl
	cmpb	(%r12), %bl
	jb	LBB0_4
	jmp	LBB0_5
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CFAG12864B_PAGES,1,0           ## @CFAG12864B_PAGES
	.comm	_CFAG12864B_ADDRESSES,1,0       ## @CFAG12864B_ADDRESSES
	.no_dead_strip	_cfag12864b_clear
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cfag12864b_clear
_cfag12864b_clear:                      ; @cfag12864b_clear
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	w0, #1
	mov	w1, #1
	bl	_cfag12864b_setcontrollers
Lloh0:
	adrp	x19, _CFAG12864B_PAGES@GOTPAGE
Lloh1:
	ldr	x19, [x19, _CFAG12864B_PAGES@GOTPAGEOFF]
	ldrb	w8, [x19]
	cbz	w8, LBB0_6
; %bb.1:
	mov	w20, #0
Lloh2:
	adrp	x21, _CFAG12864B_ADDRESSES@GOTPAGE
Lloh3:
	ldr	x21, [x21, _CFAG12864B_ADDRESSES@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w20, w20, #1
	ldrb	w8, [x19]
	cmp	w8, w20, uxtb
	b.ls	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	and	w0, w20, #0xff
	bl	_cfag12864b_page
	mov	w0, #0
	bl	_cfag12864b_address
	ldrb	w8, [x21]
	cbz	w8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w22, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	w0, #0
	bl	_cfag12864b_writebyte
	add	w22, w22, #1
	ldrb	w8, [x21]
	cmp	w22, w8
	b.lo	LBB0_5
	b	LBB0_2
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_CFAG12864B_PAGES,1,0           ; @CFAG12864B_PAGES
	.comm	_CFAG12864B_ADDRESSES,1,0       ; @CFAG12864B_ADDRESSES
	.no_dead_strip	_cfag12864b_clear
.subsections_via_symbols
