	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_host_interface_command
_ixgbe_host_interface_command:          ## @ixgbe_host_interface_command
	.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
	movq	%rdi, %r13
	leaq	L_.str(%rip), %r12
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.1:
	movq	%rdx, %rbx
	movl	%ebx, %eax
	andl	$3, %eax
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	_IXGBE_HI_MAX_BLOCK_BYTE_LENGTH@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jl	LBB0_5
## %bb.3:
	movq	%rsi, %r15
	movq	_IXGBE_HICR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_IXGBE_READ_REG
	movq	_IXGBE_HICR_EN@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_4
## %bb.6:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmpq	$4, %rbx
	movq	%r13, %r14
	movq	%r15, %r13
	jl	LBB0_9
## %bb.7:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	shrq	$2, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_IXGBE_FLEX_MNG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%r13,%rbx,8), %rdi
	callq	_cpu_to_le32
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_IXGBE_WRITE_REG_ARRAY
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_8
LBB0_9:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	_IXGBE_HICR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IXGBE_HICR_C@GOTPCREL(%rip), %r15
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	orq	(%r15), %rdx
	movq	%r14, %r13
	movq	%r14, %rdi
	callq	_IXGBE_WRITE_REG
	movq	_IXGBE_HI_COMMAND_TIMEOUT@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jle	LBB0_10
## %bb.11:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	_IXGBE_HICR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_IXGBE_READ_REG
	testq	%rax, (%r15)
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	incq	%rbx
	movq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_12
	jmp	LBB0_15
LBB0_4:
	leaq	L_.str.1(%rip), %r12
	jmp	LBB0_5
LBB0_10:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_13:
	movq	(%r12), %rax
LBB0_15:
	leaq	L_.str.2(%rip), %r12
	cmpq	%rax, %rbx
	je	LBB0_5
## %bb.16:
	movq	_IXGBE_HICR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_IXGBE_READ_REG
	movq	_IXGBE_HICR_SV@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_5
## %bb.17:
	movq	_IXGBE_FLEX_MNG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_IXGBE_READ_REG_ARRAY
	movq	%rax, (%r14)
	movq	%r14, %rdi
	callq	_le32_to_cpus
	movl	(%r15), %esi
	movl	$1, %edx
	movq	%r13, %rdi
	callq	_IXGBE_READ_REG_ARRAY
	leaq	8(%r14), %rdi
	movq	%rax, 8(%r14)
	callq	_le32_to_cpus
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_23
## %bb.18:
	leaq	8(%rax), %rcx
	cmpq	%rbx, %rcx
	jle	LBB0_20
## %bb.19:
	leaq	L_.str.3(%rip), %r12
LBB0_5:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_hw_dbg
	movq	_IXGBE_ERR_HOST_INTERFACE_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_23:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	cmpq	$5, %rax
	jl	LBB0_23
## %bb.21:
	addq	$3, %rax
	shrq	$2, %rax
	movl	$1, %r15d
	subq	%rax, %r15
	addq	$16, %r14
	movl	$2, %ebx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	_IXGBE_FLEX_MNG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_IXGBE_READ_REG_ARRAY
	movq	%rax, (%r14)
	movq	%r14, %rdi
	callq	_le32_to_cpus
	leaq	(%r15,%rbx), %rax
	incq	%rax
	incq	%rbx
	addq	$8, %r14
	cmpq	$2, %rax
	jne	LBB0_22
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_HI_MAX_BLOCK_BYTE_LENGTH,8,3 ## @IXGBE_HI_MAX_BLOCK_BYTE_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Buffer length failure.\n"

	.comm	_IXGBE_ERR_HOST_INTERFACE_COMMAND,4,2 ## @IXGBE_ERR_HOST_INTERFACE_COMMAND
	.comm	_IXGBE_HICR,4,2                 ## @IXGBE_HICR
	.comm	_IXGBE_HICR_EN,8,3              ## @IXGBE_HICR_EN
L_.str.1:                               ## @.str.1
	.asciz	"IXGBE_HOST_EN bit disabled.\n"

	.comm	_IXGBE_FLEX_MNG,4,2             ## @IXGBE_FLEX_MNG
	.comm	_IXGBE_HICR_C,8,3               ## @IXGBE_HICR_C
	.comm	_IXGBE_HI_COMMAND_TIMEOUT,8,3   ## @IXGBE_HI_COMMAND_TIMEOUT
	.comm	_IXGBE_HICR_SV,8,3              ## @IXGBE_HICR_SV
L_.str.2:                               ## @.str.2
	.asciz	"Command has failed with no status valid.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Buffer not large enough for reply message.\n"

	.no_dead_strip	_ixgbe_host_interface_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_host_interface_command
_ixgbe_host_interface_command:          ; @ixgbe_host_interface_command
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	cbz	x2, LBB0_20
; %bb.1:
	mov	x21, x2
	and	x8, x2, #0x3
	cbnz	x8, LBB0_20
; %bb.2:
Lloh2:
	adrp	x8, _IXGBE_HI_MAX_BLOCK_BYTE_LENGTH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IXGBE_HI_MAX_BLOCK_BYTE_LENGTH@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x21
	b.lt	LBB0_20
; %bb.3:
Lloh5:
	adrp	x25, _IXGBE_HICR@GOTPAGE
