	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_init_dmac
_igb_init_dmac:                         ## @igb_init_dmac
	.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	_e1000_82580@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, 8(%rdi)
	jle	LBB0_3
## %bb.1:
	movq	%rdi, %r14
	movq	_IGB_FLAG_DMAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_6
## %bb.2:
	movl	%esi, %r15d
	movq	_E1000_DMCTXTH@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	xorl	%esi, %esi
	callq	_wr32
	movl	%r15d, %ebx
	shll	$6, %ebx
	movl	4(%r14), %eax
	leal	15(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$4, %ecx
	movl	%ebx, %eax
	subl	%ecx, %eax
	addl	$-384, %ebx                     ## imm = 0xFE80
	cmpl	%ebx, %eax
	cmovgl	%eax, %ebx
	movq	_E1000_FCRTC@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_rd32
	movq	_E1000_FCRTC_RTH_COAL_MASK@GOTPCREL(%rip), %rdx
	movq	_E1000_FCRTC_RTH_COAL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	xorl	%eax, %ebx
	andl	(%rdx), %ebx
	xorl	%eax, %ebx
	movl	(%r13), %edi
	movl	%ebx, %esi
	callq	_wr32
	movl	4(%r14), %eax
	leal	511(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$9, %ecx
	movl	%r15d, %eax
	subl	%ecx, %eax
	addl	$-10, %r15d
	cmpl	%r15d, %eax
	cmovgl	%eax, %r15d
	movq	_E1000_DMACR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_rd32
	movq	_E1000_DMACR_DMACTHR_MASK@GOTPCREL(%rip), %rdx
	movq	_E1000_DMACR_DMACTHR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r15d
	movl	(%rdx), %ecx
	andl	%ecx, %r15d
	notl	%ecx
	andl	%eax, %ecx
	movq	_E1000_DMACR_DMAC_EN@GOTPCREL(%rip), %rax
	movq	_E1000_DMACR_DMAC_LX_MASK@GOTPCREL(%rip), %rdx
	orl	(%rax), %ecx
	orl	%r15d, %ecx
	orl	(%rdx), %ecx
	orl	$31, %ecx
	movq	8(%r14), %rax
	movq	_e1000_i354@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	movq	_E1000_DMACR_DC_BMC2OSW_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	$-1, %esi
	cmovnel	%eax, %esi
	andl	%ecx, %esi
	movl	(%rbx), %edi
	callq	_wr32
	movq	_E1000_DMCRTRH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_wr32
	movq	_IGB_DMCTLX_DCFLUSH_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	$4, %esi
	movq	_E1000_DMCTLX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_wr32
	movl	(%r12), %edi
	movq	_IGB_MIN_TXPBSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IGB_TX_BUF_4096@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	4(%r14), %eax
	subl	%eax, %esi
	sarl	$6, %esi
	callq	_wr32
	movq	_E1000_PCIEMISC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_rd32
	movq	_E1000_PCIEMISC_LX_DECISION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	jmp	LBB0_5
LBB0_3:
	jne	LBB0_6
## %bb.4:
	movq	_E1000_PCIEMISC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_rd32
	movl	(%rbx), %edi
	movq	_E1000_PCIEMISC_LX_DECISION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	callq	_wr32
	xorl	%esi, %esi
	movq	_E1000_DMACR@GOTPCREL(%rip), %rbx
LBB0_5:
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wr32                           ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_82580,8,3                ## @e1000_82580
	.comm	_IGB_FLAG_DMAC,4,2              ## @IGB_FLAG_DMAC
	.comm	_E1000_DMCTXTH,4,2              ## @E1000_DMCTXTH
	.comm	_E1000_FCRTC,4,2                ## @E1000_FCRTC
	.comm	_E1000_FCRTC_RTH_COAL_MASK,4,2  ## @E1000_FCRTC_RTH_COAL_MASK
	.comm	_E1000_FCRTC_RTH_COAL_SHIFT,4,2 ## @E1000_FCRTC_RTH_COAL_SHIFT
	.comm	_E1000_DMACR,4,2                ## @E1000_DMACR
	.comm	_E1000_DMACR_DMACTHR_MASK,4,2   ## @E1000_DMACR_DMACTHR_MASK
	.comm	_E1000_DMACR_DMACTHR_SHIFT,4,2  ## @E1000_DMACR_DMACTHR_SHIFT
	.comm	_E1000_DMACR_DMAC_EN,4,2        ## @E1000_DMACR_DMAC_EN
	.comm	_E1000_DMACR_DMAC_LX_MASK,4,2   ## @E1000_DMACR_DMAC_LX_MASK
	.comm	_e1000_i354,8,3                 ## @e1000_i354
	.comm	_E1000_DMACR_DC_BMC2OSW_EN,4,2  ## @E1000_DMACR_DC_BMC2OSW_EN
	.comm	_E1000_DMCRTRH,4,2              ## @E1000_DMCRTRH
	.comm	_IGB_DMCTLX_DCFLUSH_DIS,4,2     ## @IGB_DMCTLX_DCFLUSH_DIS
	.comm	_E1000_DMCTLX,4,2               ## @E1000_DMCTLX
	.comm	_IGB_MIN_TXPBSIZE,4,2           ## @IGB_MIN_TXPBSIZE
	.comm	_IGB_TX_BUF_4096,4,2            ## @IGB_TX_BUF_4096
	.comm	_E1000_PCIEMISC,4,2             ## @E1000_PCIEMISC
	.comm	_E1000_PCIEMISC_LX_DECISION,4,2 ## @E1000_PCIEMISC_LX_DECISION
	.no_dead_strip	_igb_init_dmac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igb_init_dmac
_igb_init_dmac:                         ; @igb_init_dmac
	.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
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _e1000_82580@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_82580@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _IGB_FLAG_DMAC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IGB_FLAG_DMAC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.2:
	mov	x20, x1
Lloh6:
	adrp	x21, _E1000_DMCTXTH@GOTPAGE
Lloh7:
	ldr	x21, [x21, _E1000_DMCTXTH@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #0
	bl	_wr32
	lsl	w8, w20, #6
	ldr	w9, [x19, #4]
	add	w10, w9, #15
	cmp	w9, #0
	csel	w9, w10, w9, lt
	sub	w9, w8, w9, asr #4
	sub	w8, w8, #384
	cmp	w9, w8
	csel	w22, w9, w8, gt
Lloh8:
	adrp	x23, _E1000_FCRTC@GOTPAGE
Lloh9:
	ldr	x23, [x23, _E1000_FCRTC@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_rd32
Lloh10:
	adrp	x8, _E1000_FCRTC_RTH_COAL_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _E1000_FCRTC_RTH_COAL_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _E1000_FCRTC_RTH_COAL_SHIFT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _E1000_FCRTC_RTH_COAL_SHIFT@GOTPAGEOFF]
	bic	w10, w0, w8
Lloh15:
	ldr	w9, [x9]
	lsl	w9, w22, w9
	and	w8, w9, w8
	orr	w1, w8, w10
	ldr	w0, [x23]
	bl	_wr32
	ldr	w8, [x19, #4]
	add	w9, w8, #511
	cmp	w8, #0
	csel	w8, w9, w8, lt
	sub	w8, w20, w8, asr #9
	sub	w9, w20, #10
	cmp	w8, w9
	csel	w20, w8, w9, gt
Lloh16:
	adrp	x22, _E1000_DMACR@GOTPAGE
Lloh17:
	ldr	x22, [x22, _E1000_DMACR@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_rd32
Lloh18:
	adrp	x8, _E1000_DMACR_DMACTHR_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _E1000_DMACR_DMACTHR_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	bic	w9, w0, w8
Lloh21:
	adrp	x10, _E1000_DMACR_DMACTHR_SHIFT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _E1000_DMACR_DMACTHR_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	lsl	w10, w20, w10
	and	w8, w10, w8
Lloh24:
	adrp	x10, _E1000_DMACR_DMAC_EN@GOTPAGE
Lloh25:
	ldr	x10, [x10, _E1000_DMACR_DMAC_EN@GOTPAGEOFF]
Lloh26:
	adrp	x11, _E1000_DMACR_DMAC_LX_MASK@GOTPAGE
Lloh27:
	ldr	x11, [x11, _E1000_DMACR_DMAC_LX_MASK@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
Lloh29:
	ldr	w11, [x11]
	orr	w9, w9, w10
	orr	w8, w9, w8
	orr	w8, w8, w11
	orr	w8, w8, #0x1f
	ldr	x9, [x19, #8]
Lloh30:
	adrp	x10, _e1000_i354@GOTPAGE
Lloh31:
	ldr	x10, [x10, _e1000_i354@GOTPAGEOFF]
Lloh32:
	ldr	x10, [x10]
Lloh33:
	adrp	x11, _E1000_DMACR_DC_BMC2OSW_EN@GOTPAGE
Lloh34:
	ldr	x11, [x11, _E1000_DMACR_DC_BMC2OSW_EN@GOTPAGEOFF]
Lloh35:
	ldr	w11, [x11]
	cmp	x9, x10
	mov	w9, #-1
	csinv	w9, w9, w11, eq
	and	w1, w9, w8
	ldr	w0, [x22]
	bl	_wr32
Lloh36:
	adrp	x8, _E1000_DMCRTRH@GOTPAGE
Lloh37:
	ldr	x8, [x8, _E1000_DMCRTRH@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_wr32
Lloh39:
	adrp	x8, _IGB_DMCTLX_DCFLUSH_DIS@GOTPAGE
Lloh40:
	ldr	x8, [x8, _IGB_DMCTLX_DCFLUSH_DIS@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	orr	w1, w8, #0x4
Lloh42:
	adrp	x8, _E1000_DMCTLX@GOTPAGE
Lloh43:
	ldr	x8, [x8, _E1000_DMCTLX@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	bl	_wr32
	ldr	w0, [x21]
Lloh45:
	adrp	x8, _IGB_MIN_TXPBSIZE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _IGB_MIN_TXPBSIZE@GOTPAGEOFF]
Lloh47:
	adrp	x9, _IGB_TX_BUF_4096@GOTPAGE
Lloh48:
	ldr	x9, [x9, _IGB_TX_BUF_4096@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
Lloh50:
	ldr	w9, [x9]
	ldr	w10, [x19, #4]
	add	w9, w9, w10
	sub	w8, w8, w9
	asr	w1, w8, #6
	bl	_wr32
Lloh51:
	adrp	x19, _E1000_PCIEMISC@GOTPAGE
Lloh52:
	ldr	x19, [x19, _E1000_PCIEMISC@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_rd32
Lloh53:
	adrp	x8, _E1000_PCIEMISC_LX_DECISION@GOTPAGE
Lloh54:
	ldr	x8, [x8, _E1000_PCIEMISC_LX_DECISION@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	bic	w1, w0, w8
	b	LBB0_5
LBB0_3:
	b.ne	LBB0_6
; %bb.4:
Lloh56:
	adrp	x19, _E1000_PCIEMISC@GOTPAGE
Lloh57:
	ldr	x19, [x19, _E1000_PCIEMISC@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_rd32
	ldr	w8, [x19]
Lloh58:
	adrp	x9, _E1000_PCIEMISC_LX_DECISION@GOTPAGE
Lloh59:
	ldr	x9, [x9, _E1000_PCIEMISC_LX_DECISION@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	bic	w1, w0, w9
	mov	x0, x8
	bl	_wr32
	mov	w1, #0
Lloh61:
	adrp	x19, _E1000_DMACR@GOTPAGE
Lloh62:
	ldr	x19, [x19, _E1000_DMACR@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x19]
	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	_wr32
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh49
	.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	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_82580,8,3                ; @e1000_82580
	.comm	_IGB_FLAG_DMAC,4,2              ; @IGB_FLAG_DMAC
	.comm	_E1000_DMCTXTH,4,2              ; @E1000_DMCTXTH
	.comm	_E1000_FCRTC,4,2                ; @E1000_FCRTC
	.comm	_E1000_FCRTC_RTH_COAL_MASK,4,2  ; @E1000_FCRTC_RTH_COAL_MASK
	.comm	_E1000_FCRTC_RTH_COAL_SHIFT,4,2 ; @E1000_FCRTC_RTH_COAL_SHIFT
	.comm	_E1000_DMACR,4,2                ; @E1000_DMACR
	.comm	_E1000_DMACR_DMACTHR_MASK,4,2   ; @E1000_DMACR_DMACTHR_MASK
	.comm	_E1000_DMACR_DMACTHR_SHIFT,4,2  ; @E1000_DMACR_DMACTHR_SHIFT
	.comm	_E1000_DMACR_DMAC_EN,4,2        ; @E1000_DMACR_DMAC_EN
	.comm	_E1000_DMACR_DMAC_LX_MASK,4,2   ; @E1000_DMACR_DMAC_LX_MASK
	.comm	_e1000_i354,8,3                 ; @e1000_i354
	.comm	_E1000_DMACR_DC_BMC2OSW_EN,4,2  ; @E1000_DMACR_DC_BMC2OSW_EN
	.comm	_E1000_DMCRTRH,4,2              ; @E1000_DMCRTRH
	.comm	_IGB_DMCTLX_DCFLUSH_DIS,4,2     ; @IGB_DMCTLX_DCFLUSH_DIS
	.comm	_E1000_DMCTLX,4,2               ; @E1000_DMCTLX
	.comm	_IGB_MIN_TXPBSIZE,4,2           ; @IGB_MIN_TXPBSIZE
	.comm	_IGB_TX_BUF_4096,4,2            ; @IGB_TX_BUF_4096
	.comm	_E1000_PCIEMISC,4,2             ; @E1000_PCIEMISC
	.comm	_E1000_PCIEMISC_LX_DECISION,4,2 ; @E1000_PCIEMISC_LX_DECISION
	.no_dead_strip	_igb_init_dmac
.subsections_via_symbols
