	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bresenham
_bresenham:                             ## @bresenham
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
                                        ## kill: def $edx killed $edx def $rdx
	movl	%ecx, %ebx
	subl	%esi, %ebx
	negl	%ebx
	xorl	%r14d, %r14d
	subl	%esi, %ecx
	setg	%r11b
	cmovlel	%ebx, %ecx
	movl	%edx, %eax
	subl	%edi, %eax
	negl	%eax
	xorl	%ebx, %ebx
	subl	%edi, %edx
	setg	%r10b
	cmovlel	%eax, %edx
	cmpl	$999, %edx                      ## imm = 0x3E7
	jg	LBB0_2
## %bb.1:
	cmpl	$1000, %ecx                     ## imm = 0x3E8
	jge	LBB0_2
## %bb.3:
	movb	%r10b, %bl
	leal	(%rbx,%rbx), %r10d
	decl	%r10d
	movb	%r11b, %r14b
	leal	(%r14,%r14), %r11d
	decl	%r11d
	cmpl	%ecx, %edx
	jle	LBB0_15
## %bb.4:
	leal	1(%rdx), %eax
	testl	%edx, %edx
	js	LBB0_26
## %bb.5:
	movl	%eax, %r12d
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.7:
	addl	%ecx, %ecx
	movl	%ecx, %ebx
	subl	%edx, %ebx
	movl	%ebx, %r14d
	subl	%edx, %r14d
                                        ## kill: def $r12d killed $r12d killed $r12 def $r12
	andl	$-2, %r12d
	xorl	%edx, %edx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	addl	%r15d, %ebx
	addl	%r10d, %edi
	addl	%r13d, %esi
	addq	$2, %rdx
	cmpq	%rdx, %r12
	je	LBB0_13
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edi, (%r8,%rdx,4)
	movl	%esi, (%r9,%rdx,4)
	addl	%r10d, %edi
	movl	$0, %r13d
	movl	%ecx, %r15d
	testl	%ebx, %ebx
	js	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%r11d, %r13d
	movl	%r14d, %r15d
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	addl	%esi, %r13d
	addl	%ebx, %r15d
	movl	%edi, 4(%r8,%rdx,4)
	movl	%r13d, 4(%r9,%rdx,4)
	movl	$0, %esi
	movl	%ecx, %ebx
	js	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r11d, %esi
	movl	%r14d, %ebx
	jmp	LBB0_12
LBB0_2:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_26:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leal	1(%rcx), %eax
	testl	%ecx, %ecx
	js	LBB0_26
## %bb.16:
	movl	%eax, %r12d
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_17
## %bb.18:
	addl	%edx, %edx
	movl	%edx, %ebx
	subl	%ecx, %ebx
	movl	%ebx, %r14d
	subl	%ecx, %r14d
                                        ## kill: def $r12d killed $r12d killed $r12 def $r12
	andl	$-2, %r12d
	xorl	%ecx, %ecx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=1
	addl	%r15d, %ebx
	addl	%r11d, %esi
	addl	%r13d, %edi
	addq	$2, %rcx
	cmpq	%rcx, %r12
	je	LBB0_24
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	%edi, (%r8,%rcx,4)
	movl	%esi, (%r9,%rcx,4)
	addl	%r11d, %esi
	movl	$0, %r13d
	movl	%edx, %r15d
	testl	%ebx, %ebx
	js	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	%r10d, %r13d
	movl	%r14d, %r15d
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	addl	%edi, %r13d
	addl	%ebx, %r15d
	movl	%r13d, 4(%r8,%rcx,4)
	movl	%esi, 4(%r9,%rcx,4)
	movl	$0, %edi
	movl	%edx, %ebx
	js	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	%r10d, %edi
	movl	%r14d, %ebx
	jmp	LBB0_23
LBB0_6:
	xorl	%edx, %edx
LBB0_13:
	testb	$1, -48(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_26
## %bb.14:
	movl	%edi, (%r8,%rdx,4)
	movl	%esi, (%r9,%rdx,4)
	jmp	LBB0_26
LBB0_17:
	xorl	%ecx, %ecx
LBB0_24:
	testb	$1, -48(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_26
## %bb.25:
	movl	%edi, (%r8,%rcx,4)
	movl	%esi, (%r9,%rcx,4)
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.no_dead_strip	_bresenham
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bresenham
_bresenham:                             ; @bresenham
	.cfi_startproc
; %bb.0:
	sub	w8, w0, w2
	subs	w9, w2, w0
	csel	w13, w9, w8, gt
	mov	w8, #1
	cneg	w9, w8, le
	sub	w10, w1, w3
	subs	w11, w3, w1
	csel	w14, w11, w10, gt
	cneg	w10, w8, le
	cmp	w13, #999
	b.gt	LBB0_7
; %bb.1:
	cmp	w14, #1000
	b.ge	LBB0_7
; %bb.2:
	cmp	w13, w14
	b.le	LBB0_8
; %bb.3:
	add	w8, w13, #1
	tbnz	w13, #31, LBB0_6
; %bb.4:
	lsl	w11, w14, #1
	sub	w12, w11, w13
	sub	w13, w12, w13
	mov	x14, x8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	str	w0, [x4], #4
	str	w1, [x5], #4
	add	w0, w0, w9
	cmp	w12, #0
	csel	w15, wzr, w10, lt
	add	w1, w15, w1
	csel	w15, w11, w13, lt
	add	w12, w15, w12
	subs	x14, x14, #1
	b.ne	LBB0_5
LBB0_6:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	mov	x0, x8
	ret
LBB0_7:
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	x0, x8
	ret
LBB0_8:
	add	w8, w14, #1
	tbnz	w14, #31, LBB0_11
; %bb.9:
	lsl	w11, w13, #1
	sub	w12, w11, w14
	sub	w13, w12, w14
	mov	x14, x8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	str	w0, [x4], #4
	str	w1, [x5], #4
	add	w1, w1, w10
	cmp	w12, #0
	csel	w15, wzr, w9, lt
	add	w0, w15, w0
	csel	w15, w11, w13, lt
	add	w12, w15, w12
	subs	x14, x14, #1
	b.ne	LBB0_10
LBB0_11:
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.no_dead_strip	_bresenham
.subsections_via_symbols
