	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m_can_set_bittiming
_m_can_set_bittiming:                   ## @m_can_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	36(%rax), %esi
	movl	40(%rax), %eax
	decl	%esi
	decl	%eax
	movl	44(%rbx), %ecx
	movl	48(%rbx), %edx
	leal	(%rcx,%rdx), %edi
	decl	%edi
	movl	52(%rbx), %edx
	movq	_NBTP_NBRP_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movq	_NBTP_NSJW_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	decl	%edx
	orl	%esi, %eax
	movq	_NBTP_NTSEG1_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	movq	_NBTP_NTSEG2_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%edi, %edx
	orl	%eax, %edx
	movq	_M_CAN_NBTP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_m_can_write
	movq	_CAN_CTRLMODE_FD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.1:
	movq	%r14, %rdi
	movl	8(%rbx), %r12d
	movl	12(%rbx), %r13d
	decl	%r12d
	decl	%r13d
	movl	16(%rbx), %eax
	movl	20(%rbx), %ecx
	leal	(%rax,%rcx), %r14d
	decl	%r14d
	movl	24(%rbx), %r15d
	decl	%r15d
	movl	28(%rbx), %ecx
	xorl	%edx, %edx
	cmpl	$2500001, %ecx                  ## imm = 0x2625A1
	jl	LBB0_5
## %bb.2:
	movslq	4(%rbx), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$38, %rax
	addl	%edx, %eax
	imull	32(%rbx), %eax
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%ecx
	movl	%eax, %edx
	cmpl	$128, %eax
	jl	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	callq	_netdev_warn
	movl	$127, %edx
