	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gem_init_dma
_gem_init_dma:                          ## @gem_init_dma
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	16(%rdi), %r14d
	movq	_TXDMA_CFG_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TXDMA_CFG_PMODE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	orl	$2096128, %edi                  ## imm = 0x1FFC00
	movq	_TXDMA_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	_TXDMA_DBHI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	_TXDMA_DBLOW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	%r14d, %edi
	callq	_writel
	movq	_INIT_BLOCK_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%r14,%rax,4), %r14d
	movq	_TXDMA_KICK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_RXDMA_CFG_BASE@GOTPCREL(%rip), %rax
	movq	_RX_OFFSET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$10, %ecx
	orl	(%rax), %ecx
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$13, %edi
	orl	%ecx, %edi
	movq	_RXDMA_CFG_FTHRESH_128@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_RXDMA_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	_RXDMA_DBHI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	_RXDMA_DBLOW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	%r14d, %edi
	callq	_writel
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	$-4, %edi
	movq	_RXDMA_KICK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	leal	63(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$6, %edx
	movq	_RXDMA_PTHRESH_OFF@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	leal	63(%rcx), %edi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edi
	shll	$6, %edi
	movq	_RXDMA_PTHRESH_ON@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	andl	$-4096, %edi                    ## imm = 0xF000
	orl	%edx, %edi
	movq	_RXDMA_PTHRESH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	_GREG_BIFCFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_GREG_BIFCFG_M66EN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	andl	(%rcx), %eax
	setne	%dil
	movq	_RXDMA_BLANK_IPKTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	$5, %eax
	movq	_RXDMA_BLANK_ITIME@GOTPCREL(%rip), %rcx
	shll	$14, %edi
	addl	$16384, %edi                    ## imm = 0x4000
	andl	(%rcx), %edi
	orl	%eax, %edi
	movq	_RXDMA_BLANK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TXDMA_CFG_BASE,4,2             ## @TXDMA_CFG_BASE
	.comm	_TXDMA_CFG_PMODE,4,2            ## @TXDMA_CFG_PMODE
	.comm	_TXDMA_CFG,8,3                  ## @TXDMA_CFG
	.comm	_TXDMA_DBHI,8,3                 ## @TXDMA_DBHI
	.comm	_TXDMA_DBLOW,8,3                ## @TXDMA_DBLOW
	.comm	_INIT_BLOCK_TX_RING_SIZE,4,2    ## @INIT_BLOCK_TX_RING_SIZE
	.comm	_TXDMA_KICK,8,3                 ## @TXDMA_KICK
	.comm	_RXDMA_CFG_BASE,4,2             ## @RXDMA_CFG_BASE
	.comm	_RX_OFFSET,4,2                  ## @RX_OFFSET
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_RXDMA_CFG_FTHRESH_128,4,2      ## @RXDMA_CFG_FTHRESH_128
	.comm	_RXDMA_CFG,8,3                  ## @RXDMA_CFG
	.comm	_RXDMA_DBHI,8,3                 ## @RXDMA_DBHI
	.comm	_RXDMA_DBLOW,8,3                ## @RXDMA_DBLOW
	.comm	_RX_RING_SIZE,4,2               ## @RX_RING_SIZE
	.comm	_RXDMA_KICK,8,3                 ## @RXDMA_KICK
	.comm	_RXDMA_PTHRESH_OFF,4,2          ## @RXDMA_PTHRESH_OFF
	.comm	_RXDMA_PTHRESH_ON,4,2           ## @RXDMA_PTHRESH_ON
	.comm	_RXDMA_PTHRESH,8,3              ## @RXDMA_PTHRESH
	.comm	_GREG_BIFCFG,8,3                ## @GREG_BIFCFG
	.comm	_GREG_BIFCFG_M66EN,4,2          ## @GREG_BIFCFG_M66EN
	.comm	_RXDMA_BLANK_IPKTS,4,2          ## @RXDMA_BLANK_IPKTS
	.comm	_RXDMA_BLANK_ITIME,4,2          ## @RXDMA_BLANK_ITIME
	.comm	_RXDMA_BLANK,8,3                ## @RXDMA_BLANK
	.no_dead_strip	_gem_init_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gem_init_dma
_gem_init_dma:                          ; @gem_init_dma
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _TXDMA_CFG_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TXDMA_CFG_BASE@GOTPAGEOFF]
	ldr	w20, [x0, #16]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _TXDMA_CFG_PMODE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TXDMA_CFG_PMODE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w8, w9
	orr	w0, w8, #0x1ffc00
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _TXDMA_CFG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TXDMA_CFG@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _TXDMA_DBHI@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TXDMA_DBHI@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh12:
	adrp	x9, _TXDMA_DBLOW@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TXDMA_DBLOW@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
Lloh15:
	adrp	x8, _INIT_BLOCK_TX_RING_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INIT_BLOCK_TX_RING_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	add	w20, w20, w8, lsl #2
	ldr	x8, [x19, #8]
Lloh18:
	adrp	x9, _TXDMA_KICK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TXDMA_KICK@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
Lloh21:
	adrp	x8, _RXDMA_CFG_BASE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RXDMA_CFG_BASE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _RX_OFFSET@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RX_OFFSET@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	adrp	x10, _ETH_HLEN@GOTPAGE
Lloh28:
	ldr	x10, [x10, _ETH_HLEN@GOTPAGEOFF]
	orr	w8, w8, w9, lsl #10
Lloh29:
	ldr	w9, [x10]
	orr	w8, w8, w9, lsl #13
Lloh30:
	adrp	x9, _RXDMA_CFG_FTHRESH_128@GOTPAGE
Lloh31:
	ldr	x9, [x9, _RXDMA_CFG_FTHRESH_128@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x19, #8]
Lloh33:
	adrp	x9, _RXDMA_CFG@GOTPAGE
Lloh34:
	ldr	x9, [x9, _RXDMA_CFG@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh36:
	adrp	x9, _RXDMA_DBHI@GOTPAGE
Lloh37:
	ldr	x9, [x9, _RXDMA_DBHI@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh39:
	adrp	x9, _RXDMA_DBLOW@GOTPAGE
Lloh40:
	ldr	x9, [x9, _RXDMA_DBLOW@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
Lloh42:
	adrp	x8, _RX_RING_SIZE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _RX_RING_SIZE@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	sub	w0, w8, #4
	ldr	x8, [x19, #8]
Lloh45:
	adrp	x9, _RXDMA_KICK@GOTPAGE
Lloh46:
	ldr	x9, [x9, _RXDMA_KICK@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldp	w8, w9, [x19]
	add	w10, w8, #63
	cmp	w8, #0
	csel	w8, w10, w8, lt
Lloh48:
	adrp	x10, _RXDMA_PTHRESH_OFF@GOTPAGE
Lloh49:
	ldr	x10, [x10, _RXDMA_PTHRESH_OFF@GOTPAGEOFF]
Lloh50:
	ldr	w10, [x10]
	and	w8, w10, w8, asr #6
	add	w10, w9, #63
	cmp	w9, #0
	csel	w9, w10, w9, lt
Lloh51:
	adrp	x10, _RXDMA_PTHRESH_ON@GOTPAGE
Lloh52:
	ldr	x10, [x10, _RXDMA_PTHRESH_ON@GOTPAGEOFF]
Lloh53:
	ldr	w10, [x10]
	and	w9, w10, w9, lsl #6
	and	w9, w9, #0xfffff000
	orr	w0, w9, w8
	ldr	x8, [x19, #8]
Lloh54:
	adrp	x9, _RXDMA_PTHRESH@GOTPAGE
Lloh55:
	ldr	x9, [x9, _RXDMA_PTHRESH@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh57:
	adrp	x9, _GREG_BIFCFG@GOTPAGE
Lloh58:
	ldr	x9, [x9, _GREG_BIFCFG@GOTPAGEOFF]
Lloh59:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh60:
	adrp	x8, _GREG_BIFCFG_M66EN@GOTPAGE
Lloh61:
	ldr	x8, [x8, _GREG_BIFCFG_M66EN@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
Lloh63:
	adrp	x9, _RXDMA_BLANK_IPKTS@GOTPAGE
Lloh64:
	ldr	x9, [x9, _RXDMA_BLANK_IPKTS@GOTPAGEOFF]
Lloh65:
	ldr	w9, [x9]
	mov	w10, #5
	and	w9, w9, w10
Lloh66:
	adrp	x10, _RXDMA_BLANK_ITIME@GOTPAGE
Lloh67:
	ldr	x10, [x10, _RXDMA_BLANK_ITIME@GOTPAGEOFF]
Lloh68:
	ldr	w10, [x10]
	tst	w8, w0
	mov	w8, #32768
	mov	w11, #16384
	csel	w8, w11, w8, eq
	and	w8, w10, w8
	orr	w0, w8, w9
	ldr	x8, [x19, #8]
Lloh69:
	adrp	x9, _RXDMA_BLANK@GOTPAGE
Lloh70:
	ldr	x9, [x9, _RXDMA_BLANK@GOTPAGEOFF]
Lloh71:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TXDMA_CFG_BASE,4,2             ; @TXDMA_CFG_BASE
	.comm	_TXDMA_CFG_PMODE,4,2            ; @TXDMA_CFG_PMODE
	.comm	_TXDMA_CFG,8,3                  ; @TXDMA_CFG
	.comm	_TXDMA_DBHI,8,3                 ; @TXDMA_DBHI
	.comm	_TXDMA_DBLOW,8,3                ; @TXDMA_DBLOW
	.comm	_INIT_BLOCK_TX_RING_SIZE,4,2    ; @INIT_BLOCK_TX_RING_SIZE
	.comm	_TXDMA_KICK,8,3                 ; @TXDMA_KICK
	.comm	_RXDMA_CFG_BASE,4,2             ; @RXDMA_CFG_BASE
	.comm	_RX_OFFSET,4,2                  ; @RX_OFFSET
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_RXDMA_CFG_FTHRESH_128,4,2      ; @RXDMA_CFG_FTHRESH_128
	.comm	_RXDMA_CFG,8,3                  ; @RXDMA_CFG
	.comm	_RXDMA_DBHI,8,3                 ; @RXDMA_DBHI
	.comm	_RXDMA_DBLOW,8,3                ; @RXDMA_DBLOW
	.comm	_RX_RING_SIZE,4,2               ; @RX_RING_SIZE
	.comm	_RXDMA_KICK,8,3                 ; @RXDMA_KICK
	.comm	_RXDMA_PTHRESH_OFF,4,2          ; @RXDMA_PTHRESH_OFF
	.comm	_RXDMA_PTHRESH_ON,4,2           ; @RXDMA_PTHRESH_ON
	.comm	_RXDMA_PTHRESH,8,3              ; @RXDMA_PTHRESH
	.comm	_GREG_BIFCFG,8,3                ; @GREG_BIFCFG
	.comm	_GREG_BIFCFG_M66EN,4,2          ; @GREG_BIFCFG_M66EN
	.comm	_RXDMA_BLANK_IPKTS,4,2          ; @RXDMA_BLANK_IPKTS
	.comm	_RXDMA_BLANK_ITIME,4,2          ; @RXDMA_BLANK_ITIME
	.comm	_RXDMA_BLANK,8,3                ; @RXDMA_BLANK
	.no_dead_strip	_gem_init_dma
.subsections_via_symbols
