	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_enable_mng_pass_thru    ## -- Begin function e1000e_enable_mng_pass_thru
	.p2align	4, 0x90
_e1000e_enable_mng_pass_thru:           ## @e1000e_enable_mng_pass_thru
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_MANC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movl	%eax, %ecx
	movq	_E1000_MANC_RCV_TCO_EN@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	testl	%ecx, (%rdx)
	je	LBB0_13
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.2:
	movq	_FWSM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movl	%eax, %ebx
	movq	_FACTPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_FACTPS_MNGCG@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	_E1000_FWSM_MODE_MASK@GOTPCREL(%rip), %rax
	movq	_E1000_FWSM_MODE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_e1000_mng_mode_pt@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	shll	%cl, %edx
	andl	(%rax), %ebx
	movl	$1, %eax
	cmpl	%edx, %ebx
	jne	LBB0_4
	jmp	LBB0_13
LBB0_5:
	movq	(%rbx), %rax
	movq	_e1000_82574@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_7
## %bb.6:
	movq	_e1000_82583@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_7
## %bb.10:
	movq	_E1000_MANC_SMBUS_EN@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.11:
	movq	_E1000_MANC_ASF_EN@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	jne	LBB0_4
## %bb.12:
	movl	$1, %eax
	jmp	LBB0_13
LBB0_7:
	movq	_FACTPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movl	%eax, %r14d
	movq	_NVM_INIT_CONTROL2_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_e1000_read_nvm
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_13
## %bb.8:
	movq	_E1000_FACTPS_MNGCG@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_4
## %bb.9:
	movq	_E1000_NVM_INIT_CTRL2_MNGM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	-20(%rbp), %ecx
	movq	_e1000_mng_mode_pt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$13, %edx
	movl	$1, %eax
	cmpl	%edx, %ecx
	je	LBB0_13
LBB0_4:
	xorl	%eax, %eax
LBB0_13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MANC,4,2                       ## @MANC
	.comm	_E1000_MANC_RCV_TCO_EN,4,2      ## @E1000_MANC_RCV_TCO_EN
	.comm	_FWSM,4,2                       ## @FWSM
	.comm	_FACTPS,4,2                     ## @FACTPS
	.comm	_E1000_FACTPS_MNGCG,4,2         ## @E1000_FACTPS_MNGCG
	.comm	_E1000_FWSM_MODE_MASK,4,2       ## @E1000_FWSM_MODE_MASK
	.comm	_e1000_mng_mode_pt,4,2          ## @e1000_mng_mode_pt
	.comm	_E1000_FWSM_MODE_SHIFT,4,2      ## @E1000_FWSM_MODE_SHIFT
	.comm	_e1000_82574,8,3                ## @e1000_82574
	.comm	_e1000_82583,8,3                ## @e1000_82583
	.comm	_NVM_INIT_CONTROL2_REG,4,2      ## @NVM_INIT_CONTROL2_REG
	.comm	_E1000_NVM_INIT_CTRL2_MNGM,4,2  ## @E1000_NVM_INIT_CTRL2_MNGM
	.comm	_E1000_MANC_SMBUS_EN,4,2        ## @E1000_MANC_SMBUS_EN
	.comm	_E1000_MANC_ASF_EN,4,2          ## @E1000_MANC_ASF_EN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_enable_mng_pass_thru    ; -- Begin function e1000e_enable_mng_pass_thru
	.p2align	2
_e1000e_enable_mng_pass_thru:           ; @e1000e_enable_mng_pass_thru
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _MANC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MANC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_er32
Lloh3:
	adrp	x8, _E1000_MANC_RCV_TCO_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E1000_MANC_RCV_TCO_EN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _FWSM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FWSM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_er32
	mov	x19, x0
Lloh9:
	adrp	x8, _FACTPS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FACTPS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_er32
Lloh12:
	adrp	x8, _E1000_FACTPS_MNGCG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _E1000_FACTPS_MNGCG@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_10
