	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bs_is_pixel_on                 ## -- Begin function bs_is_pixel_on
	.p2align	4, 0x90
_bs_is_pixel_on:                        ## @bs_is_pixel_on
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $r8d killed $r8d def $r8
                                        ## kill: def $ecx killed $ecx def $rcx
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $esi killed $esi def $rsi
	cmpl	$8, %r8d
	je	LBB0_3
## %bb.1:
	cmpl	$1, %r8d
	jne	LBB0_4
## %bb.2:
	leal	7(%rcx), %eax
	addl	$14, %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	imull	%edx, %ecx
	leal	7(%rsi), %eax
	testl	%esi, %esi
	cmovnsl	%esi, %eax
	sarl	$3, %eax
	addl	%ecx, %eax
	cltq
	movzbl	(%rdi,%rax), %eax
	andb	$7, %sil
	movl	%esi, %ecx
	shll	%cl, %eax
	movzbl	%al, %eax
	shrl	$7, %eax
	jmp	LBB0_16
LBB0_3:
	imull	%edx, %ecx
	addl	%esi, %ecx
	movslq	%ecx, %rax
	cmpb	$0, (%rdi,%rax)
LBB0_15:
	setne	%al
	jmp	LBB0_16
LBB0_4:
	leal	-15(%r8), %eax
	cmpl	$1, %eax
	ja	LBB0_7
## %bb.5:
	imull	%ecx, %edx
	addl	%esi, %esi
	leal	(%rsi,%rdx,2), %eax
	movslq	%eax, %rcx
	movb	$1, %al
	cmpb	$0, (%rdi,%rcx)
	jne	LBB0_16
## %bb.6:
	orq	$1, %rcx
LBB0_14:
	cmpb	$0, (%rdi,%rcx)
	jmp	LBB0_15
LBB0_7:
	cmpl	$32, %r8d
	je	LBB0_10
## %bb.8:
	cmpl	$24, %r8d
	jne	LBB0_9
LBB0_10:
	imull	%ecx, %edx
	shll	$2, %esi
	leal	(%rsi,%rdx,4), %eax
	movslq	%eax, %rcx
	movb	$1, %al
	cmpb	$0, (%rdi,%rcx)
	jne	LBB0_16
## %bb.11:
	movq	%rcx, %rdx
	orq	$1, %rdx
	cmpb	$0, (%rdi,%rdx)
	jne	LBB0_16
## %bb.12:
	movq	%rcx, %rdx
	orq	$2, %rdx
	cmpb	$0, (%rdi,%rdx)
	jne	LBB0_16
## %bb.13:
	orq	$3, %rcx
	jmp	LBB0_14
LBB0_9:
	xorl	%eax, %eax
LBB0_16:
	movzbl	%al, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bs_is_pixel_on                 ; -- Begin function bs_is_pixel_on
	.p2align	2
_bs_is_pixel_on:                        ; @bs_is_pixel_on
	.cfi_startproc
; %bb.0:
	cmp	w4, #8
	b.eq	LBB0_3
; %bb.1:
	cmp	w4, #1
	b.ne	LBB0_5
; %bb.2:
	add	w8, w3, #7
	add	w9, w3, #14
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	mul	w8, w8, w2
	add	w9, w1, #7
	cmp	w1, #0
	csel	w9, w9, w1, lt
	add	w8, w8, w9, asr #3
	ldrb	w8, [x0, w8, sxtw]
	and	w9, w1, #0x7
	lsl	w8, w8, w9
	ubfx	w0, w8, #7, #1
	ret
LBB0_3:
	mul	w8, w3, w2
	sxtw	x8, w8
	add	x8, x8, w1, sxtw
LBB0_4:
	ldrb	w8, [x0, x8]
	cmp	w8, #0
	cset	w0, ne
	ret
LBB0_5:
	sub	w8, w4, #15
	cmp	w8, #1
	b.hi	LBB0_8
; %bb.6:
	mul	w8, w2, w3
	lsl	w8, w8, #1
	sxtw	x8, w8
	add	x8, x8, w1, sxtw #1
	ldrb	w9, [x0, x8]
	cbz	w9, LBB0_12
; %bb.7:
	mov	w0, #1
	ret
LBB0_8:
	cmp	w4, #32
	b.eq	LBB0_10
; %bb.9:
	cmp	w4, #24
	b.ne	LBB0_13
LBB0_10:
	mul	w8, w2, w3
	lsl	w8, w8, #2
	sxtw	x8, w8
	add	x8, x8, w1, sxtw #2
	ldrb	w9, [x0, x8]
	cbz	w9, LBB0_14
; %bb.11:
	mov	w0, #1
	ret
LBB0_12:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	sxtw	x8, w8
	orr	x8, x8, #0x1
	b	LBB0_4
LBB0_13:
	mov	w0, #0
	ret
LBB0_14:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	sxtw	x8, w8
	orr	x9, x8, #0x1
	ldrb	w9, [x0, x9]
	cbz	w9, LBB0_16
; %bb.15:
	mov	w0, #1
	ret
LBB0_16:
	orr	x9, x8, #0x2
	ldrb	w9, [x0, x9]
	cbz	w9, LBB0_18
; %bb.17:
	mov	w0, #1
	ret
LBB0_18:
	orr	x8, x8, #0x3
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