Lloh6:
	ldr	x25, [x25, _IXGBE_HICR@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_IXGBE_READ_REG
Lloh7:
	adrp	x8, _IXGBE_HICR_EN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IXGBE_HICR_EN@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	tst	x8, x0
	b.eq	LBB0_12
; %bb.4:
	mov	x22, x0
	cmp	x21, #4
	b.lt	LBB0_7
; %bb.5:
	mov	x23, #0
	lsr	x26, x21, #2
Lloh10:
	adrp	x27, _IXGBE_FLEX_MNG@GOTPAGE
Lloh11:
	ldr	x27, [x27, _IXGBE_FLEX_MNG@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x27]
	ldr	x0, [x20, x23, lsl #3]
	bl	_cpu_to_le32
	mov	x3, x0
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	bl	_IXGBE_WRITE_REG_ARRAY
	add	x23, x23, #1
	cmp	x26, x23
	b.ne	LBB0_6
LBB0_7:
	ldr	w1, [x25]
Lloh12:
	adrp	x23, _IXGBE_HICR_C@GOTPAGE
Lloh13:
	ldr	x23, [x23, _IXGBE_HICR_C@GOTPAGEOFF]
	ldr	x8, [x23]
	orr	x2, x8, x22
	mov	x0, x19
	bl	_IXGBE_WRITE_REG
Lloh14:
	adrp	x24, _IXGBE_HI_COMMAND_TIMEOUT@GOTPAGE
Lloh15:
	ldr	x24, [x24, _IXGBE_HI_COMMAND_TIMEOUT@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x8, #1
	b.lt	LBB0_13
; %bb.8:
	mov	x22, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	mov	x0, x19
	bl	_IXGBE_READ_REG
	ldr	x8, [x23]
	tst	x8, x0
	b.eq	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	add	x22, x22, #1
	ldr	x8, [x24]
	cmp	x22, x8
	b.lt	LBB0_9
; %bb.11:
	cmp	x22, x8
	b.ne	LBB0_15
	b	LBB0_19
LBB0_12:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_13:
	mov	x22, #0
	cmp	x22, x8
	b.ne	LBB0_15
	b	LBB0_19
LBB0_14:
	ldr	x8, [x24]
	cmp	x22, x8
	b.eq	LBB0_19
LBB0_15:
	ldr	w1, [x25]
	mov	x0, x19
	bl	_IXGBE_READ_REG
Lloh18:
	adrp	x8, _IXGBE_HICR_SV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IXGBE_HICR_SV@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	tst	x8, x0
	b.eq	LBB0_19
; %bb.16:
Lloh21:
	adrp	x22, _IXGBE_FLEX_MNG@GOTPAGE
Lloh22:
	ldr	x22, [x22, _IXGBE_FLEX_MNG@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, #0
	bl	_IXGBE_READ_REG_ARRAY
	str	x0, [x20]
	mov	x0, x20
	bl	_le32_to_cpus
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_IXGBE_READ_REG_ARRAY
	mov	x8, x20
	str	x0, [x8, #8]!
	mov	x0, x8
	bl	_le32_to_cpus
	ldr	x8, [x20]
	cbz	x8, LBB0_23
; %bb.17:
	add	x9, x8, #8
	cmp	x9, x21
	b.le	LBB0_22
; %bb.18:
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_20
LBB0_19:
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_20:
	mov	x0, x19
	bl	_hw_dbg
Lloh27:
	adrp	x8, _IXGBE_ERR_HOST_INTERFACE_COMMAND@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IXGBE_ERR_HOST_INTERFACE_COMMAND@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
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
LBB0_22:
	cmp	x8, #5
	b.ge	LBB0_24
LBB0_23:
	mov	w0, #0
	b	LBB0_21
LBB0_24:
	add	x8, x8, #3
	lsr	x23, x8, #2
	add	x21, x20, #16
	mov	w20, #1
	mov	x24, x21
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	add	x20, x20, #1
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_IXGBE_READ_REG_ARRAY
	str	x0, [x24], #8
	mov	x0, x21
	bl	_le32_to_cpus
	mov	w0, #0
	mov	x21, x24
	cmp	x23, x20
	b.ne	LBB0_25
	b	LBB0_21
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_HI_MAX_BLOCK_BYTE_LENGTH,8,3 ; @IXGBE_HI_MAX_BLOCK_BYTE_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Buffer length failure.\n"

	.comm	_IXGBE_ERR_HOST_INTERFACE_COMMAND,4,2 ; @IXGBE_ERR_HOST_INTERFACE_COMMAND
	.comm	_IXGBE_HICR,4,2                 ; @IXGBE_HICR
	.comm	_IXGBE_HICR_EN,8,3              ; @IXGBE_HICR_EN
l_.str.1:                               ; @.str.1
	.asciz	"IXGBE_HOST_EN bit disabled.\n"

	.comm	_IXGBE_FLEX_MNG,4,2             ; @IXGBE_FLEX_MNG
	.comm	_IXGBE_HICR_C,8,3               ; @IXGBE_HICR_C
	.comm	_IXGBE_HI_COMMAND_TIMEOUT,8,3   ; @IXGBE_HI_COMMAND_TIMEOUT
	.comm	_IXGBE_HICR_SV,8,3              ; @IXGBE_HICR_SV
l_.str.2:                               ; @.str.2
	.asciz	"Command has failed with no status valid.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Buffer not large enough for reply message.\n"

	.no_dead_strip	_ixgbe_host_interface_command
.subsections_via_symbols