; %bb.3:
Lloh15:
	adrp	x8, _E1000_FWSM_MODE_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _E1000_FWSM_MODE_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	and	w8, w8, w19
Lloh18:
	adrp	x9, _e1000_mng_mode_pt@GOTPAGE
Lloh19:
	ldr	x9, [x9, _e1000_mng_mode_pt@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _E1000_FWSM_MODE_SHIFT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _E1000_FWSM_MODE_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	cmp	w8, w9
	b.ne	LBB0_10
	b	LBB0_12
LBB0_4:
	ldr	x8, [x19]
Lloh24:
	adrp	x9, _e1000_82574@GOTPAGE
Lloh25:
	ldr	x9, [x9, _e1000_82574@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
Lloh27:
	adrp	x10, _e1000_82583@GOTPAGE
Lloh28:
	ldr	x10, [x10, _e1000_82583@GOTPAGEOFF]
Lloh29:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
; %bb.5:
Lloh30:
	adrp	x8, _FACTPS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _FACTPS@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_er32
	mov	x20, x0
Lloh33:
	adrp	x8, _NVM_INIT_CONTROL2_REG@GOTPAGE
Lloh34:
	ldr	x8, [x8, _NVM_INIT_CONTROL2_REG@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #1
	bl	_e1000_read_nvm
	cbnz	x0, LBB0_10
; %bb.6:
Lloh36:
	adrp	x8, _E1000_FACTPS_MNGCG@GOTPAGE
Lloh37:
	ldr	x8, [x8, _E1000_FACTPS_MNGCG@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_10
; %bb.7:
	ldr	w8, [sp, #12]
Lloh39:
	adrp	x9, _E1000_NVM_INIT_CTRL2_MNGM@GOTPAGE
Lloh40:
	ldr	x9, [x9, _E1000_NVM_INIT_CTRL2_MNGM@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh42:
	adrp	x9, _e1000_mng_mode_pt@GOTPAGE
Lloh43:
	ldr	x9, [x9, _e1000_mng_mode_pt@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	cmp	w8, w9, lsl #13
	b.eq	LBB0_12
	b	LBB0_10
LBB0_8:
Lloh45:
	adrp	x8, _E1000_MANC_SMBUS_EN@GOTPAGE
Lloh46:
	ldr	x8, [x8, _E1000_MANC_SMBUS_EN@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.9:
Lloh48:
	adrp	x8, _E1000_MANC_ASF_EN@GOTPAGE
Lloh49:
	ldr	x8, [x8, _E1000_MANC_ASF_EN@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_12
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_12:
	mov	w0, #1
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_MANC,4,2                       ; @MANC
	.comm	_E1000_MANC_RCV_TCO_EN,4,2      ; @E1000_MANC_RCV_TCO_EN
	.comm	_FWSM,4,2                       ; @FWSM
	.comm	_FACTPS,4,2                     ; @FACTPS
	.comm	_E1000_FACTPS_MNGCG,4,2         ; @E1000_FACTPS_MNGCG
	.comm	_E1000_FWSM_MODE_MASK,4,2       ; @E1000_FWSM_MODE_MASK
	.comm	_e1000_mng_mode_pt,4,2          ; @e1000_mng_mode_pt
	.comm	_E1000_FWSM_MODE_SHIFT,4,2      ; @E1000_FWSM_MODE_SHIFT
	.comm	_e1000_82574,8,3                ; @e1000_82574
	.comm	_e1000_82583,8,3                ; @e1000_82583
	.comm	_NVM_INIT_CONTROL2_REG,4,2      ; @NVM_INIT_CONTROL2_REG
	.comm	_E1000_NVM_INIT_CTRL2_MNGM,4,2  ; @E1000_NVM_INIT_CTRL2_MNGM
	.comm	_E1000_MANC_SMBUS_EN,4,2        ; @E1000_MANC_SMBUS_EN
	.comm	_E1000_MANC_ASF_EN,4,2          ; @E1000_MANC_ASF_EN
.subsections_via_symbols
