	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bs_screenblt                   ## -- Begin function bs_screenblt
	.p2align	4, 0x90
_bs_screenblt:                          ## @bs_screenblt
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movl	%esi, -48(%rbp)
	movl	%edx, -52(%rbp)
	movl	%ecx, -44(%rbp)
	movl	%r8d, -36(%rbp)
	movl	%r9d, -40(%rbp)
	leaq	-48(%rbp), %rdi
	leaq	-52(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	leaq	-40(%rbp), %r8
	leaq	16(%rbp), %r9
	callq	_bs_warp_coords
	testq	%rax, %rax
	je	LBB0_49
## %bb.1:
	movl	16(%rbp), %esi
	movl	-52(%rbp), %eax
	cmpl	$12, %r14d
	jne	LBB0_26
## %bb.2:
	cmpl	%eax, %esi
	jge	LBB0_10
## %bb.3:
	movl	-36(%rbp), %ebx
	testl	%ebx, %ebx
	jle	LBB0_49
## %bb.4:
	decl	%ebx
	movq	_g_Bpp@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leal	1(%rbx), %r12d
	movl	-40(%rbp), %edi
	addl	%ebx, %esi
	callq	_get_bs_ptr
	movq	%rax, %r14
	movl	-48(%rbp), %edi
	movl	-52(%rbp), %esi
	addl	%ebx, %esi
	callq	_get_bs_ptr
	testq	%r14, %r14
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r15), %edx
	imull	-44(%rbp), %edx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_bs_copy_mem
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$2, %r12d
	jb	LBB0_49
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	16(%rbp), %esi
	decl	%ebx
	jmp	LBB0_5
LBB0_26:
	cmpl	%eax, %esi
	jge	LBB0_33
## %bb.27:
	movl	-36(%rbp), %r12d
	testl	%r12d, %r12d
	jle	LBB0_49
## %bb.28:
	movl	-44(%rbp), %eax
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_30 Depth=1
	cmpl	$2, %r15d
	jl	LBB0_49
LBB0_30:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_32 Depth 2
	movl	%r12d, %r15d
	leal	-1(%r15), %r12d
	testl	%eax, %eax
	jle	LBB0_29
## %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), %edi
	addl	%ebx, %edi
	movl	16(%rbp), %esi
	addl	%r12d, %esi
	callq	_bs_get_pixel
	movl	-48(%rbp), %edi
	addl	%ebx, %edi
	movl	-52(%rbp), %esi
	addl	%r12d, %esi
	movl	%eax, %edx
	movl	%r14d, %ecx
	xorl	%r8d, %r8d
	callq	_bs_set_pixel
	incl	%ebx
	movl	-44(%rbp), %eax
	cmpl	%eax, %ebx
	jl	LBB0_32
	jmp	LBB0_29
LBB0_10:
	jg	LBB0_19
## %bb.11:
	movl	-40(%rbp), %edi
	cmpl	-48(%rbp), %edi
	jle	LBB0_12
LBB0_19:
	cmpl	$0, -36(%rbp)
	jle	LBB0_49
## %bb.20:
	xorl	%ebx, %ebx
	movq	_g_Bpp@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	-40(%rbp), %edi
	addl	%ebx, %esi
	callq	_get_bs_ptr
	movq	%rax, %r14
	movl	-48(%rbp), %edi
	movl	-52(%rbp), %esi
	addl	%ebx, %esi
	callq	_get_bs_ptr
	testq	%r14, %r14
	je	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	(%r15), %edx
	imull	-44(%rbp), %edx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_bs_copy_mem
LBB0_24:                                ##   in Loop: Header=BB0_21 Depth=1
	incl	%ebx
	cmpl	-36(%rbp), %ebx
	jge	LBB0_49
## %bb.25:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	16(%rbp), %esi
	jmp	LBB0_21
LBB0_33:
	jg	LBB0_42
## %bb.34:
	movl	-40(%rbp), %eax
	cmpl	-48(%rbp), %eax
	jle	LBB0_35
LBB0_42:
	movl	-36(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_49
## %bb.43:
	xorl	%r15d, %r15d
	movl	-44(%rbp), %ecx
	jmp	LBB0_44
	.p2align	4, 0x90
LBB0_48:                                ##   in Loop: Header=BB0_44 Depth=1
	incl	%r15d
	cmpl	%eax, %r15d
	jge	LBB0_49
LBB0_44:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_46 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_48
## %bb.45:                              ##   in Loop: Header=BB0_44 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_46:                                ##   Parent Loop BB0_44 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-40(%rbp), %edi
	addl	%ebx, %edi
	movl	16(%rbp), %esi
	addl	%r15d, %esi
	callq	_bs_get_pixel
	movl	-48(%rbp), %edi
	addl	%ebx, %edi
	movl	-52(%rbp), %esi
	addl	%r15d, %esi
	movl	%eax, %edx
	movl	%r14d, %ecx
	xorl	%r8d, %r8d
	callq	_bs_set_pixel
	incl	%ebx
	movl	-44(%rbp), %ecx
	cmpl	%ecx, %ebx
	jl	LBB0_46
## %bb.47:                              ##   in Loop: Header=BB0_44 Depth=1
	movl	-36(%rbp), %eax
	jmp	LBB0_48
LBB0_12:
	cmpl	$0, -36(%rbp)
	jle	LBB0_49
## %bb.13:
	xorl	%ebx, %ebx
	movq	_g_Bpp@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	addl	%ebx, %esi
	callq	_get_bs_ptr
	movq	%rax, %r14
	movl	-48(%rbp), %edi
	movl	-52(%rbp), %esi
	addl	%ebx, %esi
	callq	_get_bs_ptr
	testq	%r14, %r14
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r15), %edx
	imull	-44(%rbp), %edx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_bs_copy_memb
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	incl	%ebx
	cmpl	-36(%rbp), %ebx
	jge	LBB0_49
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	-40(%rbp), %edi
	movl	16(%rbp), %esi
	jmp	LBB0_14
