	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bs_memblt                      ## -- Begin function bs_memblt
	.p2align	4, 0x90
_bs_memblt:                             ## @bs_memblt
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movl	%edi, %r13d
	movl	%esi, -56(%rbp)
	movl	%edx, -52(%rbp)
	movl	%ecx, -48(%rbp)
	movl	%r8d, -44(%rbp)
	leaq	-56(%rbp), %rdi
	leaq	-52(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	leaq	32(%rbp), %r8
	leaq	40(%rbp), %r9
	callq	_bs_warp_coords
	testq	%rax, %rax
	je	LBB0_35
## %bb.1:
	movl	16(%rbp), %r15d
	movq	_g_Bpp@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	cmpl	$12, %r13d
	jne	LBB0_12
## %bb.2:
	cmpl	$2, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.4:
	movslq	40(%rbp), %rax
	movslq	%r15d, %rcx
	imulq	%rax, %rcx
	addq	%rcx, %r14
	movslq	32(%rbp), %r13
	addq	%r14, %r13
	cmpl	$0, -44(%rbp)
	jg	LBB0_8
	jmp	LBB0_35
LBB0_12:
	cmpl	$1, %eax
	je	LBB0_21
## %bb.13:
	cmpl	$2, %eax
	jne	LBB0_28
## %bb.14:
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_35
## %bb.15:
	xorl	%r12d, %r12d
	movl	-48(%rbp), %ecx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	incl	%r12d
	cmpl	%eax, %r12d
	jge	LBB0_35
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	40(%rbp), %eax
	addl	%r12d, %eax
	imull	%r15d, %eax
	addl	32(%rbp), %eax
	addl	%ebx, %eax
	cltq
	movzwl	(%r14,%rax,2), %edx
	movl	-56(%rbp), %edi
	addl	%ebx, %edi
	movl	-52(%rbp), %esi
	addl	%r12d, %esi
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	callq	_bs_set_pixel
	incl	%ebx
	movl	-48(%rbp), %ecx
	cmpl	%ecx, %ebx
	jl	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	-44(%rbp), %eax
	jmp	LBB0_20
LBB0_5:
	movslq	40(%rbp), %rax
	movslq	%r15d, %rcx
	imulq	%rax, %rcx
	leaq	(%r14,%rcx,2), %rax
	movslq	32(%rbp), %rcx
	leaq	(%rax,%rcx,2), %r13
	cmpl	$0, -44(%rbp)
	jg	LBB0_8
	jmp	LBB0_35
LBB0_6:
	movslq	40(%rbp), %rax
	movslq	%r15d, %rcx
	imulq	%rax, %rcx
	leaq	(%r14,%rcx,4), %rax
	movslq	32(%rbp), %rcx
	leaq	(%rax,%rcx,4), %r13
	cmpl	$0, -44(%rbp)
	jle	LBB0_35
LBB0_8:
	xorl	%ebx, %ebx
	movslq	%r15d, %r14
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	%ebx
	cmpl	-44(%rbp), %ebx
	jge	LBB0_35
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	-56(%rbp), %edi
	movl	-52(%rbp), %esi
	addl	%ebx, %esi
	callq	_get_bs_ptr
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r12), %edx
	imull	-48(%rbp), %edx
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_bs_copy_mem
	movslq	(%r12), %rax
	imulq	%r14, %rax
	addq	%rax, %r13
	jmp	LBB0_11
LBB0_21:
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_35
## %bb.22:
	xorl	%r12d, %r12d
	movl	-48(%rbp), %ecx
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_23 Depth=1
	incl	%r12d
	cmpl	%eax, %r12d
	jge	LBB0_35
LBB0_23:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_25 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_25:                                ##   Parent Loop BB0_23 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	40(%rbp), %eax
	addl	%r12d, %eax
	imull	%r15d, %eax
	addl	32(%rbp), %eax
	addl	%ebx, %eax
	cltq
	movzbl	(%r14,%rax), %edx
	movl	-56(%rbp), %edi
	addl	%ebx, %edi
	movl	-52(%rbp), %esi
	addl	%r12d, %esi
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	callq	_bs_set_pixel
	incl	%ebx
	movl	-48(%rbp), %ecx
	cmpl	%ecx, %ebx
	jl	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	-44(%rbp), %eax
	jmp	LBB0_27
LBB0_28:
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_35
## %bb.29:
	xorl	%r12d, %r12d
	movl	-48(%rbp), %ecx
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_30 Depth=1
	incl	%r12d
	cmpl	%eax, %r12d
	jge	LBB0_35
LBB0_30:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_32 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_34
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_32:                                ##   Parent Loop BB0_30 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	40(%rbp), %eax
	addl	%r12d, %eax
	imull	%r15d, %eax
	addl	32(%rbp), %eax
	addl	%ebx, %eax
	cltq
	movl	(%r14,%rax,4), %edx
	movl	-56(%rbp), %edi
	addl	%ebx, %edi
	movl	-52(%rbp), %esi
	addl	%r12d, %esi
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	callq	_bs_set_pixel
	incl	%ebx
	movl	-48(%rbp), %ecx
	cmpl	%ecx, %ebx
	jl	LBB0_32
## %bb.33:                              ##   in Loop: Header=BB0_30 Depth=1
	movl	-44(%rbp), %eax
	jmp	LBB0_34
LBB0_35:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_Bpp,4,2                      ## @g_Bpp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bs_memblt                      ; -- Begin function bs_memblt
	.p2align	2
