	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_triblt
_process_triblt:                        ## @process_triblt
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movq	%rsi, %r15
	movl	%edi, %r14d
	testb	$1, %bl
	jne	LBB0_1
## %bb.2:
	testb	$2, %bl
	jne	LBB0_3
LBB0_4:
	testb	$4, %bl
	jne	LBB0_5
LBB0_6:
	testb	$8, %bl
	jne	LBB0_7
LBB0_8:
	testb	$16, %bl
	jne	LBB0_9
LBB0_10:
	testb	$32, %bl
	jne	LBB0_11
LBB0_12:
	testb	$64, %bl
	jne	LBB0_13
LBB0_14:
	testb	$-128, %bl
	jne	LBB0_15
LBB0_16:
	testl	$256, %ebx                      ## imm = 0x100
	jne	LBB0_17
LBB0_18:
	testl	$512, %ebx                      ## imm = 0x200
	je	LBB0_20
LBB0_19:
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_rdp_in_colour
LBB0_20:
	leaq	36(%r15), %r12
	movl	%ebx, %edx
	sarl	$10, %edx
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_rdp_parse_brush
	testl	$32768, %ebx                    ## imm = 0x8000
	je	LBB0_22
## %bb.21:
	movl	40(%r15), %esi
	movl	%r14d, %edi
	callq	_in_uint16_le
LBB0_22:
	testl	$65536, %ebx                    ## imm = 0x10000
	je	LBB0_24
## %bb.23:
	movl	48(%r15), %esi
	movl	%r14d, %edi
	callq	_in_uint16_le
LBB0_24:
	movslq	(%r15), %rdi
	callq	_DEBUG
	movl	40(%r15), %esi
	movl	44(%r15), %edi
	callq	_cache_get_bitmap
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	%rax, %rbx
	leaq	-36(%rbp), %r14
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_setup_brush
	movl	32(%r15), %edi
	movl	28(%r15), %esi
	movl	24(%r15), %edx
	movl	20(%r15), %ecx
	movl	16(%r15), %r8d
	movl	12(%r15), %r10d
	movl	8(%r15), %r11d
	movl	(%r15), %eax
	movl	4(%r15), %r15d
	subq	$8, %rsp
	movq	%rbx, %r9
	pushq	%rax
	pushq	%r15
	pushq	%r14
	pushq	%r11
	pushq	%r10
	callq	_ui_triblt
	addq	$48, %rsp
LBB0_26:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	44(%r15), %esi
	movl	%r14d, %edi
	callq	_in_uint8
	movl	52(%r15), %esi
	movl	%r14d, %edi
	callq	_in_uint8
	testb	$2, %bl
	je	LBB0_4
LBB0_3:
	leaq	28(%r15), %rsi
	movl	%r14d, %edi
	movl	%r12d, %edx
	callq	_rdp_in_coord
	testb	$4, %bl
	je	LBB0_6
LBB0_5:
	leaq	24(%r15), %rsi
	movl	%r14d, %edi
	movl	%r12d, %edx
	callq	_rdp_in_coord
	testb	$8, %bl
	je	LBB0_8
LBB0_7:
	leaq	20(%r15), %rsi
	movl	%r14d, %edi
	movl	%r12d, %edx
	callq	_rdp_in_coord
	testb	$16, %bl
	je	LBB0_10
LBB0_9:
	leaq	16(%r15), %rsi
	movl	%r14d, %edi
	movl	%r12d, %edx
	callq	_rdp_in_coord
	testb	$32, %bl
	je	LBB0_12
LBB0_11:
	movl	32(%r15), %esi
	movl	%r14d, %edi
	callq	_in_uint8
	testb	$64, %bl
	je	LBB0_14
LBB0_13:
	leaq	12(%r15), %rsi
	movl	%r14d, %edi
	movl	%r12d, %edx
	callq	_rdp_in_coord
	testb	$-128, %bl
	je	LBB0_16
LBB0_15:
	leaq	8(%r15), %rsi
	movl	%r14d, %edi
	movl	%r12d, %edx
	callq	_rdp_in_coord
	testl	$256, %ebx                      ## imm = 0x100
	je	LBB0_18