LBB0_35:
	movl	-36(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_49
## %bb.36:
	xorl	%r15d, %r15d
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_37 Depth=1
	incl	%r15d
	cmpl	%eax, %r15d
	jge	LBB0_49
LBB0_37:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_39 Depth 2
	movl	-44(%rbp), %ebx
	testl	%ebx, %ebx
	jle	LBB0_41
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=1
	decl	%ebx
	.p2align	4, 0x90
LBB0_39:                                ##   Parent Loop BB0_37 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-40(%rbp), %edi
	addl	%ebx, %edi
	movl	16(%rbp), %esi
	addl	%r15d, %esi
	callq	_bs_get_pixel
	movl	-48(%rbp), %edi
	addl	%ebx, %edi
	movl	-52(%rbp), %esi
	addl	%r15d, %esi
	movl	%eax, %edx
	movl	%r14d, %ecx
	xorl	%r8d, %r8d
	callq	_bs_set_pixel
	leal	-1(%rbx), %eax
	incl	%ebx
	cmpl	$1, %ebx
	movl	%eax, %ebx
	ja	LBB0_39
## %bb.40:                              ##   in Loop: Header=BB0_37 Depth=1
	movl	-36(%rbp), %eax
	jmp	LBB0_41
LBB0_49:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	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_screenblt                   ; -- Begin function bs_screenblt
	.p2align	2
_bs_screenblt:                          ; @bs_screenblt
	.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	x19, x0
	stp	w2, w1, [sp, #24]
	stp	w4, w3, [sp, #16]
	stp	w6, w5, [sp, #8]
	add	x0, sp, #28
	add	x1, sp, #24
	add	x2, sp, #20
	add	x3, sp, #16
	add	x4, sp, #12
	add	x5, sp, #8
	bl	_bs_warp_coords
	cbz	x0, LBB0_46
; %bb.1:
	ldr	w8, [sp, #8]
	ldr	w9, [sp, #24]
	cmp	w19, #12
	b.ne	LBB0_9
; %bb.2:
	cmp	w8, w9
	b.ge	LBB0_16
; %bb.3:
	ldr	w9, [sp, #16]
	subs	w20, w9, #1
	b.lt	LBB0_46
; %bb.4:
Lloh0:
	adrp	x21, _g_Bpp@GOTPAGE
Lloh1:
	ldr	x21, [x21, _g_Bpp@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [sp, #12]
	add	w1, w8, w20
	bl	_get_bs_ptr
	mov	x19, x0
	ldp	w8, w0, [sp, #24]
	add	w1, w20, w8
	bl	_get_bs_ptr
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #20]
	ldr	w9, [x21]
	mul	w2, w9, w8
	mov	x1, x19
	bl	_bs_copy_mem
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w20, #1
	cmp	w8, #2
	b.lo	LBB0_46
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #8]
	sub	w20, w20, #1
	b	LBB0_5
LBB0_9:
	cmp	w8, w9
	b.ge	LBB0_24
; %bb.10:
	ldr	w20, [sp, #16]
	cmp	w20, #1
	b.lt	LBB0_46
; %bb.11:
	ldr	w8, [sp, #20]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	cmp	w20, #1
	mov	x20, x21
	b.le	LBB0_46
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	sub	w21, w20, #1
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w22, #0
LBB0_15:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [sp, #12]
	add	w0, w22, w8
	ldr	w8, [sp, #8]
	add	w1, w8, w21
	bl	_bs_get_pixel
	mov	x2, x0
	ldr	w8, [sp, #28]
	add	w0, w22, w8
	ldr	w8, [sp, #24]
	add	w1, w8, w21
	mov	x3, x19
	mov	w4, #0
	bl	_bs_set_pixel
	add	w22, w22, #1
	ldr	w8, [sp, #20]
	cmp	w22, w8
	b.lt	LBB0_15
	b	LBB0_12
LBB0_16:
	b.gt	LBB0_18
; %bb.17:
	ldr	w0, [sp, #12]
	ldr	w9, [sp, #28]
	cmp	w0, w9
	b.le	LBB0_33
LBB0_18:
	ldr	w9, [sp, #16]
	cmp	w9, #1
	b.lt	LBB0_46
; %bb.19:
	mov	w20, #0
Lloh2:
	adrp	x21, _g_Bpp@GOTPAGE
Lloh3:
	ldr	x21, [x21, _g_Bpp@GOTPAGEOFF]
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [sp, #12]
	add	w1, w8, w20
	bl	_get_bs_ptr
	mov	x19, x0
	ldp	w8, w0, [sp, #24]
	add	w1, w20, w8
	bl	_get_bs_ptr
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w8, [sp, #20]
	ldr	w9, [x21]
	mul	w2, w9, w8
	mov	x1, x19
	bl	_bs_copy_mem
LBB0_22:                                ;   in Loop: Header=BB0_20 Depth=1
	add	w20, w20, #1
	ldr	w8, [sp, #16]
	cmp	w20, w8
	b.ge	LBB0_46
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w8, [sp, #8]
	b	LBB0_20
LBB0_24:
	b.gt	LBB0_26
; %bb.25:
	ldr	w8, [sp, #12]
	ldr	w9, [sp, #28]
	cmp	w8, w9
	b.le	LBB0_40
LBB0_26:
	ldr	w8, [sp, #16]
	cmp	w8, #1
	b.lt	LBB0_46
; %bb.27:
	mov	w20, #0
	ldr	w9, [sp, #20]
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	add	w20, w20, #1
	cmp	w20, w8
	b.ge	LBB0_46
LBB0_29:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_31 Depth 2
	cmp	w9, #1
	b.lt	LBB0_28
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	mov	w21, #0
LBB0_31:                                ;   Parent Loop BB0_29 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [sp, #12]
	add	w0, w21, w8
	ldr	w8, [sp, #8]
	add	w1, w8, w20
	bl	_bs_get_pixel
	mov	x2, x0
	ldr	w8, [sp, #28]
	add	w0, w21, w8
	ldr	w8, [sp, #24]
	add	w1, w8, w20
	mov	x3, x19
	mov	w4, #0
	bl	_bs_set_pixel
	add	w21, w21, #1
	ldr	w9, [sp, #20]
	cmp	w21, w9
	b.lt	LBB0_31
; %bb.32:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	w8, [sp, #16]
	b	LBB0_28
LBB0_33:
	ldr	w9, [sp, #16]
	cmp	w9, #1
	b.lt	LBB0_46
; %bb.34:
	mov	w20, #0
Lloh4:
	adrp	x21, _g_Bpp@GOTPAGE
Lloh5:
	ldr	x21, [x21, _g_Bpp@GOTPAGEOFF]
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	add	w1, w8, w20
	bl	_get_bs_ptr
	mov	x19, x0
	ldp	w8, w0, [sp, #24]
	add	w1, w20, w8
	bl	_get_bs_ptr
	cbz	x19, LBB0_38
; %bb.36:                               ;   in Loop: Header=BB0_35 Depth=1
	cbz	x0, LBB0_38
; %bb.37:                               ;   in Loop: Header=BB0_35 Depth=1
	ldr	w8, [sp, #20]
	ldr	w9, [x21]
	mul	w2, w9, w8
	mov	x1, x19
	bl	_bs_copy_memb
LBB0_38:                                ;   in Loop: Header=BB0_35 Depth=1
	add	w20, w20, #1
	ldr	w8, [sp, #16]
	cmp	w20, w8
	b.ge	LBB0_46
; %bb.39:                               ;   in Loop: Header=BB0_35 Depth=1
	ldp	w8, w0, [sp, #8]
	b	LBB0_35
LBB0_40:
	ldr	w8, [sp, #16]
	cmp	w8, #1
	b.lt	LBB0_46
; %bb.41:
	mov	w20, #0
	b	LBB0_43
LBB0_42:                                ;   in Loop: Header=BB0_43 Depth=1
	add	w20, w20, #1
	cmp	w20, w8
	b.ge	LBB0_46
LBB0_43:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_44 Depth 2
	ldr	w9, [sp, #20]
	subs	w21, w9, #1
	b.lt	LBB0_42
LBB0_44:                                ;   Parent Loop BB0_43 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [sp, #12]
	add	w0, w21, w8
	ldr	w8, [sp, #8]
	add	w1, w8, w20
	bl	_bs_get_pixel
	mov	x2, x0
	ldr	w8, [sp, #28]
	add	w0, w21, w8
	ldr	w8, [sp, #24]
	add	w1, w8, w20
	mov	x3, x19
	mov	w4, #0
	bl	_bs_set_pixel
	add	w8, w21, #1
	sub	w21, w21, #1
	cmp	w8, #1
	b.hi	LBB0_44
; %bb.45:                               ;   in Loop: Header=BB0_43 Depth=1
	ldr	w8, [sp, #16]
	b	LBB0_42
LBB0_46:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_g_Bpp,4,2                      ; @g_Bpp
.subsections_via_symbols
