	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ravb_dmac_init
_ravb_dmac_init:                        ## @ravb_dmac_init
	.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
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_ravb_config
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	_RAVB_BE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_ravb_ring_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movq	_RAVB_NC@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_ravb_ring_init
	movl	(%r12), %esi
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_ravb_ring_free
	jmp	LBB0_7
LBB0_4:
	movq	%r15, %rdi
	callq	_ravb_ring_format
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_ravb_ring_format
	movq	_RCR_EFFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RCR_ENCF@GOTPCREL(%rip), %rax
	movq	_RCR_ETS0@GOTPCREL(%rip), %rcx
	movq	_RCR_ESF@GOTPCREL(%rip), %rdx
	orl	(%rax), %esi
	orl	(%rcx), %esi
	orl	(%rdx), %esi
	orl	$402653184, %esi                ## imm = 0x18000000
	movq	_RCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ravb_write
	movq	_TGC_TQP_AVBMODE1@GOTPCREL(%rip), %rax
	movl	$1122816, %esi                  ## imm = 0x112200
	orl	(%rax), %esi
	movq	_TGC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ravb_write
	movq	_TCCR_TFEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TCCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ravb_write
	movq	(%r14), %rax
	movq	_RCAR_GEN3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_DIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ravb_write
	movq	_CIE_CRIE@GOTPCREL(%rip), %rax
	movq	_CIE_CTIE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_CIE_CL0M@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_CIE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ravb_write
LBB0_6:
	movq	_RIC0_FRE0@GOTPCREL(%rip), %rax
	movq	_RIC0_FRE1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_RIC0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ravb_write
	movq	_RIC1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ravb_write
	movq	_RIC2_QFE0@GOTPCREL(%rip), %rax
	movq	_RIC2_QFE1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_RIC2_RFFE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_RIC2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ravb_write
	movq	_TIC_FTE0@GOTPCREL(%rip), %rax
	movq	_TIC_FTE1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_TIC_TFUE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_TIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ravb_write
	movq	_CCC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CCC_OPC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CCC_OPC_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_ravb_modify
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RAVB_BE,4,2                    ## @RAVB_BE
	.comm	_RAVB_NC,4,2                    ## @RAVB_NC
	.comm	_RCR_EFFS,4,2                   ## @RCR_EFFS
	.comm	_RCR_ENCF,4,2                   ## @RCR_ENCF
	.comm	_RCR_ETS0,4,2                   ## @RCR_ETS0
	.comm	_RCR_ESF,4,2                    ## @RCR_ESF
	.comm	_RCR,4,2                        ## @RCR
	.comm	_TGC_TQP_AVBMODE1,4,2           ## @TGC_TQP_AVBMODE1
	.comm	_TGC,4,2                        ## @TGC
	.comm	_TCCR_TFEN,4,2                  ## @TCCR_TFEN
	.comm	_TCCR,4,2                       ## @TCCR
	.comm	_RCAR_GEN3,8,3                  ## @RCAR_GEN3
	.comm	_DIL,4,2                        ## @DIL
	.comm	_CIE_CRIE,4,2                   ## @CIE_CRIE
	.comm	_CIE_CTIE,4,2                   ## @CIE_CTIE
	.comm	_CIE_CL0M,4,2                   ## @CIE_CL0M
	.comm	_CIE,4,2                        ## @CIE
	.comm	_RIC0_FRE0,4,2                  ## @RIC0_FRE0
	.comm	_RIC0_FRE1,4,2                  ## @RIC0_FRE1
	.comm	_RIC0,4,2                       ## @RIC0
	.comm	_RIC1,4,2                       ## @RIC1
	.comm	_RIC2_QFE0,4,2                  ## @RIC2_QFE0
	.comm	_RIC2_QFE1,4,2                  ## @RIC2_QFE1
	.comm	_RIC2_RFFE,4,2                  ## @RIC2_RFFE
	.comm	_RIC2,4,2                       ## @RIC2
	.comm	_TIC_FTE0,4,2                   ## @TIC_FTE0
	.comm	_TIC_FTE1,4,2                   ## @TIC_FTE1
	.comm	_TIC_TFUE,4,2                   ## @TIC_TFUE
	.comm	_TIC,4,2                        ## @TIC
	.comm	_CCC,4,2                        ## @CCC
	.comm	_CCC_OPC,4,2                    ## @CCC_OPC
	.comm	_CCC_OPC_OPERATION,4,2          ## @CCC_OPC_OPERATION
	.no_dead_strip	_ravb_dmac_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ravb_dmac_init
