	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_canfd_configure_tx
_rcar_canfd_configure_tx:               ## @rcar_canfd_configure_tx
	.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, %r15
	xorl	%eax, %eax
	cmpq	$0, 8(%rdi)
	movl	%esi, %r14d
	movl	$7, %r12d
	cmovel	%eax, %r12d
	xorl	%edi, %edi
	callq	_RCANFD_CFCC_CFTML
	movl	%eax, %r13d
	movl	$1, %edi
	callq	_RCANFD_CFCC_CFM
	orl	%eax, %r13d
	movq	_RCANFD_CFCC_CFIM@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movl	$2, %edi
	callq	_RCANFD_CFCC_CFDC
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_RCANFD_CFCC_CFPLS
	orl	%eax, %ebx
	orl	%r13d, %ebx
	movq	_RCANFD_CFCC_CFTXIE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r15), %r12d
	movq	_RCANFD_CFFIFO_IDX@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	%r14d, %edi
	callq	_RCANFD_CFCC
	movl	%r12d, %edi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_rcar_canfd_write
	cmpq	$0, 8(%r15)
	je	LBB0_1
## %bb.2:
	movl	(%r15), %ebx
	movl	(%r13), %esi
	movl	%r14d, %edi
	callq	_RCANFD_F_CFFDCSTS
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rcar_canfd_write               ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RCANFD_CFCC_CFIM,4,2           ## @RCANFD_CFCC_CFIM
	.comm	_RCANFD_CFCC_CFTXIE,4,2         ## @RCANFD_CFCC_CFTXIE
	.comm	_RCANFD_CFFIFO_IDX,4,2          ## @RCANFD_CFFIFO_IDX
	.no_dead_strip	_rcar_canfd_configure_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_canfd_configure_tx
_rcar_canfd_configure_tx:               ; @rcar_canfd_configure_tx
	.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, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	cmp	x8, #0
	mov	w8, #7
	csel	w21, wzr, w8, eq
	mov	w0, #0
	bl	_RCANFD_CFCC_CFTML
	mov	x22, x0
	mov	w0, #1
	bl	_RCANFD_CFCC_CFM
	orr	w8, w0, w22
Lloh0:
	adrp	x9, _RCANFD_CFCC_CFIM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RCANFD_CFCC_CFIM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	orr	w22, w8, w9
	mov	w0, #2
	bl	_RCANFD_CFCC_CFDC
	orr	w22, w22, w0
	mov	x0, x21
	bl	_RCANFD_CFCC_CFPLS
	orr	w8, w22, w0
Lloh3:
	adrp	x9, _RCANFD_CFCC_CFTXIE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RCANFD_CFCC_CFTXIE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w21, w8, w9
	ldr	w22, [x20]
Lloh6:
	adrp	x23, _RCANFD_CFFIFO_IDX@GOTPAGE
Lloh7:
	ldr	x23, [x23, _RCANFD_CFFIFO_IDX@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_RCANFD_CFCC
	mov	x1, x0
	mov	x0, x22
	mov	x2, x21
	bl	_rcar_canfd_write
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w20, [x20]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_RCANFD_F_CFFDCSTS
	mov	x1, x0
	mov	x0, x20
	mov	w2, #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
	b	_rcar_canfd_write
LBB0_2:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RCANFD_CFCC_CFIM,4,2           ; @RCANFD_CFCC_CFIM
	.comm	_RCANFD_CFCC_CFTXIE,4,2         ; @RCANFD_CFCC_CFTXIE
	.comm	_RCANFD_CFFIFO_IDX,4,2          ; @RCANFD_CFFIFO_IDX
	.no_dead_strip	_rcar_canfd_configure_tx
.subsections_via_symbols
