	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_mng_host_if_write
_e1000_mng_host_if_write:               ## @e1000_mng_host_if_write
	.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
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	%rcx, %r14
	movq	%rdx, %r15
	leaq	(%rcx,%rdx), %rax
	movq	_E1000_HI_MAX_MNG_DATA_LENGTH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_3
LBB0_2:
	movq	_E1000_ERR_PARAM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_21
LBB0_3:
	movq	%r8, %r13
	movq	%rsi, %rbx
	movq	%r14, %rdx
	sarq	$2, %rdx
	andq	$3, %r14
	movq	%rdi, %r12
	je	LBB0_10
## %bb.4:
	movq	_E1000_HOST_IF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	callq	_E1000_READ_REG_ARRAY
	movq	(%r13), %rax
	addq	(%rbx), %rax
	movq	%rax, (%r13)
	addq	8(%rbx), %rax
	movq	%rax, (%r13)
	addq	16(%rbx), %rax
	movq	%rax, (%r13)
	addq	24(%rbx), %rax
	movq	%rax, (%r13)
	movq	32(%rbx), %rcx
	addq	%rcx, %rax
	movq	%rax, (%r13)
	cmpl	$3, %r14d
	jne	LBB0_6
## %bb.5:
	addq	$40, %rbx
	jmp	LBB0_9
LBB0_6:
	movq	40(%rbx), %rcx
	addq	%rcx, %rax
	movq	%rax, (%r13)
	cmpl	$2, %r14d
	jne	LBB0_8
## %bb.7:
	addq	$48, %rbx
	jmp	LBB0_9
LBB0_8:
	movq	48(%rbx), %rcx
	addq	$56, %rbx
	addq	%rcx, %rax
	movq	%rax, (%r13)
LBB0_9:
	movq	_E1000_HOST_IF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_E1000_WRITE_REG_ARRAY
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rdi
	addq	%r14, %r15
	addq	$-8, %r15
	incq	%rdx
LBB0_10:
	movl	%r15d, %ecx
	andl	$3, %ecx
	xorl	%r14d, %r14d
	cmpq	$4, %r15
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	jl	LBB0_14
## %bb.11:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	shrq	$2, %r15
	movq	%rdx, %r14
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	addq	(%rbx), %rax
	movq	%rax, (%r13)
	addq	8(%rbx), %rax
	movq	%rax, (%r13)
	addq	16(%rbx), %rax
	movq	%rax, (%r13)
	addq	24(%rbx), %rax
	movq	%rax, (%r13)
	addq	32(%rbx), %rax
	movq	%rax, (%r13)
	addq	40(%rbx), %rax
	movq	%rax, (%r13)
	addq	48(%rbx), %rax
	movq	%rax, (%r13)
	movq	56(%rbx), %rcx
	addq	$64, %rbx
	addq	%rcx, %rax
	movq	%rax, (%r13)
	movq	_E1000_HOST_IF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_E1000_WRITE_REG_ARRAY
	incq	%r14
	decq	%r15
	jne	LBB0_12
## %bb.13:
	movq	%r12, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	xorl	%r14d, %r14d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	jne	LBB0_15
	jmp	LBB0_21
LBB0_14:
	xorl	%edx, %edx
	testq	%rcx, %rcx
	je	LBB0_21
LBB0_15:
	movq	(%r13), %rax
	addq	(%rbx), %rax
	movq	%rax, (%r13)
	xorl	%r14d, %r14d
	cmpl	$1, %ecx
	je	LBB0_19
## %bb.17:
	addq	8(%rbx), %rax
	movq	%rax, (%r13)
	cmpl	$3, %ecx
	jne	LBB0_19
## %bb.18:
	movq	16(%rbx), %rcx
	jmp	LBB0_20
LBB0_19:
	xorl	%ecx, %ecx
LBB0_20:
	addq	%rcx, %rax
	movq	%rax, (%r13)
	movq	_E1000_HOST_IF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	-48(%rbp), %rdx                 ## 8-byte Folded Reload
	xorl	%ecx, %ecx
	callq	_E1000_WRITE_REG_ARRAY
LBB0_21:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_HI_MAX_MNG_DATA_LENGTH,8,3 ## @E1000_HI_MAX_MNG_DATA_LENGTH
	.comm	_E1000_ERR_PARAM,4,2            ## @E1000_ERR_PARAM
	.comm	_E1000_HOST_IF,4,2              ## @E1000_HOST_IF
	.no_dead_strip	_e1000_mng_host_if_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_mng_host_if_write
_e1000_mng_host_if_write:               ; @e1000_mng_host_if_write
	.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
	cbz	x2, LBB0_2