LBB0_4:
	movq	_DBTP_TDC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_M_CAN_TDCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TDCR_TDCO_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movq	%rbx, %rdi
	callq	_m_can_write
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_5:
	movq	_DBTP_DBRP_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r12d
	movq	_DBTP_DSJW_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r13d
	movq	_DBTP_DTSEG1_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r14d
	orl	%edx, %r12d
	orl	%r13d, %r14d
	movq	_DBTP_DTSEG2_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	orl	%r12d, %r14d
	orl	%r14d, %r15d
	movq	_M_CAN_DBTP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_m_can_write
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NBTP_NBRP_SHIFT,4,2            ## @NBTP_NBRP_SHIFT
	.comm	_NBTP_NSJW_SHIFT,4,2            ## @NBTP_NSJW_SHIFT
	.comm	_NBTP_NTSEG1_SHIFT,4,2          ## @NBTP_NTSEG1_SHIFT
	.comm	_NBTP_NTSEG2_SHIFT,4,2          ## @NBTP_NTSEG2_SHIFT
	.comm	_M_CAN_NBTP,4,2                 ## @M_CAN_NBTP
	.comm	_CAN_CTRLMODE_FD,4,2            ## @CAN_CTRLMODE_FD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TDCO value of %u is beyond maximum. Using maximum possible value\n"

	.comm	_DBTP_TDC,4,2                   ## @DBTP_TDC
	.comm	_M_CAN_TDCR,4,2                 ## @M_CAN_TDCR
	.comm	_TDCR_TDCO_SHIFT,4,2            ## @TDCR_TDCO_SHIFT
	.comm	_DBTP_DBRP_SHIFT,4,2            ## @DBTP_DBRP_SHIFT
	.comm	_DBTP_DSJW_SHIFT,4,2            ## @DBTP_DSJW_SHIFT
	.comm	_DBTP_DTSEG1_SHIFT,4,2          ## @DBTP_DTSEG1_SHIFT
	.comm	_DBTP_DTSEG2_SHIFT,4,2          ## @DBTP_DTSEG2_SHIFT
	.comm	_M_CAN_DBTP,4,2                 ## @M_CAN_DBTP
	.no_dead_strip	_m_can_set_bittiming
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m_can_set_bittiming
_m_can_set_bittiming:                   ; @m_can_set_bittiming
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldp	w8, w9, [x0, #36]
	sub	w8, w8, #1
	sub	w9, w9, #1
	ldp	w10, w11, [x0, #44]
	add	w10, w10, w11
	sub	w10, w10, #1
	ldr	w11, [x0, #52]
	sub	w11, w11, #1
Lloh0:
	adrp	x12, _NBTP_NBRP_SHIFT@GOTPAGE
Lloh1:
	ldr	x12, [x12, _NBTP_NBRP_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x12]
	lsl	w8, w8, w12
Lloh3:
	adrp	x12, _NBTP_NSJW_SHIFT@GOTPAGE
Lloh4:
	ldr	x12, [x12, _NBTP_NSJW_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x12]
	lsl	w9, w9, w12
Lloh6:
	adrp	x12, _NBTP_NTSEG1_SHIFT@GOTPAGE
Lloh7:
	ldr	x12, [x12, _NBTP_NTSEG1_SHIFT@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh8:
	ldr	w9, [x12]
	lsl	w9, w10, w9
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _NBTP_NTSEG2_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NBTP_NTSEG2_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	lsl	w9, w11, w9
	orr	w2, w8, w9
Lloh12:
	adrp	x8, _M_CAN_NBTP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _M_CAN_NBTP@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_m_can_write
	ldr	w8, [x19]
Lloh15:
	adrp	x9, _CAN_CTRLMODE_FD@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CAN_CTRLMODE_FD@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.1:
	ldp	w8, w9, [x19, #8]
	sub	w24, w8, #1
	sub	w23, w9, #1
	ldp	w8, w9, [x19, #16]
	add	w8, w8, w9
	sub	w22, w8, #1
	ldp	w9, w8, [x19, #24]
	sub	w21, w9, #1
	mov	w9, #9633
	movk	w9, #38, lsl #16
	cmp	w8, w9
	b.lt	LBB0_5
; %bb.2:
	ldr	w9, [x19, #32]
	ldrsw	x10, [x19, #4]
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	mul	x10, x10, x11
	lsr	x11, x10, #63
	asr	x10, x10, #38
	add	w10, w10, w11
	mul	w9, w10, w9
	sdiv	w2, w9, w8
	cmp	w2, #128
	b.lt	LBB0_4
; %bb.3:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_warn
	mov	w2, #127
LBB0_4:
Lloh20:
	adrp	x8, _DBTP_TDC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DBTP_TDC@GOTPAGEOFF]
Lloh22:
	adrp	x9, _M_CAN_TDCR@GOTPAGE
Lloh23:
	ldr	x9, [x9, _M_CAN_TDCR@GOTPAGEOFF]
Lloh24:
	ldr	w20, [x8]
Lloh25:
	ldr	w1, [x9]
Lloh26:
	adrp	x8, _TDCR_TDCO_SHIFT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TDCR_TDCO_SHIFT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	lsl	w2, w2, w8
	mov	x0, x19
	bl	_m_can_write
	b	LBB0_6
LBB0_5:
	mov	w20, #0
LBB0_6:
Lloh29:
	adrp	x8, _DBTP_DBRP_SHIFT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DBTP_DBRP_SHIFT@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _DBTP_DSJW_SHIFT@GOTPAGE
Lloh33:
	ldr	x9, [x9, _DBTP_DSJW_SHIFT@GOTPAGEOFF]
	lsl	w8, w24, w8
Lloh34:
	ldr	w9, [x9]
	lsl	w9, w23, w9
Lloh35:
	adrp	x10, _DBTP_DTSEG1_SHIFT@GOTPAGE
Lloh36:
	ldr	x10, [x10, _DBTP_DTSEG1_SHIFT@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	lsl	w10, w22, w10
Lloh38:
	adrp	x11, _DBTP_DTSEG2_SHIFT@GOTPAGE
Lloh39:
	ldr	x11, [x11, _DBTP_DTSEG2_SHIFT@GOTPAGEOFF]
Lloh40:
	ldr	w11, [x11]
	lsl	w11, w21, w11
	orr	w8, w8, w20
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w2, w8, w11
Lloh41:
	adrp	x8, _M_CAN_DBTP@GOTPAGE
Lloh42:
	ldr	x8, [x8, _M_CAN_DBTP@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_m_can_write
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_NBTP_NBRP_SHIFT,4,2            ; @NBTP_NBRP_SHIFT
	.comm	_NBTP_NSJW_SHIFT,4,2            ; @NBTP_NSJW_SHIFT
	.comm	_NBTP_NTSEG1_SHIFT,4,2          ; @NBTP_NTSEG1_SHIFT
	.comm	_NBTP_NTSEG2_SHIFT,4,2          ; @NBTP_NTSEG2_SHIFT
	.comm	_M_CAN_NBTP,4,2                 ; @M_CAN_NBTP
	.comm	_CAN_CTRLMODE_FD,4,2            ; @CAN_CTRLMODE_FD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TDCO value of %u is beyond maximum. Using maximum possible value\n"

	.comm	_DBTP_TDC,4,2                   ; @DBTP_TDC
	.comm	_M_CAN_TDCR,4,2                 ; @M_CAN_TDCR
	.comm	_TDCR_TDCO_SHIFT,4,2            ; @TDCR_TDCO_SHIFT
	.comm	_DBTP_DBRP_SHIFT,4,2            ; @DBTP_DBRP_SHIFT
	.comm	_DBTP_DSJW_SHIFT,4,2            ; @DBTP_DSJW_SHIFT
	.comm	_DBTP_DTSEG1_SHIFT,4,2          ; @DBTP_DTSEG1_SHIFT
	.comm	_DBTP_DTSEG2_SHIFT,4,2          ; @DBTP_DTSEG2_SHIFT
	.comm	_M_CAN_DBTP,4,2                 ; @M_CAN_DBTP
	.no_dead_strip	_m_can_set_bittiming
.subsections_via_symbols
