	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcp251x_do_set_bittiming
_mcp251x_do_set_bittiming:              ## @mcp251x_do_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
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	32(%rax), %r14
	movq	_CNF1@GOTPCREL(%rip), %r15
	movl	8(%rax), %eax
	decl	%eax
	movq	_CNF1_SJW_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	(%r15), %esi
	movl	12(%rbx), %edx
	decl	%edx
	orl	%eax, %edx
	movq	%r14, %rdi
	callq	_mcp251x_write_reg
	movq	_CNF2@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_CNF2_BTLMODE@GOTPCREL(%rip), %rcx
	movq	_CAN_CTRLMODE_3_SAMPLES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	je	LBB0_2
## %bb.1:
	movq	_CNF2_SAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	orl	(%rcx), %eax
	movl	16(%rbx), %edi
	decl	%edi
	movq	_CNF2_PS1_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	movl	20(%rbx), %edx
	decl	%edx
	orl	%edi, %edx
	orl	%eax, %edx
	movq	%r14, %rdi
	callq	_mcp251x_write_reg
	movq	_CNF3@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_CNF3_PHSEG2_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	24(%rbx), %rcx
	decq	%rcx
	movq	%r14, %rdi
	callq	_mcp251x_write_bits
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_mcp251x_read_reg
	movl	%eax, %r15d
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_mcp251x_read_reg
	movl	%eax, %ebx
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_mcp251x_read_reg
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_dev_dbg
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CNF1,4,2                       ## @CNF1
	.comm	_CNF1_SJW_SHIFT,4,2             ## @CNF1_SJW_SHIFT
	.comm	_CNF2,4,2                       ## @CNF2
	.comm	_CNF2_BTLMODE,4,2               ## @CNF2_BTLMODE
	.comm	_CAN_CTRLMODE_3_SAMPLES,4,2     ## @CAN_CTRLMODE_3_SAMPLES
	.comm	_CNF2_SAM,4,2                   ## @CNF2_SAM
	.comm	_CNF2_PS1_SHIFT,4,2             ## @CNF2_PS1_SHIFT
	.comm	_CNF3,4,2                       ## @CNF3
	.comm	_CNF3_PHSEG2_MASK,4,2           ## @CNF3_PHSEG2_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CNF: 0x%02x 0x%02x 0x%02x\n"

	.no_dead_strip	_mcp251x_do_set_bittiming
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcp251x_do_set_bittiming
_mcp251x_do_set_bittiming:              ; @mcp251x_do_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
	bl	_netdev_priv
	mov	x20, x0
	ldr	x19, [x0, #32]
Lloh0:
	adrp	x21, _CNF1@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CNF1@GOTPAGEOFF]
	ldr	w1, [x21]
	ldp	w8, w9, [x0, #8]
	sub	w8, w8, #1
Lloh2:
	adrp	x10, _CNF1_SJW_SHIFT@GOTPAGE
Lloh3:
	ldr	x10, [x10, _CNF1_SJW_SHIFT@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	sub	w9, w9, #1
	orr	w2, w9, w8
	mov	x0, x19
	bl	_mcp251x_write_reg
Lloh5:
	adrp	x22, _CNF2@GOTPAGE
Lloh6:
	ldr	x22, [x22, _CNF2@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh7:
	adrp	x8, _CNF2_BTLMODE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CNF2_BTLMODE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _CAN_CTRLMODE_3_SAMPLES@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CAN_CTRLMODE_3_SAMPLES@GOTPAGEOFF]
	ldr	w10, [x20]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x11, _CNF2_SAM@GOTPAGE
Lloh14:
	ldr	x11, [x11, _CNF2_SAM@GOTPAGEOFF]
Lloh15:
	ldr	w11, [x11]
	tst	w9, w10
	csel	w9, wzr, w11, eq
	orr	w8, w9, w8
Lloh16:
	adrp	x9, _CNF2_PS1_SHIFT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CNF2_PS1_SHIFT@GOTPAGEOFF]
	ldp	w10, w11, [x20, #16]
	sub	w10, w10, #1
Lloh18:
	ldr	w9, [x9]
	lsl	w9, w10, w9
	orr	w8, w8, w9
	sub	w9, w11, #1
	orr	w2, w8, w9
	mov	x0, x19
	bl	_mcp251x_write_reg
Lloh19:
	adrp	x23, _CNF3@GOTPAGE
Lloh20:
	ldr	x23, [x23, _CNF3@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh21:
	adrp	x8, _CNF3_PHSEG2_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CNF3_PHSEG2_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	ldr	x8, [x20, #24]
	sub	x3, x8, #1
	mov	x0, x19
	bl	_mcp251x_write_bits
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mcp251x_read_reg
	mov	x20, x0
	ldr	w1, [x22]
	mov	x0, x19
	bl	_mcp251x_read_reg
	mov	x21, x0
	ldr	w1, [x23]
	mov	x0, x19
	bl	_mcp251x_read_reg
	mov	x4, x0
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_dev_dbg
	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 AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CNF1,4,2                       ; @CNF1
	.comm	_CNF1_SJW_SHIFT,4,2             ; @CNF1_SJW_SHIFT
	.comm	_CNF2,4,2                       ; @CNF2
	.comm	_CNF2_BTLMODE,4,2               ; @CNF2_BTLMODE
	.comm	_CAN_CTRLMODE_3_SAMPLES,4,2     ; @CAN_CTRLMODE_3_SAMPLES
	.comm	_CNF2_SAM,4,2                   ; @CNF2_SAM
	.comm	_CNF2_PS1_SHIFT,4,2             ; @CNF2_PS1_SHIFT
	.comm	_CNF3,4,2                       ; @CNF3
	.comm	_CNF3_PHSEG2_MASK,4,2           ; @CNF3_PHSEG2_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CNF: 0x%02x 0x%02x 0x%02x\n"

	.no_dead_strip	_mcp251x_do_set_bittiming
.subsections_via_symbols
