	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_canfd_configure_afl_rules
_rcar_canfd_configure_afl_rules:        ## @rcar_canfd_configure_afl_rules
	.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, %r13
	movq	_RCANFD_CHANNEL_NUMRULES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_RCANFD_RFFIFO_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movl	(%r13), %edi
	movq	_RCANFD_GAFLCFG0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rcar_canfd_read
	xorl	%edi, %edi
	movq	%rax, %rsi
	callq	_RCANFD_GAFLCFG_GETRNC
	movl	%eax, %r15d
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
LBB0_3:
	movl	%r15d, %edi
	callq	_RCANFD_GAFL_PAGENUM
	movl	(%r13), %ebx
	movq	_RCANFD_GAFLECTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	%eax, %edi
	callq	_RCANFD_GAFLECTR_AFLPN
	movq	_RCANFD_GAFLECTR_AFLDAE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_rcar_canfd_set_bit
	movl	(%r13), %r14d
	movq	_RCANFD_GAFLCFG0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_RCANFD_GAFLCFG_SETRNC
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_rcar_canfd_set_bit
	cmpq	$0, 8(%r13)
	jne	LBB0_4
## %bb.5:
	movq	_RCANFD_C_GAFL_OFFSET@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_RCANFD_F_GAFL_OFFSET@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ebx
	addq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	movl	(%r13), %r14d
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_RCANFD_GAFLID
	movl	%r14d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_rcar_canfd_write
	movl	(%r13), %r14d
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_RCANFD_GAFLM
	movl	%r14d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_rcar_canfd_write
	movl	(%r13), %r14d
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_RCANFD_GAFLP0
	movl	%r14d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_rcar_canfd_write
	movl	(%r13), %r14d
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_RCANFD_GAFLP1
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_RCANFD_GAFLP1_GAFLFDP
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_rcar_canfd_write
	movl	(%r13), %edi
	movq	_RCANFD_GAFLECTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RCANFD_GAFLECTR_AFLDAE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rcar_canfd_clear_bit           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RCANFD_CHANNEL_NUMRULES,4,2    ## @RCANFD_CHANNEL_NUMRULES
	.comm	_RCANFD_RFFIFO_IDX,8,3          ## @RCANFD_RFFIFO_IDX
	.comm	_RCANFD_GAFLCFG0,4,2            ## @RCANFD_GAFLCFG0
	.comm	_RCANFD_GAFLECTR,4,2            ## @RCANFD_GAFLECTR
	.comm	_RCANFD_GAFLECTR_AFLDAE,4,2     ## @RCANFD_GAFLECTR_AFLDAE
	.comm	_RCANFD_F_GAFL_OFFSET,4,2       ## @RCANFD_F_GAFL_OFFSET
	.comm	_RCANFD_C_GAFL_OFFSET,4,2       ## @RCANFD_C_GAFL_OFFSET
	.no_dead_strip	_rcar_canfd_configure_afl_rules
.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_afl_rules
_rcar_canfd_configure_afl_rules:        ; @rcar_canfd_configure_afl_rules
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _RCANFD_CHANNEL_NUMRULES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RCANFD_CHANNEL_NUMRULES@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _RCANFD_RFFIFO_IDX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RCANFD_RFFIFO_IDX@GOTPAGEOFF]
Lloh5:
	ldr	x27, [x8]
Lloh6:
	adrp	x28, _RCANFD_GAFLCFG0@GOTPAGE
Lloh7:
	ldr	x28, [x28, _RCANFD_GAFLCFG0@GOTPAGEOFF]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	ldr	w1, [x28]
	bl	_rcar_canfd_read
	mov	x1, x0
	mov	w0, #0
	bl	_RCANFD_GAFLCFG_GETRNC
	mov	x20, x0
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
	mov	x0, x20
	bl	_RCANFD_GAFL_PAGENUM
	ldr	w23, [x19]
Lloh8:
	adrp	x25, _RCANFD_GAFLECTR@GOTPAGE
Lloh9:
	ldr	x25, [x25, _RCANFD_GAFLECTR@GOTPAGEOFF]
	ldr	w24, [x25]
	bl	_RCANFD_GAFLECTR_AFLPN
Lloh10:
	adrp	x26, _RCANFD_GAFLECTR_AFLDAE@GOTPAGE
Lloh11:
	ldr	x26, [x26, _RCANFD_GAFLECTR_AFLDAE@GOTPAGEOFF]
	ldr	w8, [x26]
	orr	w2, w8, w0
	mov	x0, x23
	mov	x1, x24
	bl	_rcar_canfd_set_bit
	ldr	w23, [x19]
	ldr	w24, [x28]
	mov	x0, x21
	mov	x1, x22
	bl	_RCANFD_GAFLCFG_SETRNC
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_rcar_canfd_set_bit
Lloh12:
	adrp	x8, _RCANFD_C_GAFL_OFFSET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RCANFD_C_GAFL_OFFSET@GOTPAGEOFF]
Lloh14:
	adrp	x9, _RCANFD_F_GAFL_OFFSET@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RCANFD_F_GAFL_OFFSET@GOTPAGEOFF]
	ldr	x10, [x19, #8]
	cmp	x10, #0
	csel	x8, x8, x9, eq
	ldr	w22, [x8]
	add	x21, x27, x21
	ldr	w23, [x19]
	mov	x0, x22
	mov	x1, x20
	bl	_RCANFD_GAFLID
	mov	x1, x0
	mov	x0, x23
	mov	w2, #0
	bl	_rcar_canfd_write
	ldr	w23, [x19]
	mov	x0, x22
	mov	x1, x20
	bl	_RCANFD_GAFLM
	mov	x1, x0
	mov	x0, x23
	mov	w2, #0
	bl	_rcar_canfd_write
	ldr	w23, [x19]
	mov	x0, x22
	mov	x1, x20
	bl	_RCANFD_GAFLP0
	mov	x1, x0
	mov	x0, x23
	mov	w2, #0
	bl	_rcar_canfd_write
	ldr	w23, [x19]
	mov	x0, x22
	mov	x1, x20
	bl	_RCANFD_GAFLP1
	mov	x20, x0
	mov	x0, x21
	bl	_RCANFD_GAFLP1_GAFLFDP
	mov	x2, x0
	mov	x0, x23
	mov	x1, x20
	bl	_rcar_canfd_write
	ldr	w0, [x19]
	ldr	w1, [x25]
	ldr	w2, [x26]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_rcar_canfd_clear_bit
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RCANFD_CHANNEL_NUMRULES,4,2    ; @RCANFD_CHANNEL_NUMRULES
	.comm	_RCANFD_RFFIFO_IDX,8,3          ; @RCANFD_RFFIFO_IDX
	.comm	_RCANFD_GAFLCFG0,4,2            ; @RCANFD_GAFLCFG0
	.comm	_RCANFD_GAFLECTR,4,2            ; @RCANFD_GAFLECTR
	.comm	_RCANFD_GAFLECTR_AFLDAE,4,2     ; @RCANFD_GAFLECTR_AFLDAE
	.comm	_RCANFD_F_GAFL_OFFSET,4,2       ; @RCANFD_F_GAFL_OFFSET
	.comm	_RCANFD_C_GAFL_OFFSET,4,2       ; @RCANFD_C_GAFL_OFFSET
	.no_dead_strip	_rcar_canfd_configure_afl_rules
.subsections_via_symbols
