	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bs_patblt                      ## -- Begin function bs_patblt
	.p2align	4, 0x90
_bs_patblt:                             ## @bs_patblt
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movl	%edi, %r10d
	movl	48(%rbp), %r8d
	movl	40(%rbp), %edx
	movl	32(%rbp), %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	24(%rbp), %ebx
	movq	16(%rbp), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)
	testl	%r9d, %r9d
	je	LBB0_4
## %bb.1:
	movl	%edx, -84(%rbp)                 ## 4-byte Spill
	movl	%r8d, -88(%rbp)                 ## 4-byte Spill
	movl	%r10d, -92(%rbp)                ## 4-byte Spill
	cmpl	$2, %r9d
	je	LBB0_6
## %bb.2:
	cmpl	$3, %r9d
	jne	LBB0_14
## %bb.3:
	leaq	-56(%rbp), %r14
	movb	7(%rax), %cl
	notb	%cl
	movb	%cl, -56(%rbp)
	movb	6(%rax), %cl
	notb	%cl
	movb	%cl, -55(%rbp)
	movb	5(%rax), %cl
	notb	%cl
	movb	%cl, -54(%rbp)
	movb	4(%rax), %cl
	notb	%cl
	movb	%cl, -53(%rbp)
	movb	3(%rax), %cl
	notb	%cl
	movb	%cl, -52(%rbp)
	movb	2(%rax), %cl
	notb	%cl
	movb	%cl, -51(%rbp)
	movb	1(%rax), %cl
	notb	%cl
	movb	%cl, -50(%rbp)
	movb	(%rax), %al
	notb	%al
	movb	%al, -49(%rbp)
	testq	%r14, %r14
	jne	LBB0_8
	jmp	LBB0_14
LBB0_6:
	movq	_g_hatch_patterns@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movsbq	(%rax), %rax
	leaq	(%rcx,%rax,8), %r14
	testq	%r14, %r14
	je	LBB0_14
LBB0_8:
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_14
## %bb.9:
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	cmpl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_14
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, %ecx
	movl	%ecx, %r15d
	movq	-112(%rbp), %rax                ## 8-byte Reload
	addl	%eax, %r15d
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	leal	7(%rax,%rcx), %eax
	cmovnsl	%r15d, %eax
	andl	$-8, %eax
	subl	%eax, %r15d
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r12d
	movl	-64(%rbp), %r13d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %esi
	addl	%r12d, %esi
	leal	7(%rbx,%r12), %eax
	cmovnsl	%esi, %eax
	andl	$-8, %eax
	subl	%eax, %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	$8, %ecx
	movl	$1, %r8d
	callq	_bs_is_pixel_on
	testq	%rax, %rax
	movl	-88(%rbp), %edx                 ## 4-byte Reload
	cmovel	-84(%rbp), %edx                 ## 4-byte Folded Reload
	movl	%r12d, %edi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	-92(%rbp), %ecx                 ## 4-byte Reload
	movl	$1, %r8d
	callq	_bs_set_pixel
	incl	%r12d
	decl	%r13d
	jne	LBB0_12
	jmp	LBB0_13
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.5:
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	movq	-104(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%r10d, %r9d
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bs_rect                        ## TAILCALL
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_g_hatch_patterns,4,2           ## @g_hatch_patterns
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bs_patblt                      ; -- Begin function bs_patblt
	.p2align	2
_bs_patblt:                             ; @bs_patblt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	stp	w4, w3, [sp, #24]               ; 8-byte Folded Spill
	stp	w1, w2, [sp, #16]               ; 8-byte Folded Spill
	mov	x20, x0
	ldp	w22, w23, [x29, #20]
	ldr	w8, [x29, #16]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	cbz	w5, LBB0_13
; %bb.1:
	mov	x25, x7
	cmp	w5, #2
	b.eq	LBB0_4
; %bb.2:
	cmp	w5, #3
	b.ne	LBB0_6
; %bb.3:
	add	x26, sp, #32
	ldrb	w8, [x6, #7]
	mvn	w8, w8
	strb	w8, [sp, #32]
	ldrb	w8, [x6, #6]
	mvn	w8, w8
	strb	w8, [sp, #33]
	ldrb	w8, [x6, #5]
	mvn	w8, w8
	strb	w8, [sp, #34]
	ldrb	w8, [x6, #4]
	mvn	w8, w8
	strb	w8, [sp, #35]
	ldrb	w8, [x6, #3]
	mvn	w8, w8
	strb	w8, [sp, #36]
	ldrb	w8, [x6, #2]
	mvn	w8, w8
	strb	w8, [sp, #37]
	ldrb	w8, [x6, #1]
	mvn	w8, w8
	strb	w8, [sp, #38]
	ldrb	w8, [x6]
	mvn	w8, w8
	strb	w8, [sp, #39]
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _g_hatch_patterns@GOTPAGE
Lloh4:
	ldr	x8, [x8, _g_hatch_patterns@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	ldrsb	x9, [x6]
	add	x26, x8, x9, lsl #3
LBB0_5:
	cmp	x26, #0
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	ccmp	w8, #1, #8, ne
	b.ge	LBB0_8
LBB0_6:
	ldr	x8, [sp, #40]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.7:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_8:
	mov	w19, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w19, w19, #1
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	cmp	w19, w8
	b.eq	LBB0_6
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldp	w24, w8, [sp, #16]              ; 8-byte Folded Reload
	add	w27, w19, w8
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	add	w8, w27, w8
	and	w9, w8, #0x7
	negs	w8, w8
	and	w8, w8, #0x7
	csneg	w28, w9, w8, mi
	ldr	w21, [sp, #28]                  ; 4-byte Folded Reload
LBB0_12:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w8, w25, w24
	negs	w9, w8
	and	w8, w8, #0x7
	and	w9, w9, #0x7
	csneg	w1, w8, w9, mi
	mov	x0, x26
	mov	x2, x28
	mov	w3, #8
	mov	w4, #1
	bl	_bs_is_pixel_on
	cmp	x0, #0
	csel	w2, w22, w23, eq
	mov	x0, x24
	mov	x1, x27
	mov	x3, x20
	mov	w4, #1
	bl	_bs_set_pixel
	add	w24, w24, #1
	subs	w21, w21, #1
	b.ne	LBB0_12
	b	LBB0_9
LBB0_13:
	ldr	x8, [sp, #40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	ldp	w0, w1, [sp, #16]               ; 8-byte Folded Reload
	ldp	w3, w2, [sp, #24]               ; 8-byte Folded Reload
	mov	x4, x23
	mov	x5, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_bs_rect
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_g_hatch_patterns,4,2           ; @g_hatch_patterns
.subsections_via_symbols
