	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function savage_dispatch_swap
_savage_dispatch_swap:                  ## @savage_dispatch_swap
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	movq	%rdx, %r13
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	_BCI_CMD_RECT@GOTPCREL(%rip), %rax
	movq	_BCI_CMD_RECT_XP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movq	_BCI_CMD_RECT_YP@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_BCI_CMD_SRC_PBD_COLOR_NEW@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_BCI_CMD_DEST_GBD@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	%r15d, %edi
	movl	$204, %esi
	callq	_BCI_CMD_SET_ROP
	movl	%r12d, %r12d
	shlq	$5, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$6, %edi
	callq	_BEGIN_DMA
	movl	%r15d, %edi
	callq	_DMA_WRITE
	movl	(%r14), %edi
	callq	_DMA_WRITE
	movl	4(%r14), %edi
	callq	_DMA_WRITE
	movq	(%r13,%rbx), %rsi
	movq	16(%r13,%rbx), %rdi
	callq	_BCI_X_Y
	movl	%eax, %edi
	callq	_DMA_WRITE
	movq	(%r13,%rbx), %rsi
	movq	16(%r13,%rbx), %rdi
	callq	_BCI_X_Y
	movl	%eax, %edi
	callq	_DMA_WRITE
	movq	8(%r13,%rbx), %rsi
	movq	24(%r13,%rbx), %rdi
	subq	16(%r13,%rbx), %rdi
	subq	(%r13,%rbx), %rsi
	callq	_BCI_W_H
	movl	%eax, %edi
	callq	_DMA_WRITE
	xorl	%eax, %eax
	callq	_DMA_COMMIT
	addq	$32, %rbx
	cmpq	%rbx, %r12
	jne	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_LOCALS,4,2                 ## @DMA_LOCALS
	.comm	_BCI_CMD_RECT,4,2               ## @BCI_CMD_RECT
	.comm	_BCI_CMD_RECT_XP,4,2            ## @BCI_CMD_RECT_XP
	.comm	_BCI_CMD_RECT_YP,4,2            ## @BCI_CMD_RECT_YP
	.comm	_BCI_CMD_SRC_PBD_COLOR_NEW,4,2  ## @BCI_CMD_SRC_PBD_COLOR_NEW
	.comm	_BCI_CMD_DEST_GBD,4,2           ## @BCI_CMD_DEST_GBD
	.no_dead_strip	_savage_dispatch_swap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function savage_dispatch_swap
_savage_dispatch_swap:                  ; @savage_dispatch_swap
	.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
	cbz	w1, LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _BCI_CMD_RECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BCI_CMD_RECT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BCI_CMD_RECT_XP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BCI_CMD_RECT_XP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _BCI_CMD_RECT_YP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BCI_CMD_RECT_YP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _BCI_CMD_SRC_PBD_COLOR_NEW@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BCI_CMD_SRC_PBD_COLOR_NEW@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _BCI_CMD_DEST_GBD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BCI_CMD_DEST_GBD@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w20, w8, w9
	mov	x0, x20
	mov	w1, #204
	bl	_BCI_CMD_SET_ROP
	mov	w22, w22
	add	x21, x21, #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #6
	bl	_BEGIN_DMA
	mov	x0, x20
	bl	_DMA_WRITE
	ldr	w0, [x19]
	bl	_DMA_WRITE
	ldr	w0, [x19, #4]
	bl	_DMA_WRITE
	ldr	x0, [x21]
	ldur	x1, [x21, #-16]
	bl	_BCI_X_Y
	bl	_DMA_WRITE
	ldr	x0, [x21]
	ldur	x1, [x21, #-16]
	bl	_BCI_X_Y
	bl	_DMA_WRITE
	ldp	x9, x8, [x21]
	sub	x0, x8, x9
	ldp	x9, x8, [x21, #-16]
	sub	x1, x8, x9
	bl	_BCI_W_H
	bl	_DMA_WRITE
	bl	_DMA_COMMIT
	add	x21, x21, #32
	subs	x22, x22, #1
	b.ne	LBB0_2
LBB0_3:
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_LOCALS,4,2                 ; @DMA_LOCALS
	.comm	_BCI_CMD_RECT,4,2               ; @BCI_CMD_RECT
	.comm	_BCI_CMD_RECT_XP,4,2            ; @BCI_CMD_RECT_XP
	.comm	_BCI_CMD_RECT_YP,4,2            ; @BCI_CMD_RECT_YP
	.comm	_BCI_CMD_SRC_PBD_COLOR_NEW,4,2  ; @BCI_CMD_SRC_PBD_COLOR_NEW
	.comm	_BCI_CMD_DEST_GBD,4,2           ; @BCI_CMD_DEST_GBD
	.no_dead_strip	_savage_dispatch_swap
.subsections_via_symbols
