	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_mac_dma_config
_emac_mac_dma_config:                   ## @emac_mac_dma_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_DMAR_REQ_PRI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rdi), %ecx
	cmpl	$128, %ecx
	je	LBB0_5
## %bb.1:
	cmpl	$130, %ecx
	je	LBB0_4
## %bb.2:
	cmpl	$129, %ecx
	jne	LBB0_7
## %bb.3:
	movq	_IN_ORDER_MODE@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_5:
	movq	_OUT_ORDER_MODE@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	_ENH_ORDER_MODE@GOTPCREL(%rip), %rcx
LBB0_6:
	orl	(%rcx), %eax
LBB0_7:
	movl	40(%rdi), %edx
	movq	_REGRDBLEN_SHFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_REGRDBLEN_BMSK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	movl	32(%rdi), %r8d
	movq	_REGWRBLEN_SHFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r8d
	movq	_REGWRBLEN_BMSK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r8d
	movl	24(%rdi), %esi
	movq	_DMAR_DLY_CNT_SHFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	orl	%eax, %edx
	movq	_DMAR_DLY_CNT_BMSK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movl	16(%rdi), %eax
	orl	%r8d, %esi
	orl	%edx, %esi
	movq	_DMAW_DLY_CNT_SHFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_DMAW_DLY_CNT_BMSK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	orl	%esi, %eax
	movq	_EMAC_DMA_CTRL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	8(%rdi), %rsi
	movl	%eax, %edi
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMAR_REQ_PRI,4,2               ## @DMAR_REQ_PRI
	.comm	_IN_ORDER_MODE,4,2              ## @IN_ORDER_MODE
	.comm	_ENH_ORDER_MODE,4,2             ## @ENH_ORDER_MODE
	.comm	_OUT_ORDER_MODE,4,2             ## @OUT_ORDER_MODE
	.comm	_REGRDBLEN_SHFT,4,2             ## @REGRDBLEN_SHFT
	.comm	_REGRDBLEN_BMSK,4,2             ## @REGRDBLEN_BMSK
	.comm	_REGWRBLEN_SHFT,4,2             ## @REGWRBLEN_SHFT
	.comm	_REGWRBLEN_BMSK,4,2             ## @REGWRBLEN_BMSK
	.comm	_DMAR_DLY_CNT_SHFT,4,2          ## @DMAR_DLY_CNT_SHFT
	.comm	_DMAR_DLY_CNT_BMSK,4,2          ## @DMAR_DLY_CNT_BMSK
	.comm	_DMAW_DLY_CNT_SHFT,4,2          ## @DMAW_DLY_CNT_SHFT
	.comm	_DMAW_DLY_CNT_BMSK,4,2          ## @DMAW_DLY_CNT_BMSK
	.comm	_EMAC_DMA_CTRL,8,3              ## @EMAC_DMA_CTRL
	.no_dead_strip	_emac_mac_dma_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_mac_dma_config
_emac_mac_dma_config:                   ; @emac_mac_dma_config
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _DMAR_REQ_PRI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMAR_REQ_PRI@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0]
	cmp	w9, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w9, #130
	b.eq	LBB0_5
; %bb.2:
	cmp	w9, #129
	b.ne	LBB0_7
; %bb.3:
Lloh3:
	adrp	x9, _IN_ORDER_MODE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IN_ORDER_MODE@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x9, _OUT_ORDER_MODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _OUT_ORDER_MODE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x9, _ENH_ORDER_MODE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ENH_ORDER_MODE@GOTPAGEOFF]
LBB0_6:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_7:
	ldr	w9, [x0, #40]
Lloh9:
	adrp	x10, _REGRDBLEN_SHFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _REGRDBLEN_SHFT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh12:
	adrp	x10, _REGRDBLEN_BMSK@GOTPAGE
Lloh13:
	ldr	x10, [x10, _REGRDBLEN_BMSK@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	and	w9, w9, w10
	orr	w8, w9, w8
	ldr	w9, [x0, #32]
Lloh15:
	adrp	x10, _REGWRBLEN_SHFT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _REGWRBLEN_SHFT@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh18:
	adrp	x10, _REGWRBLEN_BMSK@GOTPAGE
Lloh19:
	ldr	x10, [x10, _REGWRBLEN_BMSK@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	and	w9, w9, w10
	orr	w8, w8, w9
	ldr	w9, [x0, #24]
Lloh21:
	adrp	x10, _DMAR_DLY_CNT_SHFT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _DMAR_DLY_CNT_SHFT@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh24:
	adrp	x10, _DMAR_DLY_CNT_BMSK@GOTPAGE
Lloh25:
	ldr	x10, [x10, _DMAR_DLY_CNT_BMSK@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	and	w9, w9, w10
	orr	w8, w8, w9
	ldr	w9, [x0, #16]
Lloh27:
	adrp	x10, _DMAW_DLY_CNT_SHFT@GOTPAGE
Lloh28:
	ldr	x10, [x10, _DMAW_DLY_CNT_SHFT@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh30:
	adrp	x10, _DMAW_DLY_CNT_BMSK@GOTPAGE
Lloh31:
	ldr	x10, [x10, _DMAW_DLY_CNT_BMSK@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	and	w9, w9, w10
	orr	w8, w8, w9
	ldr	x9, [x0, #8]
Lloh33:
	adrp	x10, _EMAC_DMA_CTRL@GOTPAGE
Lloh34:
	ldr	x10, [x10, _EMAC_DMA_CTRL@GOTPAGEOFF]
Lloh35:
	ldr	x10, [x10]
	add	x1, x10, x9
	mov	x0, x8
	b	_writel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DMAR_REQ_PRI,4,2               ; @DMAR_REQ_PRI
	.comm	_IN_ORDER_MODE,4,2              ; @IN_ORDER_MODE
	.comm	_ENH_ORDER_MODE,4,2             ; @ENH_ORDER_MODE
	.comm	_OUT_ORDER_MODE,4,2             ; @OUT_ORDER_MODE
	.comm	_REGRDBLEN_SHFT,4,2             ; @REGRDBLEN_SHFT
	.comm	_REGRDBLEN_BMSK,4,2             ; @REGRDBLEN_BMSK
	.comm	_REGWRBLEN_SHFT,4,2             ; @REGWRBLEN_SHFT
	.comm	_REGWRBLEN_BMSK,4,2             ; @REGWRBLEN_BMSK
	.comm	_DMAR_DLY_CNT_SHFT,4,2          ; @DMAR_DLY_CNT_SHFT
	.comm	_DMAR_DLY_CNT_BMSK,4,2          ; @DMAR_DLY_CNT_BMSK
	.comm	_DMAW_DLY_CNT_SHFT,4,2          ; @DMAW_DLY_CNT_SHFT
	.comm	_DMAW_DLY_CNT_BMSK,4,2          ; @DMAW_DLY_CNT_BMSK
	.comm	_EMAC_DMA_CTRL,8,3              ; @EMAC_DMA_CTRL
	.no_dead_strip	_emac_mac_dma_config
.subsections_via_symbols