_bs_memblt:                             ; @bs_memblt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x6
	mov	x20, x5
	mov	x21, x0
	stp	w2, w1, [sp, #8]
	stp	w4, w3, [sp]
	add	x0, sp, #12
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x3, sp
	add	x4, x29, #16
	add	x5, x29, #20
	bl	_bs_warp_coords
	cbz	x0, LBB0_35
; %bb.1:
Lloh0:
	adrp	x22, _g_Bpp@GOTPAGE
Lloh1:
	ldr	x22, [x22, _g_Bpp@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w21, #12
	b.ne	LBB0_5
; %bb.2:
	cmp	w8, #2
	b.eq	LBB0_14
; %bb.3:
	cmp	w8, #1
	b.ne	LBB0_15
; %bb.4:
	sxtw	x8, w19
	ldpsw	x10, x9, [x29, #16]
	madd	x8, x9, x8, x20
	add	x20, x8, x10
	b	LBB0_16
LBB0_5:
	cmp	w8, #1
	b.eq	LBB0_21
; %bb.6:
	cmp	w8, #2
	b.ne	LBB0_28
; %bb.7:
	ldr	w8, [sp]
	cmp	w8, #1
	b.lt	LBB0_35
; %bb.8:
	mov	w22, #0
	ldr	w9, [sp, #4]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w22, w22, #1
	cmp	w22, w8
	b.ge	LBB0_35
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w23, #0
LBB0_12:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w9, w8, [x29, #16]
	add	w8, w22, w8
	madd	w8, w19, w8, w9
	add	w8, w23, w8
	ldrh	w2, [x20, w8, sxtw #1]
	ldr	w8, [sp, #12]
	add	w0, w23, w8
	ldr	w8, [sp, #8]
	add	w1, w8, w22
	mov	x3, x21
	mov	w4, #0
	bl	_bs_set_pixel
	add	w23, w23, #1
	ldr	w9, [sp, #4]
	cmp	w23, w9
	b.lt	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [sp]
	b	LBB0_9
LBB0_14:
	ldp	w9, w8, [x29, #16]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	mul	w8, w8, w19
	add	x8, x20, w8, sxtw #1
	add	x20, x8, x9, lsl #1
	b	LBB0_16
LBB0_15:
	ldp	w9, w8, [x29, #16]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	mul	w8, w8, w19
	add	x8, x20, w8, sxtw #2
	add	x20, x8, x9, lsl #2
LBB0_16:
	ldr	w8, [sp]
	cmp	w8, #1
	b.lt	LBB0_35
; %bb.17:
	mov	w21, #0
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	sxtw	x19, w19
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	w21, w21, #1
	ldr	w8, [sp]
	cmp	w21, w8
	b.ge	LBB0_35
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldp	w8, w0, [sp, #8]
	add	w1, w21, w8
	bl	_get_bs_ptr
	cbz	x0, LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w8, [sp, #4]
	ldr	w9, [x22]
	mul	w2, w9, w8
	mov	x1, x20
	bl	_bs_copy_mem
	ldrsw	x8, [x22]
	madd	x20, x8, x19, x20
	b	LBB0_18
LBB0_21:
	ldr	w8, [sp]
	cmp	w8, #1
	b.lt	LBB0_35
; %bb.22:
	mov	w22, #0
	ldr	w9, [sp, #4]
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	add	w22, w22, #1
	cmp	w22, w8
	b.ge	LBB0_35
LBB0_24:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_26 Depth 2
	cmp	w9, #1
	b.lt	LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	w23, #0
LBB0_26:                                ;   Parent Loop BB0_24 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w9, w8, [x29, #16]
	add	w8, w22, w8
	madd	w8, w19, w8, w9
	add	w8, w23, w8
	ldrb	w2, [x20, w8, sxtw]
	ldr	w8, [sp, #12]
	add	w0, w23, w8
	ldr	w8, [sp, #8]
	add	w1, w8, w22
	mov	x3, x21
	mov	w4, #0
	bl	_bs_set_pixel
	add	w23, w23, #1
	ldr	w9, [sp, #4]
	cmp	w23, w9
	b.lt	LBB0_26
; %bb.27:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	w8, [sp]
	b	LBB0_23
LBB0_28:
	ldr	w8, [sp]
	cmp	w8, #1
	b.lt	LBB0_35
; %bb.29:
	mov	w22, #0
	ldr	w9, [sp, #4]
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=1
	add	w22, w22, #1
	cmp	w22, w8
	b.ge	LBB0_35
LBB0_31:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_33 Depth 2
	cmp	w9, #1
	b.lt	LBB0_30
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	mov	w23, #0
LBB0_33:                                ;   Parent Loop BB0_31 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w9, w8, [x29, #16]
	add	w8, w22, w8
	madd	w8, w19, w8, w9
	add	w8, w23, w8
	ldr	w2, [x20, w8, sxtw #2]
	ldr	w8, [sp, #12]
	add	w0, w23, w8
	ldr	w8, [sp, #8]
	add	w1, w8, w22
	mov	x3, x21
	mov	w4, #0
	bl	_bs_set_pixel
	add	w23, w23, #1
	ldr	w9, [sp, #4]
	cmp	w23, w9
	b.lt	LBB0_33
; %bb.34:                               ;   in Loop: Header=BB0_31 Depth=1
	ldr	w8, [sp]
	b	LBB0_30
LBB0_35:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_g_Bpp,4,2                      ; @g_Bpp
.subsections_via_symbols
