	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function c_can_set_bittiming
_c_can_set_bittiming:                   ## @c_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r12
	movl	16(%rax), %r15d
	movl	20(%rax), %eax
	decl	%r15d
	movq	_BTR_BRP_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%r15d, %edx
	sarl	$6, %r15d
	decl	%eax
	movl	24(%r12), %ecx
	movl	28(%r12), %esi
	addl	%ecx, %esi
	decl	%esi
	movl	32(%r12), %ebx
	movq	_BTR_SJW_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_BTR_TSEG1_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	decl	%ebx
	orl	%edx, %eax
	movq	_BTR_TSEG2_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	orl	%esi, %ebx
	orl	%eax, %ebx
	movq	_BRP_EXT_BRPE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_netdev_info
	movq	_C_CAN_CTRL_REG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	*(%r12)
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_CONTROL_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	(%r14), %esi
	movq	_CONTROL_CCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%r13d, %edx
	movq	%r12, %rdi
	callq	*8(%r12)
	movq	_CONTROL_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_c_can_wait_for_ctrl_init
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	notl	%r13d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	andl	%r13d, %eax
	movl	%eax, %r13d
	movq	_C_CAN_BTR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	*8(%r12)
	movq	_C_CAN_BRPEXT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	*8(%r12)
	movq	_C_CAN_CTRL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	*8(%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_c_can_wait_for_ctrl_init       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BTR_BRP_MASK,4,2               ## @BTR_BRP_MASK
	.comm	_BTR_SJW_SHIFT,4,2              ## @BTR_SJW_SHIFT
	.comm	_BTR_TSEG1_SHIFT,4,2            ## @BTR_TSEG1_SHIFT
	.comm	_BTR_TSEG2_SHIFT,4,2            ## @BTR_TSEG2_SHIFT
	.comm	_BRP_EXT_BRPE_MASK,4,2          ## @BRP_EXT_BRPE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting BTR=%04x BRPE=%04x\n"

	.comm	_C_CAN_CTRL_REG,4,2             ## @C_CAN_CTRL_REG
	.comm	_CONTROL_INIT,4,2               ## @CONTROL_INIT
	.comm	_CONTROL_CCE,4,2                ## @CONTROL_CCE
	.comm	_C_CAN_BTR_REG,4,2              ## @C_CAN_BTR_REG
	.comm	_C_CAN_BRPEXT_REG,4,2           ## @C_CAN_BRPEXT_REG
	.no_dead_strip	_c_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 c_can_set_bittiming
_c_can_set_bittiming:                   ; @c_can_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
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldp	w8, w9, [x0, #16]
	sub	w8, w8, #1
Lloh0:
	adrp	x10, _BTR_BRP_MASK@GOTPAGE
Lloh1:
	ldr	x10, [x10, _BTR_BRP_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	and	w10, w8, w10
	sub	w9, w9, #1
	ldp	w11, w12, [x0, #24]
	add	w11, w11, w12
	sub	w11, w11, #1
	ldr	w12, [x0, #32]
Lloh3:
	adrp	x13, _BTR_SJW_SHIFT@GOTPAGE
Lloh4:
	ldr	x13, [x13, _BTR_SJW_SHIFT@GOTPAGEOFF]
	sub	w12, w12, #1
Lloh5:
	ldr	w13, [x13]
	lsl	w9, w9, w13
	orr	w9, w9, w10
Lloh6:
	adrp	x10, _BTR_TSEG1_SHIFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BTR_TSEG1_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	lsl	w10, w11, w10
	orr	w9, w9, w10
Lloh9:
	adrp	x10, _BTR_TSEG2_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _BTR_TSEG2_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	lsl	w10, w12, w10
	orr	w22, w9, w10
Lloh12:
	adrp	x9, _BRP_EXT_BRPE_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BRP_EXT_BRPE_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w21, w9, w8, asr #6
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	mov	x3, x21
	bl	_netdev_info
	ldr	x8, [x20]
Lloh17:
	adrp	x24, _C_CAN_CTRL_REG@GOTPAGE
Lloh18:
	ldr	x24, [x24, _C_CAN_CTRL_REG@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	blr	x8
	mov	x23, x0
Lloh19:
	adrp	x26, _CONTROL_INIT@GOTPAGE
Lloh20:
	ldr	x26, [x26, _CONTROL_INIT@GOTPAGEOFF]
	ldr	w25, [x26]
	ldr	x8, [x20, #8]
	ldr	w1, [x24]
Lloh21:
	adrp	x9, _CONTROL_CCE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CONTROL_CCE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w2, w9, w25
	mov	x0, x20
	blr	x8
	ldr	w2, [x26]
	mov	x0, x19
	mov	x1, x20
	bl	_c_can_wait_for_ctrl_init
	cbz	w0, LBB0_2
; %bb.1:
	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
	ret
LBB0_2:
	bic	w23, w23, w25
	ldr	x8, [x20, #8]
Lloh24:
	adrp	x9, _C_CAN_BTR_REG@GOTPAGE
Lloh25:
	ldr	x9, [x9, _C_CAN_BTR_REG@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x9]
	mov	x0, x20
	mov	x2, x22
	blr	x8
	ldr	x8, [x20, #8]
Lloh27:
	adrp	x9, _C_CAN_BRPEXT_REG@GOTPAGE
Lloh28:
	ldr	x9, [x9, _C_CAN_BRPEXT_REG@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x9]
	mov	x0, x20
	mov	x2, x21
	blr	x8
	ldr	x8, [x20, #8]
	ldr	w1, [x24]
	mov	x0, x20
	mov	x2, x23
	blr	x8
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	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	_c_can_wait_for_ctrl_init
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.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 AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_BTR_BRP_MASK,4,2               ; @BTR_BRP_MASK
	.comm	_BTR_SJW_SHIFT,4,2              ; @BTR_SJW_SHIFT
	.comm	_BTR_TSEG1_SHIFT,4,2            ; @BTR_TSEG1_SHIFT
	.comm	_BTR_TSEG2_SHIFT,4,2            ; @BTR_TSEG2_SHIFT
	.comm	_BRP_EXT_BRPE_MASK,4,2          ; @BRP_EXT_BRPE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting BTR=%04x BRPE=%04x\n"

	.comm	_C_CAN_CTRL_REG,4,2             ; @C_CAN_CTRL_REG
	.comm	_CONTROL_INIT,4,2               ; @CONTROL_INIT
	.comm	_CONTROL_CCE,4,2                ; @CONTROL_CCE
	.comm	_C_CAN_BTR_REG,4,2              ; @C_CAN_BTR_REG
	.comm	_C_CAN_BRPEXT_REG,4,2           ; @C_CAN_BRPEXT_REG
	.no_dead_strip	_c_can_set_bittiming
.subsections_via_symbols
