	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bs_set_pixel                   ## -- Begin function bs_set_pixel
	.p2align	4, 0x90
_bs_set_pixel:                          ## @bs_set_pixel
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r14d
	testl	%r8d, %r8d
	je	LBB0_6
## %bb.1:
	movq	_g_clip_left1@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jg	LBB0_17
## %bb.2:
	movq	_g_clip_right1@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jle	LBB0_17
## %bb.3:
	movq	_g_clip_top1@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jg	LBB0_17
## %bb.4:
	testl	%edi, %edi
	js	LBB0_17
## %bb.5:
	movq	_g_clip_bottom1@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jg	LBB0_7
	jmp	LBB0_17
LBB0_6:
	testl	%edi, %edi
	js	LBB0_17
LBB0_7:
	testl	%esi, %esi
	js	LBB0_17
## %bb.8:
	movq	_g_width1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%edi, %ecx
	jle	LBB0_17
## %bb.9:
	movq	_g_height1@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jle	LBB0_17
## %bb.10:
	movq	_g_bs@GOTPCREL(%rip), %rdx
	imull	%esi, %ecx
	movq	_g_Bpp@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	imull	%eax, %ecx
	movslq	%ecx, %r15
	addq	(%rdx), %r15
	movl	%eax, %ebx
	imull	%edi, %ebx
	cmpl	$12, %r12d
	je	LBB0_12
## %bb.11:
	callq	_bs_get_pixel
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_bs_do_rop
	movl	%eax, %r14d
	movl	(%r13), %eax
LBB0_12:
	movslq	%ebx, %rcx
	cmpl	$2, %eax
	je	LBB0_15
## %bb.13:
	cmpl	$1, %eax
	jne	LBB0_16
## %bb.14:
	movb	%r14b, (%r15,%rcx)
	jmp	LBB0_17
LBB0_15:
	movw	%r14w, (%r15,%rcx)
	jmp	LBB0_17
LBB0_16:
	movl	%r14d, (%r15,%rcx)
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_clip_left1,4,2               ## @g_clip_left1
	.comm	_g_clip_right1,4,2              ## @g_clip_right1
	.comm	_g_clip_top1,4,2                ## @g_clip_top1
	.comm	_g_clip_bottom1,4,2             ## @g_clip_bottom1
	.comm	_g_width1,4,2                   ## @g_width1
	.comm	_g_height1,4,2                  ## @g_height1
	.comm	_g_bs,8,3                       ## @g_bs
	.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_set_pixel                   ; -- Begin function bs_set_pixel
	.p2align	2
_bs_set_pixel:                          ; @bs_set_pixel
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x3
	mov	x19, x2
	cbz	w4, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _g_clip_left1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_clip_left1@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _g_clip_right1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _g_clip_right1@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _g_clip_top1@GOTPAGE
Lloh7:
	ldr	x10, [x10, _g_clip_top1@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w8, w0
	ccmp	w9, w0, #4, le
	ccmp	w10, w1, #0, gt
	b.gt	LBB0_14
; %bb.2:
	tbnz	w0, #31, LBB0_14
; %bb.3:
Lloh9:
	adrp	x8, _g_clip_bottom1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _g_clip_bottom1@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w1
	b.gt	LBB0_5
	b	LBB0_14
LBB0_4:
	tbnz	w0, #31, LBB0_14
LBB0_5:
	tbnz	w1, #31, LBB0_14
; %bb.6:
Lloh12:
	adrp	x8, _g_width1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _g_width1@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _g_height1@GOTPAGE
Lloh16:
	ldr	x9, [x9, _g_height1@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w1, #4, gt
	b.le	LBB0_14
; %bb.7:
Lloh18:
	adrp	x9, _g_bs@GOTPAGE
Lloh19:
	ldr	x9, [x9, _g_bs@GOTPAGEOFF]
Lloh20:
	ldr	x21, [x9]
	mul	w9, w8, w1
Lloh21:
	adrp	x24, _g_Bpp@GOTPAGE
Lloh22:
	ldr	x24, [x24, _g_Bpp@GOTPAGEOFF]
	ldr	w8, [x24]
	mul	w22, w9, w8
	mul	w23, w8, w0
	cmp	w20, #12
	b.eq	LBB0_9
; %bb.8:
	bl	_bs_get_pixel
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_bs_do_rop
	mov	x19, x0
	ldr	w8, [x24]
LBB0_9:
	sxtw	x9, w23
	add	x10, x21, w22, sxtw
	cmp	w8, #2
	b.eq	LBB0_12
; %bb.10:
	cmp	w8, #1
	b.ne	LBB0_13
; %bb.11:
	strb	w19, [x10, x9]
	b	LBB0_14
LBB0_12:
	strh	w19, [x10, x9]
	b	LBB0_14
LBB0_13:
	str	w19, [x10, x9]
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_g_clip_left1,4,2               ; @g_clip_left1
	.comm	_g_clip_right1,4,2              ; @g_clip_right1
	.comm	_g_clip_top1,4,2                ; @g_clip_top1
	.comm	_g_clip_bottom1,4,2             ; @g_clip_bottom1
	.comm	_g_width1,4,2                   ; @g_width1
	.comm	_g_height1,4,2                  ; @g_height1
	.comm	_g_bs,8,3                       ; @g_bs
	.comm	_g_Bpp,4,2                      ; @g_Bpp
.subsections_via_symbols
