	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ofwfb_putc32
_ofwfb_putc32:                          ## @ofwfb_putc32
	.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
	movl	%ecx, %r12d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movl	(%rdi), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	4(%rdi), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	8(%rdi), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	imull	%eax, %edx
	movslq	%edx, %r13
	shlq	$2, %r13
	addq	(%rdi), %r13
	movq	24(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	12(%rdi), %r15d
	movl	16(%rdi), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movslq	20(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%ecx, %edi
	callq	_ofwfb_foreground
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ofwfb_pix32
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_ofwfb_background
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ofwfb_pix32
	cmpl	$0, 8(%r14)
	jle	LBB0_3
## %bb.1:
	movl	%eax, %ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	3(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cltd
	idivl	-48(%rbp)                       ## 4-byte Folded Reload
	sarl	$2, %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	imull	%eax, %edi
	addl	%edi, %r15d
	imull	%esi, %r15d
	movslq	%r15d, %rax
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rsi,%rax,4), %rax
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	imull	%edx, %esi
	movslq	%esi, %rdx
	leaq	(%rax,%rdx,4), %rax
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rax,%rdx,4), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testb	$-128, (%r13,%rdx,4)
	movl	%ebx, %esi
	cmovel	%ecx, %esi
	movl	%esi, (%rax)
	testb	$64, (%r13,%rdx,4)
	movl	%ebx, %esi
	cmovel	%ecx, %esi
	movl	%esi, 4(%rax)
	testb	$32, (%r13,%rdx,4)
	movl	%ebx, %esi
	cmovel	%ecx, %esi
	movl	%esi, 8(%rax)
	testb	$16, (%r13,%rdx,4)
	movl	%ebx, %esi
	cmovel	%ecx, %esi
	movl	%esi, 12(%rax)
	testb	$8, (%r13,%rdx,4)
	movl	%ebx, %esi
	cmovel	%ecx, %esi
	movl	%esi, 16(%rax)
	testb	$4, (%r13,%rdx,4)
	movl	%ebx, %esi
	cmovel	%ecx, %esi
	movl	%esi, 20(%rax)
	testb	$2, (%r13,%rdx,4)
	movl	%ebx, %esi
	cmovel	%ecx, %esi
	movl	%esi, 24(%rax)
	testb	$1, (%r13,%rdx,4)
	movl	%ebx, %esi
	cmovel	%ecx, %esi
	movl	%esi, 28(%rax)
	movl	16(%r14), %esi
	leal	3(%rsi), %edi
	testl	%esi, %esi
	cmovnsl	%esi, %edi
	sarl	$2, %edi
	movslq	%edi, %rsi
	leaq	(%rax,%rsi,4), %rax
	incq	%rdx
	movslq	8(%r14), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ofwfb_putc32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ofwfb_putc32
_ofwfb_putc32:                          ; @ofwfb_putc32
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x23, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldp	w24, w8, [x0]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	ldp	w25, w26, [x0, #8]
	ldr	x27, [x0]
	ldr	x9, [x0, #24]
	ldp	w28, w8, [x0, #16]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	stp	x9, x8, [sp, #8]                ; 16-byte Folded Spill
	mov	x0, x3
	bl	_ofwfb_foreground
	mov	x1, x0
	mov	x0, x19
	bl	_ofwfb_pix32
	mov	x20, x0
	mov	x0, x23
	bl	_ofwfb_background
	mov	x1, x0
	mov	x0, x19
	bl	_ofwfb_pix32
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x8, #0
	mul	w9, w25, w22
	add	x9, x27, w9, sxtw #2
	add	w10, w28, #3
	cmp	w28, #0
	csel	w10, w10, w28, lt
	sdiv	w11, w21, w24
	ldr	w12, [sp, #28]                  ; 4-byte Folded Reload
	madd	w12, w12, w11, w26
	asr	w10, w10, #2
	mul	w10, w10, w12
	ldr	x12, [sp, #8]                   ; 8-byte Folded Reload
	add	x10, x12, w10, sxtw #2
	msub	w11, w11, w24, w21
	mul	w11, w25, w11
	add	x10, x10, w11, sxtw #2
	ldr	x11, [sp, #16]                  ; 8-byte Folded Reload
	add	x10, x10, x11, lsl #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x11, x8, #2
	ldr	w12, [x9, x11]
	tst	w12, #0x80
	csel	w12, w0, w20, eq
	str	w12, [x10]
	ldr	w12, [x9, x11]
	tst	w12, #0x40
	csel	w12, w0, w20, eq
	str	w12, [x10, #4]
	ldr	w12, [x9, x11]
	tst	w12, #0x20
	csel	w12, w0, w20, eq
	str	w12, [x10, #8]
	ldr	w12, [x9, x11]
	tst	w12, #0x10
	csel	w12, w0, w20, eq
	str	w12, [x10, #12]
	ldr	w12, [x9, x11]
	tst	w12, #0x8
	csel	w12, w0, w20, eq
	str	w12, [x10, #16]
	ldr	w12, [x9, x11]
	tst	w12, #0x4
	csel	w12, w0, w20, eq
	str	w12, [x10, #20]
	ldr	w12, [x9, x11]
	tst	w12, #0x2
	csel	w12, w0, w20, eq
	str	w12, [x10, #24]
	ldr	w11, [x9, x11]
	tst	w11, #0x1
	csel	w11, w0, w20, eq
	str	w11, [x10, #28]
	ldr	w11, [x19, #16]
	add	w12, w11, #3
	cmp	w11, #0
	csel	w11, w12, w11, lt
	asr	w11, w11, #2
	add	x10, x10, w11, sxtw #2
	add	x8, x8, #1
	ldrsw	x11, [x19, #8]
	cmp	x8, x11
	b.lt	LBB0_2
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ofwfb_putc32
.subsections_via_symbols
