	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sja1105_setup_tc_taprio        ## -- Begin function sja1105_setup_tc_taprio
	.p2align	4, 0x90
_sja1105_setup_tc_taprio:               ## @sja1105_setup_tc_taprio
	.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
	movq	%rdi, %r13
	movq	8(%rdi), %r14
	movq	8(%r14), %rax
	movslq	%esi, %rbx
	movq	(%rax,%rbx,8), %rdi
	xorl	%ecx, %ecx
	testq	%rdi, %rdi
	setne	%cl
	movl	(%rdx), %eax
	cmpl	%ecx, %eax
	jne	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movq	%rdx, %r12
	cmpq	$0, 32(%rdx)
	je	LBB0_11
## %bb.4:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%r15d, %r15d
LBB0_6:
	subl	(%rax), %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	_taprio_offload_free
	movq	8(%r14), %rax
	movq	$0, (%rax,%rbx,8)
LBB0_9:
	movq	%r14, %rdi
	callq	_sja1105_init_scheduling
	testl	%eax, %eax
	js	LBB0_23
## %bb.10:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sja1105_static_config_reload   ## TAILCALL
LBB0_11:
	movl	%esi, %r15d
	movq	8(%r12), %rdi
	callq	_ns_to_sja1105_delta
	testq	%rax, %rax
	je	LBB0_24
## %bb.12:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, 16(%r12)
	jle	LBB0_17
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movq	(%rax,%rbx,8), %r13
	movq	%r13, %rdi
	callq	_ns_to_sja1105_delta
	movq	_SJA1105_TAS_MAX_DELTA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%rax, %rax
	je	LBB0_26
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpq	%rcx, %rax
	jge	LBB0_26
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	movslq	16(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_14
LBB0_17:
	movq	_SJA1105_NUM_PORTS@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_25
## %bb.18:
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_20 Depth=1
	incl	%ebx
	cmpl	%eax, %ebx
	jge	LBB0_25
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, %r15d
	je	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_sja1105_tas_check_conflicts
	testq	%rax, %rax
	jne	LBB0_28
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	(%r13), %eax
	jmp	LBB0_19
LBB0_23:
	movl	%eax, %r15d
	jmp	LBB0_7
LBB0_24:
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_27
LBB0_25:
	movq	%r12, %rdi
	callq	_taprio_offload_get
	movq	8(%r14), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rdx,8)
	jmp	LBB0_9
LBB0_26:
	cmpq	%rcx, %rax
	movq	(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	cmovgeq	%rax, %rcx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r13, %rdx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_dev_err
LBB0_27:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_28:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"A base time of zero is not hardware-allowed\n"

	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_SJA1105_TAS_MAX_DELTA,8,3      ## @SJA1105_TAS_MAX_DELTA
L_.str.1:                               ## @.str.1
	.asciz	"Interval %llu too %s for GCL entry %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"long"

L_.str.3:                               ## @.str.3
	.asciz	"short"

	.comm	_SJA1105_NUM_PORTS,4,2          ## @SJA1105_NUM_PORTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sja1105_setup_tc_taprio        ; -- Begin function sja1105_setup_tc_taprio
	.p2align	2
_sja1105_setup_tc_taprio:               ; @sja1105_setup_tc_taprio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x22, x0
	ldr	x19, [x0, #8]
	ldr	x8, [x19, #8]
	ldr	x0, [x8, w1, sxtw #3]
	cmp	x0, #0
	cset	w9, ne
	ldr	w8, [x2]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_24
LBB0_2:
	mov	x21, x1
	sxtw	x23, w21
	cbz	w8, LBB0_5
; %bb.3:
	mov	x20, x2
	ldr	x8, [x2, #32]
	cbz	x8, LBB0_8
; %bb.4:
Lloh2:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_24
LBB0_5:
	bl	_taprio_offload_free
	ldr	x8, [x19, #8]
	str	xzr, [x8, x23, lsl #3]
LBB0_6:
	mov	x0, x19
	bl	_sja1105_init_scheduling
	tbnz	w0, #31, LBB0_25
; %bb.7:
	mov	x0, x19
	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
	add	sp, sp, #112
	b	_sja1105_static_config_reload
LBB0_8:
	ldr	x0, [x20, #8]
	bl	_ns_to_sja1105_delta
	cbz	x0, LBB0_19
; %bb.9:
	ldr	w8, [x20, #16]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.10:
	mov	x24, #0
Lloh4:
	adrp	x25, _SJA1105_TAS_MAX_DELTA@GOTPAGE
Lloh5:
	ldr	x25, [x25, _SJA1105_TAS_MAX_DELTA@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	x22, [x8, x24, lsl #3]
	mov	x0, x22
	bl	_ns_to_sja1105_delta
	ldr	x9, [x25]
	cmp	x0, #0
	ccmp	x0, x9, #0, ne
	b.ge	LBB0_21
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x20, #16]
	cmp	x24, x8
	b.lt	LBB0_11
LBB0_13:
Lloh6:
	adrp	x24, _SJA1105_NUM_PORTS@GOTPAGE
Lloh7:
	ldr	x24, [x24, _SJA1105_NUM_PORTS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.14:
	mov	w22, #0
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w8, [x24]
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	w22, w22, #1
	cmp	w22, w8
	b.ge	LBB0_20
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	cmp	w21, w22
	b.eq	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_sja1105_tas_check_conflicts
	cbz	x0, LBB0_15
	b	LBB0_23
LBB0_19:
	ldr	w0, [x22]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_22
LBB0_20:
	mov	x0, x20
	bl	_taprio_offload_get
	ldr	x8, [x19, #8]
	str	x0, [x8, x23, lsl #3]
	b	LBB0_6
LBB0_21:
	ldr	x8, [x19]
	ldr	w8, [x8]
Lloh10:
	adrp	x10, l_.str.3@PAGE
Lloh11:
	add	x10, x10, l_.str.3@PAGEOFF
Lloh12:
	adrp	x11, l_.str.2@PAGE
Lloh13:
	add	x11, x11, l_.str.2@PAGEOFF
	cmp	x0, x9
	csel	x9, x11, x10, ge
	stp	x9, x24, [sp, #8]
	str	x22, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
LBB0_22:
	bl	_dev_err
LBB0_23:
Lloh16:
	adrp	x8, _ERANGE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
LBB0_24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_25:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"A base time of zero is not hardware-allowed\n"

	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_SJA1105_TAS_MAX_DELTA,8,3      ; @SJA1105_TAS_MAX_DELTA
l_.str.1:                               ; @.str.1
	.asciz	"Interval %llu too %s for GCL entry %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"long"

l_.str.3:                               ; @.str.3
	.asciz	"short"

	.comm	_SJA1105_NUM_PORTS,4,2          ; @SJA1105_NUM_PORTS
.subsections_via_symbols
