	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_canfd_set_bittiming
_rcar_canfd_set_bittiming:              ## @rcar_canfd_set_bittiming
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	96(%rbx), %r15
	decq	%r15
	movq	88(%rbx), %r12
	decq	%r12
	movq	80(%rbx), %rax
	movq	72(%rbx), %rcx
	addq	%rax, %rcx
	decq	%rcx
	movq	64(%rbx), %r13
	decq	%r13
	movq	_CAN_CTRLMODE_FD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	je	LBB0_2
## %bb.1:
	callq	_RCANFD_NCFG_NTSEG1
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_RCANFD_NCFG_NBRP
	orl	%eax, %r14d
	movq	%r12, %rdi
	callq	_RCANFD_NCFG_NSJW
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_RCANFD_NCFG_NTSEG2
	orl	%eax, %r15d
	orl	%r14d, %r15d
	movl	8(%rbx), %r14d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_RCANFD_CCFG
	movl	%r14d, %edi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_rcar_canfd_write
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	%r13, %r9
	callq	_netdev_dbg
	movq	56(%rbx), %r14
	decq	%r14
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	48(%rbx), %r15
	decq	%r15
	movq	40(%rbx), %rax
	movq	24(%rbx), %r12
	movq	32(%rbx), %rcx
	leaq	(%rax,%rcx), %rdi
	decq	%rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	decq	%r12
	callq	_RCANFD_DCFG_DTSEG1
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_RCANFD_DCFG_DBRP
	orl	%eax, %r13d
	movq	%r15, %rdi
	callq	_RCANFD_DCFG_DSJW
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_RCANFD_DCFG_DTSEG2
	orl	%eax, %r14d
	orl	%r13d, %r14d
	movl	8(%rbx), %r13d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_RCANFD_F_DCFG
	movl	%r13d, %edi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_rcar_canfd_write
	movl	4(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	%r12, %r9
	jmp	LBB0_3
LBB0_2:
	callq	_RCANFD_CFG_TSEG1
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_RCANFD_CFG_BRP
	orl	%eax, %r14d
	movq	%r12, %rdi
	callq	_RCANFD_CFG_SJW
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_RCANFD_CFG_TSEG2
	orl	%eax, %r15d
	orl	%r14d, %r15d
	movl	8(%rbx), %r14d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_RCANFD_CCFG
	movl	%r14d, %edi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_rcar_canfd_write
	movl	4(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	%r13, %r9
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_dbg                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CAN_CTRLMODE_FD,4,2            ## @CAN_CTRLMODE_FD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nrate: brp %u, sjw %u, tseg1 %u, tseg2 %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"drate: brp %u, sjw %u, tseg1 %u, tseg2 %u\n"

L_.str.2:                               ## @.str.2
	.asciz	"rate: brp %u, sjw %u, tseg1 %u, tseg2 %u\n"

	.no_dead_strip	_rcar_canfd_set_bittiming
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_canfd_set_bittiming
_rcar_canfd_set_bittiming:              ; @rcar_canfd_set_bittiming
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	bl	_netdev_priv
	mov	x19, x0
	ldr	w20, [x0]
	ldr	x8, [x0, #96]
	sub	x21, x8, #1
	ldp	x9, x8, [x0, #80]
	sub	x22, x8, #1
	ldp	x10, x8, [x0, #64]
	add	x8, x9, x8
	sub	x24, x8, #1
	sub	x23, x10, #1
	ldr	w8, [x0, #16]
Lloh0:
	adrp	x9, _CAN_CTRLMODE_FD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CAN_CTRLMODE_FD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mov	x0, x24
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	bl	_RCANFD_NCFG_NTSEG1
	mov	x25, x0
	mov	x0, x21
	bl	_RCANFD_NCFG_NBRP
	orr	w25, w0, w25
	mov	x0, x22
	bl	_RCANFD_NCFG_NSJW
	orr	w25, w25, w0
	mov	x0, x23
	bl	_RCANFD_NCFG_NTSEG2
	orr	w25, w25, w0
	ldr	w26, [x19, #8]
	mov	x0, x20
	bl	_RCANFD_CCFG
	mov	x1, x0
	mov	x0, x26
	mov	x2, x25
	bl	_rcar_canfd_write
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x22
	mov	x4, x24
	mov	x5, x23
	bl	_netdev_dbg
	ldr	x8, [x19, #56]
	sub	x21, x8, #1
	ldp	x9, x8, [x19, #40]
	sub	x22, x8, #1
	ldp	x10, x8, [x19, #24]
	add	x8, x9, x8
	sub	x23, x8, #1
	sub	x24, x10, #1
	mov	x0, x23
	bl	_RCANFD_DCFG_DTSEG1
	mov	x25, x0
	mov	x0, x21
	bl	_RCANFD_DCFG_DBRP
	orr	w25, w0, w25
	mov	x0, x22
	bl	_RCANFD_DCFG_DSJW
	orr	w25, w25, w0
	mov	x0, x24
	bl	_RCANFD_DCFG_DTSEG2
	orr	w25, w25, w0
	ldr	w26, [x19, #8]
	mov	x0, x20
	bl	_RCANFD_F_DCFG
	mov	x1, x0
	mov	x0, x26
	mov	x2, x25
	bl	_rcar_canfd_write
	ldr	w0, [x19, #4]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	mov	x5, x24
	b	LBB0_3
LBB0_2:
	bl	_RCANFD_CFG_TSEG1
	mov	x25, x0
	mov	x0, x21
	bl	_RCANFD_CFG_BRP
	orr	w25, w0, w25
	mov	x0, x22
	bl	_RCANFD_CFG_SJW
	orr	w25, w25, w0
	mov	x0, x23
	bl	_RCANFD_CFG_TSEG2
	orr	w25, w25, w0
	ldr	w26, [x19, #8]
	mov	x0, x20
	bl	_RCANFD_CCFG
	mov	x1, x0
	mov	x0, x26
	mov	x2, x25
	bl	_rcar_canfd_write
	ldr	w0, [x19, #4]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	mov	x3, x22
	mov	x4, x24
	mov	x5, x23
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_netdev_dbg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CAN_CTRLMODE_FD,4,2            ; @CAN_CTRLMODE_FD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nrate: brp %u, sjw %u, tseg1 %u, tseg2 %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"drate: brp %u, sjw %u, tseg1 %u, tseg2 %u\n"

l_.str.2:                               ; @.str.2
	.asciz	"rate: brp %u, sjw %u, tseg1 %u, tseg2 %u\n"

	.no_dead_strip	_rcar_canfd_set_bittiming
.subsections_via_symbols
