	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_mng_enable_host_if
_e1000_mng_enable_host_if:              ## @e1000_mng_enable_host_if
	.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
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	_HICR@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_er32
	movq	_E1000_HICR_EN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.4:
	movq	_E1000_MNG_DHCP_COMMAND_TIMEOUT@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jle	LBB0_9
## %bb.5:
	movq	_E1000_HICR_C@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_er32
	testl	%eax, (%r13)
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %edi
	callq	_mdelay
	incq	%rbx
	movq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_9:
	cmpq	%rax, %rbx
	je	LBB0_10
	jmp	LBB0_12
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_11
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_11
LBB0_7:
	movq	(%r12), %rax
	cmpq	%rax, %rbx
	jne	LBB0_12
LBB0_10:
	leaq	L_.str.2(%rip), %rdi
LBB0_11:
	callq	_e_dbg
	movq	_E1000_ERR_HOST_INTERFACE_COMMAND@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ARC subsystem not valid.\n"

	.comm	_E1000_ERR_HOST_INTERFACE_COMMAND,4,2 ## @E1000_ERR_HOST_INTERFACE_COMMAND
	.comm	_HICR,4,2                       ## @HICR
	.comm	_E1000_HICR_EN,4,2              ## @E1000_HICR_EN
L_.str.1:                               ## @.str.1
	.asciz	"E1000_HOST_EN bit disabled.\n"

	.comm	_E1000_MNG_DHCP_COMMAND_TIMEOUT,8,3 ## @E1000_MNG_DHCP_COMMAND_TIMEOUT
	.comm	_E1000_HICR_C,4,2               ## @E1000_HICR_C
L_.str.2:                               ## @.str.2
	.asciz	"Previous command timeout failed.\n"

	.no_dead_strip	_e1000_mng_enable_host_if
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_mng_enable_host_if
_e1000_mng_enable_host_if:              ; @e1000_mng_enable_host_if
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_6
; %bb.1:
Lloh0:
	adrp	x19, _HICR@GOTPAGE
Lloh1:
	ldr	x19, [x19, _HICR@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_er32
Lloh2:
	adrp	x8, _E1000_HICR_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E1000_HICR_EN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.2:
Lloh5:
	adrp	x21, _E1000_MNG_DHCP_COMMAND_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x21, [x21, _E1000_MNG_DHCP_COMMAND_TIMEOUT@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x20, #0
Lloh7:
	adrp	x22, _E1000_HICR_C@GOTPAGE
Lloh8:
	ldr	x22, [x22, _E1000_HICR_C@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	bl	_er32
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	bl	_mdelay
	add	x20, x20, #1
	ldr	x8, [x21]
	cmp	x20, x8
	b.lt	LBB0_4
	b	LBB0_9
LBB0_6:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_7:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_8:
	mov	x20, #0
LBB0_9:
	cmp	x20, x8
	b.ne	LBB0_14
LBB0_10:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_11:
	bl	_e_dbg
Lloh15:
	adrp	x8, _E1000_ERR_HOST_INTERFACE_COMMAND@GOTPAGE
Lloh16:
	ldr	x8, [x8, _E1000_ERR_HOST_INTERFACE_COMMAND@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldr	x8, [x21]
	cmp	x20, x8
	b.eq	LBB0_10
LBB0_14:
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ARC subsystem not valid.\n"

	.comm	_E1000_ERR_HOST_INTERFACE_COMMAND,4,2 ; @E1000_ERR_HOST_INTERFACE_COMMAND
	.comm	_HICR,4,2                       ; @HICR
	.comm	_E1000_HICR_EN,4,2              ; @E1000_HICR_EN
l_.str.1:                               ; @.str.1
	.asciz	"E1000_HOST_EN bit disabled.\n"

	.comm	_E1000_MNG_DHCP_COMMAND_TIMEOUT,8,3 ; @E1000_MNG_DHCP_COMMAND_TIMEOUT
	.comm	_E1000_HICR_C,4,2               ; @E1000_HICR_C
l_.str.2:                               ; @.str.2
	.asciz	"Previous command timeout failed.\n"

	.no_dead_strip	_e1000_mng_enable_host_if
.subsections_via_symbols