LBB0_17:
	leaq	4(%r15), %rsi
	movl	%r14d, %edi
	callq	_rdp_in_colour
	testl	$512, %ebx                      ## imm = 0x200
	jne	LBB0_19
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_process_triblt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_triblt
_process_triblt:                        ; @process_triblt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	tbnz	w2, #0, LBB0_18
; %bb.1:
	tbnz	w21, #1, LBB0_19
LBB0_2:
	tbnz	w21, #2, LBB0_20
LBB0_3:
	tbnz	w21, #3, LBB0_21
LBB0_4:
	tbnz	w21, #4, LBB0_22
LBB0_5:
	tbnz	w21, #5, LBB0_23
LBB0_6:
	tbnz	w21, #6, LBB0_24
LBB0_7:
	tbnz	w21, #7, LBB0_25
LBB0_8:
	tbnz	w21, #8, LBB0_26
LBB0_9:
	tbz	w21, #9, LBB0_11
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_rdp_in_colour
LBB0_11:
	add	x22, x19, #36
	asr	w2, w21, #10
	mov	x0, x20
	mov	x1, x22
	bl	_rdp_parse_brush
	tbz	w21, #15, LBB0_13
; %bb.12:
	ldr	w1, [x19, #40]
	mov	x0, x20
	bl	_in_uint16_le
LBB0_13:
	tbz	w21, #16, LBB0_15
; %bb.14:
	ldr	w1, [x19, #48]
	mov	x0, x20
	bl	_in_uint16_le
LBB0_15:
	ldrsw	x0, [x19]
	bl	_DEBUG
	ldp	w1, w0, [x19, #40]
	bl	_cache_get_bitmap
	cbz	x0, LBB0_17
; %bb.16:
	mov	x20, x0
	add	x21, sp, #28
	add	x0, sp, #28
	mov	x1, x22
	bl	_setup_brush
	ldp	w1, w0, [x19, #28]
	ldp	w3, w2, [x19, #20]
	ldp	w6, w4, [x19, #12]
	ldp	w8, w7, [x19, #4]
	ldr	w9, [x19]
	stp	w8, w9, [sp, #8]
	str	x21, [sp]
	mov	x5, x20
	bl	_ui_triblt
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_18:
	ldr	w1, [x19, #44]
	mov	x0, x20
	bl	_in_uint8
	ldr	w1, [x19, #52]
	mov	x0, x20
	bl	_in_uint8
	tbz	w21, #1, LBB0_2
LBB0_19:
	add	x1, x19, #28
	mov	x0, x20
	mov	x2, x22
	bl	_rdp_in_coord
	tbz	w21, #2, LBB0_3
LBB0_20:
	add	x1, x19, #24
	mov	x0, x20
	mov	x2, x22
	bl	_rdp_in_coord
	tbz	w21, #3, LBB0_4
LBB0_21:
	add	x1, x19, #20
	mov	x0, x20
	mov	x2, x22
	bl	_rdp_in_coord
	tbz	w21, #4, LBB0_5
LBB0_22:
	add	x1, x19, #16
	mov	x0, x20
	mov	x2, x22
	bl	_rdp_in_coord
	tbz	w21, #5, LBB0_6
LBB0_23:
	ldr	w1, [x19, #32]
	mov	x0, x20
	bl	_in_uint8
	tbz	w21, #6, LBB0_7
LBB0_24:
	add	x1, x19, #12
	mov	x0, x20
	mov	x2, x22
	bl	_rdp_in_coord
	tbz	w21, #7, LBB0_8
LBB0_25:
	add	x1, x19, #8
	mov	x0, x20
	mov	x2, x22
	bl	_rdp_in_coord
	tbz	w21, #8, LBB0_9
LBB0_26:
	add	x1, x19, #4
	mov	x0, x20
	bl	_rdp_in_colour
	tbnz	w21, #9, LBB0_10
	b	LBB0_11
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_process_triblt
.subsections_via_symbols
