	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bs_line                        ## -- Begin function bs_line
	.p2align	4, 0x90
_bs_line:                               ## @bs_line
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %ebx
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, %eax
	subl	%r8d, %eax
	negl	%eax
	xorl	%r9d, %r9d
	movl	%edx, %edi
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	subl	%r8d, %edi
	cmovlel	%eax, %edi
	setle	%r9b
	movl	%esi, %eax
	subl	%ecx, %eax
	negl	%eax
	xorl	%edx, %edx
	movl	%esi, %r13d
	subl	%ecx, %r13d
	cmovlel	%eax, %r13d
	setle	%dl
	leal	(%rdx,%rdx), %r8d
	decl	%r8d
	leal	(%r9,%r9), %esi
	decl	%esi
	movl	%r13d, %r15d
	subl	%edi, %r15d
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	jge	LBB0_1
## %bb.7:
	testl	%edi, %edi
	js	LBB0_13
## %bb.8:
	addl	%r13d, %r13d
	addl	%r15d, %r15d
	movl	%r13d, %r14d
	subl	%edi, %r14d
	incl	%edi
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	movl	%r12d, %esi
	movl	24(%rbp), %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	$1, %r8d
	callq	_bs_set_pixel
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	testl	%r14d, %r14d
	movl	$0, %eax
	cmovgl	%r8d, %eax
	movl	%r13d, %edx
	cmovgl	%r15d, %edx
	addl	%eax, %ebx
	addl	%edx, %r14d
	addl	%esi, %r12d
	decl	%edi
	testl	%edi, %edi
	jle	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ecx, %ebx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	%r12d, -60(%rbp)                ## 4-byte Folded Reload
	je	LBB0_12
	jmp	LBB0_11
LBB0_1:
	testl	%r13d, %r13d
	js	LBB0_13
## %bb.2:
	leal	(%rdi,%rdi), %r14d
	subl	%r13d, %edi
	addl	%edi, %edi
	movl	%r14d, %r15d
	subl	%r13d, %r15d
	incl	%r13d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	movl	%r12d, %esi
	movl	24(%rbp), %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	$1, %r8d
	callq	_bs_set_pixel
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%r15d, %r15d
	movl	$0, %eax
	cmovgl	%esi, %eax
	movl	%r14d, %edx
	cmovgl	%edi, %edx
	addl	%eax, %r12d
	addl	%edx, %r15d
	addl	%r8d, %ebx
	decl	%r13d
	testl	%r13d, %r13d
	jle	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, %ecx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	-60(%rbp), %r12d                ## 4-byte Folded Reload
	je	LBB0_6
	jmp	LBB0_5
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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_line                        ; -- Begin function bs_line
	.p2align	2
_bs_line:                               ; @bs_line
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	w0, w7, [sp, #8]                ; 8-byte Folded Spill
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	sub	w8, w3, w1
	subs	w9, w1, w3
	csel	w8, w9, w8, gt
	mov	w10, #-1
	cneg	w25, w10, le
	sub	w9, w4, w2
	subs	w11, w2, w4
	csel	w9, w11, w9, gt
	cneg	w26, w10, le
	subs	w10, w8, w9
	b.ge	LBB0_7
; %bb.1:
	tbnz	w9, #31, LBB0_13
; %bb.2:
	lsl	w27, w8, #1
	lsl	w28, w10, #1
	sub	w19, w27, w9
	add	w24, w9, #1
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	mov	x1, x22
	ldp	w3, w2, [sp, #8]                ; 8-byte Folded Reload
	mov	w4, #1
	bl	_bs_set_pixel
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w19, #0
	csel	w8, w25, wzr, gt
	add	w23, w8, w23
	csel	w8, w28, w27, gt
	add	w19, w8, w19
	add	w22, w22, w26
	sub	w24, w24, #1
	cmp	w24, #0
	b.le	LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w23, w21
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w20, w22
	b.eq	LBB0_4
	b	LBB0_3
LBB0_7:
	tbnz	w8, #31, LBB0_13
; %bb.8:
	lsl	w27, w9, #1
	sub	w9, w9, w8
	lsl	w28, w9, #1
	sub	w19, w27, w8
	add	w24, w8, #1
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x23
	mov	x1, x22
	ldp	w3, w2, [sp, #8]                ; 8-byte Folded Reload
	mov	w4, #1
	bl	_bs_set_pixel
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	w19, #0
	csel	w8, w26, wzr, gt
	add	w22, w8, w22
	csel	w8, w28, w27, gt
	add	w19, w8, w19
	add	w23, w23, w25
	sub	w24, w24, #1
	cmp	w24, #0
	b.le	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	cmp	w21, w23
	b.ne	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w22, w20
	b.eq	LBB0_10
	b	LBB0_9
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
