	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bs_set_pixel_on                ## -- Begin function bs_set_pixel_on
	.p2align	4, 0x90
_bs_set_pixel_on:                       ## @bs_set_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 $esi killed $esi def $rsi
	cmpl	$8, %r8d
	je	LBB0_5
## %bb.1:
	cmpl	$1, %r8d
	jne	LBB0_6
## %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
	movl	%eax, %edx
	sarl	$3, %edx
	addl	%ecx, %edx
	andl	$-8, %eax
	subl	%eax, %esi
	movslq	%edx, %r8
	movb	(%rdi,%r8), %dl
	testl	%r9d, %r9d
	je	LBB0_12
## %bb.3:
	movl	$128, %eax
	movl	%esi, %ecx
	shrl	%cl, %eax
	orb	%al, %dl
	jmp	LBB0_4
LBB0_5:
	imull	%edx, %ecx
	addl	%esi, %ecx
	movslq	%ecx, %rax
	movb	%r9b, (%rdi,%rax)
	popq	%rbp
	retq
LBB0_6:
	leal	-15(%r8), %eax
	cmpl	$1, %eax
	ja	LBB0_8
## %bb.7:
	imull	%edx, %ecx
	addl	%esi, %ecx
	movslq	%ecx, %rax
	movw	%r9w, (%rdi,%rax,2)
	popq	%rbp
	retq
LBB0_8:
	cmpl	$32, %r8d
	je	LBB0_10
## %bb.9:
	cmpl	$24, %r8d
	jne	LBB0_11
LBB0_10:
	imull	%edx, %ecx
	addl	%esi, %ecx
	movslq	%ecx, %rax
	movl	%r9d, (%rdi,%rax,4)
LBB0_11:
	popq	%rbp
	retq
LBB0_12:
	movl	$-129, %eax
	movl	%esi, %ecx
	sarl	%cl, %eax
	andb	%al, %dl
LBB0_4:
	movb	%dl, (%rdi,%r8)
	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_set_pixel_on                ; -- Begin function bs_set_pixel_on
	.p2align	2
_bs_set_pixel_on:                       ; @bs_set_pixel_on
	.cfi_startproc
; %bb.0:
	cmp	w4, #8
	b.eq	LBB0_4
; %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
	and	w9, w9, #0xfffffff8
	sub	w9, w1, w9
	sxtw	x8, w8
	ldrb	w10, [x0, x8]
	cbz	w5, LBB0_11
; %bb.3:
	mov	w11, #128
	lsr	w9, w11, w9
	orr	w9, w10, w9
	strb	w9, [x0, x8]
	ret
LBB0_4:
	madd	w8, w3, w2, w1
	strb	w5, [x0, w8, sxtw]
	ret
LBB0_5:
	sub	w8, w4, #15
	cmp	w8, #1
	b.hi	LBB0_7
; %bb.6:
	madd	w8, w3, w2, w1
	strh	w5, [x0, w8, sxtw #1]
	ret
LBB0_7:
	cmp	w4, #32
	b.eq	LBB0_9
; %bb.8:
	cmp	w4, #24
	b.ne	LBB0_10
LBB0_9:
	madd	w8, w3, w2, w1
	str	w5, [x0, w8, sxtw #2]
LBB0_10:
	ret
LBB0_11:
	mov	w11, #-129
	asr	w9, w11, w9
	and	w9, w10, w9
	strb	w9, [x0, x8]
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
