	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xcan_set_bittiming
_xcan_set_bittiming:                    ## @xcan_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
	movq	_XCAN_SR_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	*(%rbx)
	movq	_XCAN_SR_CONFIG_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movl	52(%rbx), %edx
	decl	%edx
	movl	56(%rbx), %eax
	movl	60(%rbx), %ecx
	leal	(%rax,%rcx), %esi
	decl	%esi
	movl	64(%rbx), %edi
	decl	%edi
	movb	16(%rbx), %cl
	movb	20(%rbx), %al
	shll	%cl, %edi
	movl	68(%rbx), %r15d
	decl	%r15d
	movl	%eax, %ecx
	shll	%cl, %r15d
	orl	%esi, %edi
	orl	%edi, %r15d
	movq	_XCAN_BRPR_OFFSET@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movq	_XCAN_BTR_OFFSET@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	*8(%rbx)
	movq	24(%rbx), %rax
	movq	_XAXI_CANFD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_XAXI_CANFD_2_0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_4:
	movl	32(%rbx), %edx
	decl	%edx
	movl	36(%rbx), %eax
	movl	40(%rbx), %ecx
	leal	(%rax,%rcx), %esi
	decl	%esi
	movl	44(%rbx), %edi
	decl	%edi
	movb	16(%rbx), %cl
	movb	20(%rbx), %al
	shll	%cl, %edi
	movl	48(%rbx), %r15d
	decl	%r15d
	movl	%eax, %ecx
	shll	%cl, %r15d
	orl	%esi, %edi
	orl	%edi, %r15d
	movq	_XCAN_F_BRPR_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movq	_XCAN_F_BTR_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	*8(%rbx)
LBB0_5:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	*(%rbx)
	movl	%eax, %r15d
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	*(%rbx)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_netdev_dbg
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_alert
	movq	_EPERM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XCAN_SR_OFFSET,4,2             ## @XCAN_SR_OFFSET
	.comm	_XCAN_SR_CONFIG_MASK,4,2        ## @XCAN_SR_CONFIG_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BUG! Cannot set bittiming - CAN is not in config mode\n"

	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_XCAN_BRPR_OFFSET,4,2           ## @XCAN_BRPR_OFFSET
	.comm	_XCAN_BTR_OFFSET,4,2            ## @XCAN_BTR_OFFSET
	.comm	_XAXI_CANFD,8,3                 ## @XAXI_CANFD
	.comm	_XAXI_CANFD_2_0,8,3             ## @XAXI_CANFD_2_0
	.comm	_XCAN_F_BRPR_OFFSET,4,2         ## @XCAN_F_BRPR_OFFSET
	.comm	_XCAN_F_BTR_OFFSET,4,2          ## @XCAN_F_BTR_OFFSET
L_.str.1:                               ## @.str.1
	.asciz	"BRPR=0x%08x, BTR=0x%08x\n"

	.no_dead_strip	_xcan_set_bittiming
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xcan_set_bittiming
_xcan_set_bittiming:                    ; @xcan_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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _XCAN_SR_OFFSET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XCAN_SR_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	blr	x8
Lloh3:
	adrp	x8, _XCAN_SR_CONFIG_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XCAN_SR_CONFIG_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.1:
	ldp	w8, w9, [x20, #52]
	sub	w2, w8, #1
	ldr	w8, [x20, #60]
	add	w8, w9, w8
	sub	w8, w8, #1
	ldr	d0, [x20, #64]
	movi.2d	v1, #0xffffffffffffffff
	add.2s	v0, v0, v1
	ldr	d1, [x20, #16]
	ushl.2s	v0, v0, v1
	mov.s	w9, v0[1]
	fmov	w10, s0
	orr	w8, w10, w8
	orr	w21, w8, w9
	ldr	x8, [x20, #8]
Lloh6:
	adrp	x22, _XCAN_BRPR_OFFSET@GOTPAGE
Lloh7:
	ldr	x22, [x22, _XCAN_BRPR_OFFSET@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	blr	x8
	ldr	x8, [x20, #8]
Lloh8:
	adrp	x23, _XCAN_BTR_OFFSET@GOTPAGE
Lloh9:
	ldr	x23, [x23, _XCAN_BTR_OFFSET@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, x21
	blr	x8
	ldr	x8, [x20, #24]
Lloh10:
	adrp	x9, _XAXI_CANFD@GOTPAGE
Lloh11:
	ldr	x9, [x9, _XAXI_CANFD@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
Lloh13:
	adrp	x9, _XAXI_CANFD_2_0@GOTPAGE
Lloh14:
	ldr	x9, [x9, _XAXI_CANFD_2_0@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_3:
	ldp	w8, w9, [x20, #32]
	sub	w2, w8, #1
	ldr	w8, [x20, #40]
	add	w8, w9, w8
	sub	w8, w8, #1
	ldur	d0, [x20, #44]
	movi.2d	v1, #0xffffffffffffffff
	add.2s	v0, v0, v1
	ldr	d1, [x20, #16]
	ushl.2s	v0, v0, v1
	mov.s	w9, v0[1]
	fmov	w10, s0
	orr	w8, w10, w8
	orr	w21, w8, w9
	ldr	x8, [x20, #8]
Lloh16:
	adrp	x9, _XCAN_F_BRPR_OFFSET@GOTPAGE
Lloh17:
	ldr	x9, [x9, _XCAN_F_BRPR_OFFSET@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x9]
	mov	x0, x20
	blr	x8
	ldr	x8, [x20, #8]
Lloh19:
	adrp	x9, _XCAN_F_BTR_OFFSET@GOTPAGE
Lloh20:
	ldr	x9, [x9, _XCAN_F_BTR_OFFSET@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x9]
	mov	x0, x20
	mov	x2, x21
	blr	x8
LBB0_4:
	ldr	x8, [x20]
	ldr	w1, [x22]
	mov	x0, x20
	blr	x8
	mov	x21, x0
	ldr	x8, [x20]
	ldr	w1, [x23]
	mov	x0, x20
	blr	x8
	mov	x3, x0
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_netdev_dbg
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_alert
Lloh26:
	adrp	x8, _EPERM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_XCAN_SR_OFFSET,4,2             ; @XCAN_SR_OFFSET
	.comm	_XCAN_SR_CONFIG_MASK,4,2        ; @XCAN_SR_CONFIG_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BUG! Cannot set bittiming - CAN is not in config mode\n"

	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_XCAN_BRPR_OFFSET,4,2           ; @XCAN_BRPR_OFFSET
	.comm	_XCAN_BTR_OFFSET,4,2            ; @XCAN_BTR_OFFSET
	.comm	_XAXI_CANFD,8,3                 ; @XAXI_CANFD
	.comm	_XAXI_CANFD_2_0,8,3             ; @XAXI_CANFD_2_0
	.comm	_XCAN_F_BRPR_OFFSET,4,2         ; @XCAN_F_BRPR_OFFSET
	.comm	_XCAN_F_BTR_OFFSET,4,2          ; @XCAN_F_BTR_OFFSET
l_.str.1:                               ; @.str.1
	.asciz	"BRPR=0x%08x, BTR=0x%08x\n"

	.no_dead_strip	_xcan_set_bittiming
.subsections_via_symbols