_ravb_dmac_init:                        ; @ravb_dmac_init
	.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
	mov	x0, x19
	bl	_ravb_config
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x22, _RAVB_BE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RAVB_BE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ravb_ring_init
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.2:
Lloh2:
	adrp	x23, _RAVB_NC@GOTPAGE
Lloh3:
	ldr	x23, [x23, _RAVB_NC@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ravb_ring_init
	ldr	w1, [x22]
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
	mov	x0, x19
	bl	_ravb_ring_free
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_ravb_ring_format
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ravb_ring_format
Lloh4:
	adrp	x8, _RCR_EFFS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RCR_EFFS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _RCR_ENCF@GOTPAGE
Lloh8:
	ldr	x9, [x9, _RCR_ENCF@GOTPAGEOFF]
Lloh9:
	adrp	x10, _RCR_ETS0@GOTPAGE
Lloh10:
	ldr	x10, [x10, _RCR_ETS0@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	ldr	w10, [x10]
Lloh13:
	adrp	x11, _RCR_ESF@GOTPAGE
Lloh14:
	ldr	x11, [x11, _RCR_ESF@GOTPAGEOFF]
Lloh15:
	ldr	w11, [x11]
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w1, w8, #0x18000000
Lloh16:
	adrp	x8, _RCR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RCR@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ravb_write
Lloh19:
	adrp	x8, _TGC_TQP_AVBMODE1@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TGC_TQP_AVBMODE1@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	mov	w9, #8704
	movk	w9, #17, lsl #16
	orr	w1, w8, w9
Lloh22:
	adrp	x8, _TGC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TGC@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ravb_write
Lloh25:
	adrp	x8, _TCCR_TFEN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TCCR_TFEN@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _TCCR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TCCR@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ravb_write
	ldr	x8, [x20]
Lloh31:
	adrp	x9, _RCAR_GEN3@GOTPAGE
Lloh32:
	ldr	x9, [x9, _RCAR_GEN3@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh34:
	adrp	x8, _DIL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _DIL@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_ravb_write
Lloh37:
	adrp	x8, _CIE_CRIE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CIE_CRIE@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
Lloh40:
	adrp	x9, _CIE_CTIE@GOTPAGE
Lloh41:
	ldr	x9, [x9, _CIE_CTIE@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
Lloh43:
	adrp	x10, _CIE_CL0M@GOTPAGE
Lloh44:
	ldr	x10, [x10, _CIE_CL0M@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh45:
	ldr	w9, [x10]
	orr	w1, w8, w9
Lloh46:
	adrp	x8, _CIE@GOTPAGE
Lloh47:
	ldr	x8, [x8, _CIE@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ravb_write
LBB0_6:
Lloh49:
	adrp	x8, _RIC0_FRE0@GOTPAGE
Lloh50:
	ldr	x8, [x8, _RIC0_FRE0@GOTPAGEOFF]
Lloh51:
	adrp	x9, _RIC0_FRE1@GOTPAGE
Lloh52:
	ldr	x9, [x9, _RIC0_FRE1@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
Lloh54:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh55:
	adrp	x8, _RIC0@GOTPAGE
Lloh56:
	ldr	x8, [x8, _RIC0@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ravb_write
Lloh58:
	adrp	x8, _RIC1@GOTPAGE
Lloh59:
	ldr	x8, [x8, _RIC1@GOTPAGEOFF]
Lloh60:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_ravb_write
Lloh61:
	adrp	x8, _RIC2_QFE0@GOTPAGE
Lloh62:
	ldr	x8, [x8, _RIC2_QFE0@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
Lloh64:
	adrp	x9, _RIC2_QFE1@GOTPAGE
Lloh65:
	ldr	x9, [x9, _RIC2_QFE1@GOTPAGEOFF]
Lloh66:
	ldr	w9, [x9]
Lloh67:
	adrp	x10, _RIC2_RFFE@GOTPAGE
Lloh68:
	ldr	x10, [x10, _RIC2_RFFE@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh69:
	ldr	w9, [x10]
	orr	w1, w8, w9
Lloh70:
	adrp	x8, _RIC2@GOTPAGE
Lloh71:
	ldr	x8, [x8, _RIC2@GOTPAGEOFF]
Lloh72:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ravb_write
Lloh73:
	adrp	x8, _TIC_FTE0@GOTPAGE
Lloh74:
	ldr	x8, [x8, _TIC_FTE0@GOTPAGEOFF]
Lloh75:
	ldr	w8, [x8]
Lloh76:
	adrp	x9, _TIC_FTE1@GOTPAGE
Lloh77:
	ldr	x9, [x9, _TIC_FTE1@GOTPAGEOFF]
Lloh78:
	ldr	w9, [x9]
Lloh79:
	adrp	x10, _TIC_TFUE@GOTPAGE
Lloh80:
	ldr	x10, [x10, _TIC_TFUE@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh81:
	ldr	w9, [x10]
	orr	w1, w8, w9
Lloh82:
	adrp	x8, _TIC@GOTPAGE
Lloh83:
	ldr	x8, [x8, _TIC@GOTPAGEOFF]
Lloh84:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ravb_write
Lloh85:
	adrp	x8, _CCC@GOTPAGE
Lloh86:
	ldr	x8, [x8, _CCC@GOTPAGEOFF]
Lloh87:
	ldr	w1, [x8]
Lloh88:
	adrp	x8, _CCC_OPC@GOTPAGE
Lloh89:
	ldr	x8, [x8, _CCC_OPC@GOTPAGEOFF]
Lloh90:
	ldr	w2, [x8]
Lloh91:
	adrp	x8, _CCC_OPC_OPERATION@GOTPAGE
Lloh92:
	ldr	x8, [x8, _CCC_OPC_OPERATION@GOTPAGEOFF]
Lloh93:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_ravb_modify
	mov	w21, #0
LBB0_7:
	mov	x0, x21
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_RAVB_BE,4,2                    ; @RAVB_BE
	.comm	_RAVB_NC,4,2                    ; @RAVB_NC
	.comm	_RCR_EFFS,4,2                   ; @RCR_EFFS
	.comm	_RCR_ENCF,4,2                   ; @RCR_ENCF
	.comm	_RCR_ETS0,4,2                   ; @RCR_ETS0
	.comm	_RCR_ESF,4,2                    ; @RCR_ESF
	.comm	_RCR,4,2                        ; @RCR
	.comm	_TGC_TQP_AVBMODE1,4,2           ; @TGC_TQP_AVBMODE1
	.comm	_TGC,4,2                        ; @TGC
	.comm	_TCCR_TFEN,4,2                  ; @TCCR_TFEN
	.comm	_TCCR,4,2                       ; @TCCR
	.comm	_RCAR_GEN3,8,3                  ; @RCAR_GEN3
	.comm	_DIL,4,2                        ; @DIL
	.comm	_CIE_CRIE,4,2                   ; @CIE_CRIE
	.comm	_CIE_CTIE,4,2                   ; @CIE_CTIE
	.comm	_CIE_CL0M,4,2                   ; @CIE_CL0M
	.comm	_CIE,4,2                        ; @CIE
	.comm	_RIC0_FRE0,4,2                  ; @RIC0_FRE0
	.comm	_RIC0_FRE1,4,2                  ; @RIC0_FRE1
	.comm	_RIC0,4,2                       ; @RIC0
	.comm	_RIC1,4,2                       ; @RIC1
	.comm	_RIC2_QFE0,4,2                  ; @RIC2_QFE0
	.comm	_RIC2_QFE1,4,2                  ; @RIC2_QFE1
	.comm	_RIC2_RFFE,4,2                  ; @RIC2_RFFE
	.comm	_RIC2,4,2                       ; @RIC2
	.comm	_TIC_FTE0,4,2                   ; @TIC_FTE0
	.comm	_TIC_FTE1,4,2                   ; @TIC_FTE1
	.comm	_TIC_TFUE,4,2                   ; @TIC_TFUE
	.comm	_TIC,4,2                        ; @TIC
	.comm	_CCC,4,2                        ; @CCC
	.comm	_CCC_OPC,4,2                    ; @CCC_OPC
	.comm	_CCC_OPC_OPERATION,4,2          ; @CCC_OPC_OPERATION
	.no_dead_strip	_ravb_dmac_init
.subsections_via_symbols