; %bb.1:
	mov	x23, x2
Lloh0:
	adrp	x8, _E1000_HI_MAX_MNG_DATA_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E1000_HI_MAX_MNG_DATA_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x9, x3, x2
	cmp	x9, x8
	b.le	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _E1000_ERR_PARAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E1000_ERR_PARAM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_21
LBB0_3:
	mov	x20, x4
	mov	x22, x1
	mov	x19, x0
	asr	x21, x3, #2
Lloh6:
	adrp	x24, _E1000_HOST_IF@GOTPAGE
Lloh7:
	ldr	x24, [x24, _E1000_HOST_IF@GOTPAGEOFF]
	ands	x25, x3, #0x3
	b.eq	LBB0_10
; %bb.4:
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x21
	bl	_E1000_READ_REG_ARRAY
	ldr	x8, [x20]
	ldr	x9, [x22]
	add	x8, x8, x9
	str	x8, [x20]
	ldr	x9, [x22, #8]
	add	x8, x8, x9
	str	x8, [x20]
	ldr	x9, [x22, #16]
	add	x8, x8, x9
	str	x8, [x20]
	ldr	x9, [x22, #24]
	add	x8, x8, x9
	str	x8, [x20]
	ldr	x3, [x22, #32]
	add	x8, x8, x3
	str	x8, [x20]
	cmp	x25, #3
	b.ne	LBB0_6
; %bb.5:
	add	x22, x22, #40
	b	LBB0_9
LBB0_6:
	ldr	x3, [x22, #40]
	add	x8, x8, x3
	str	x8, [x20]
	cmp	x25, #2
	b.ne	LBB0_8
; %bb.7:
	add	x22, x22, #48
	b	LBB0_9
LBB0_8:
	ldr	x3, [x22, #48]
	add	x22, x22, #56
	add	x8, x8, x3
	str	x8, [x20]
LBB0_9:
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x21
	bl	_E1000_WRITE_REG_ARRAY
	add	x8, x25, x23
	sub	x23, x8, #8
	add	x21, x21, #1
LBB0_10:
	and	x26, x23, #0x3
	cmp	x23, #4
	b.lt	LBB0_14
; %bb.11:
	lsr	x25, x23, #2
	mov	x23, x21
	mov	x27, x25
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x9, [x20]
	add	x8, x9, x8
	str	x8, [x20]
	ldr	x9, [x22, #8]
	add	x8, x8, x9
	str	x8, [x20]
	ldr	x9, [x22, #16]
	add	x8, x8, x9
	str	x8, [x20]
	ldr	x9, [x22, #24]
	add	x8, x8, x9
	str	x8, [x20]
	ldr	x9, [x22, #32]
	add	x8, x8, x9
	str	x8, [x20]
	ldr	x9, [x22, #40]
	add	x8, x8, x9
	str	x8, [x20]
	ldr	x9, [x22, #48]
	add	x8, x8, x9
	str	x8, [x20]
	add	x28, x22, #64
	ldr	x3, [x22, #56]
	add	x8, x8, x3
	str	x8, [x20]
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x23
	bl	_E1000_WRITE_REG_ARRAY
	add	x23, x23, #1
	mov	x22, x28
	subs	x27, x27, #1
	b.ne	LBB0_12
; %bb.13:
	mov	x22, x28
	cbnz	x26, LBB0_15
	b	LBB0_20
LBB0_14:
	mov	x25, #0
	cbz	x26, LBB0_20
LBB0_15:
	ldr	x8, [x22]
	ldr	x9, [x20]
	add	x8, x9, x8
	str	x8, [x20]
	cmp	x26, #1
	b.eq	LBB0_18
; %bb.16:
	ldr	x9, [x22, #8]
	add	x8, x8, x9
	str	x8, [x20]
	cmp	x26, #3
	b.ne	LBB0_18
; %bb.17:
	ldr	x9, [x22, #16]
	b	LBB0_19
LBB0_18:
	mov	x9, #0
LBB0_19:
	add	x8, x8, x9
	str	x8, [x20]
	ldr	w1, [x24]
	add	x2, x25, x21
	mov	x0, x19
	mov	x3, #0
	bl	_E1000_WRITE_REG_ARRAY
LBB0_20:
	mov	w0, #0
LBB0_21:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_HI_MAX_MNG_DATA_LENGTH,8,3 ; @E1000_HI_MAX_MNG_DATA_LENGTH
	.comm	_E1000_ERR_PARAM,4,2            ; @E1000_ERR_PARAM
	.comm	_E1000_HOST_IF,4,2              ; @E1000_HOST_IF
	.no_dead_strip	_e1000_mng_host_if_write
.subsections_via_symbols
