	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sja1105_tas_check_conflicts
_sja1105_tas_check_conflicts:           ## @sja1105_tas_check_conflicts
	.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
	movq	8(%rdi), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %r14
	xorl	%r12d, %r12d
	testq	%r14, %r14
	je	LBB0_18
## %bb.1:
	movq	%rdx, %rbx
	movq	%rdi, %r15
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	(%r14), %rdi
	movq	(%rdx), %rsi
	callq	_max
	movq	%rax, %r13
	movq	(%r14), %rdi
	movq	(%rbx), %rsi
	callq	_min
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_div_s64_rem
	cmpq	$0, -48(%rbp)
	jne	LBB0_17
## %bb.3:
	movq	(%r14), %rsi
	movq	8(%r14), %rdi
	leaq	-48(%rbp), %rdx
	callq	_div_s64_rem
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r15
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdi
	leaq	-48(%rbp), %rdx
	callq	_div_s64_rem
	movq	-48(%rbp), %rsi
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%rsi, %r15
	callq	_max
	movl	16(%r14), %r8d
	testl	%r8d, %r8d
	jle	LBB0_18
## %bb.4:
	addq	%r13, %rax
	movl	16(%rbx), %r9d
	xorl	%ecx, %ecx
	xorl	%r11d, %r11d
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##       Child Loop BB0_11 Depth 3
                                        ##         Child Loop BB0_13 Depth 4
	testl	%r9d, %r9d
	jle	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%r11,%rdx), %r10
	xorl	%edx, %edx
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=2
	movq	24(%rbx), %rsi
	addq	(%rsi,%rdx,8), %r12
	incq	%rdx
	cmpq	%r9, %rdx
	je	LBB0_15
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_11 Depth 3
                                        ##         Child Loop BB0_13 Depth 4
	cmpq	%rax, %r10
	jg	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	leaq	(%r12,%r15), %r13
	movq	%r10, %rdi
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=3
	addq	(%r14), %rdi
	cmpq	%rax, %rdi
	jg	LBB0_7
LBB0_11:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_13 Depth 4
	cmpq	%rax, %r13
	jg	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=3
	movq	%r13, %rsi
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ##       Parent Loop BB0_11 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	cmpq	%rsi, %rdi
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=4
	addq	(%rbx), %rsi
	cmpq	%rax, %rsi
	jle	LBB0_13
	jmp	LBB0_10
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%r14), %rdx
	addq	(%rdx,%rcx,8), %r11
	incq	%rcx
	xorl	%r12d, %r12d
	cmpq	%r8, %rcx
	jne	LBB0_5
	jmp	LBB0_18
LBB0_16:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	callq	_dev_warn
LBB0_17:
	movl	$1, %r12d
LBB0_18:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GCL entry %d collides with entry %d of port %d\n"

	.no_dead_strip	_sja1105_tas_check_conflicts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sja1105_tas_check_conflicts
_sja1105_tas_check_conflicts:           ; @sja1105_tas_check_conflicts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x8, [x0, #8]
	ldr	x25, [x8, w1, sxtw #3]
	cbz	x25, LBB0_16
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x25]
	ldr	x1, [x2]
	bl	_max
	mov	x24, x0
	ldr	x0, [x25]
	ldr	x1, [x21]
	bl	_min
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x24
	bl	_div_s64_rem
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	w0, #1
	b	LBB0_18
LBB0_3:
	ldp	x1, x0, [x25]
	add	x2, sp, #8
	bl	_div_s64_rem
	ldr	x22, [sp, #8]
	ldp	x1, x0, [x21]
	add	x2, sp, #8
	bl	_div_s64_rem
	ldr	x23, [sp, #8]
	mov	x0, x22
	mov	x1, x23
	bl	_max
	ldr	w8, [x25, #16]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.4:
	mov	x3, #0
	mov	x9, #0
	add	x10, x0, x24
	ldr	w11, [x21, #16]
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
                                        ;         Child Loop BB0_13 Depth 4
	cmp	w11, #1
	b.lt	LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x2, #0
	mov	x12, #0
	add	x13, x9, x22
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	x14, [x21, #24]
	ldr	x14, [x14, x2, lsl #3]
	add	x12, x14, x12
	add	x2, x2, #1
	cmp	x2, x11
	b.eq	LBB0_15
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
                                        ;         Child Loop BB0_13 Depth 4
	cmp	x13, x10
	b.gt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x14, x12, x23
	mov	x15, x13
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=3
	ldr	x16, [x25]
	add	x15, x16, x15
	cmp	x15, x10
	b.gt	LBB0_7
LBB0_11:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_13 Depth 4
	cmp	x14, x10
	b.gt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=3
	mov	x16, x14
LBB0_13:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ;       Parent Loop BB0_11 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	cmp	x15, x16
	b.eq	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=4
	ldr	x17, [x21]
	add	x16, x17, x16
	cmp	x16, x10
	b.le	LBB0_13
	b	LBB0_10
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #0
	ldr	x12, [x25, #24]
	ldr	x12, [x12, x3, lsl #3]
	add	x9, x12, x9
	add	x3, x3, #1
	cmp	x3, x8
	b.ne	LBB0_5
	b	LBB0_18
LBB0_16:
	mov	w0, #0
	b	LBB0_18
LBB0_17:
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x4, x19
	bl	_dev_warn
	mov	w0, #1
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GCL entry %d collides with entry %d of port %d\n"

	.no_dead_strip	_sja1105_tas_check_conflicts
.subsections_via_symbols
