	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __e1000_read_kmrn_reg
___e1000_read_kmrn_reg:                 ## @__e1000_read_kmrn_reg
	.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
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r14
	testl	%ecx, %ecx
	je	LBB0_1
LBB0_3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_E1000_KMRNCTRLSTA_OFFSET_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movq	_E1000_KMRNCTRLSTA_OFFSET@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_E1000_KMRNCTRLSTA_REN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_KMRNCTRLSTA@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_ew32
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_e1e_flush
	movl	$2, %edi
	callq	_udelay
	movl	(%r14), %edi
	callq	_er32
	cltq
	movq	%rax, (%r15)
	testl	%r12d, %r12d
	jne	LBB0_6
## %bb.4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	*(%rdi)
	jmp	LBB0_5
LBB0_1:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	callq	*%rax
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_3
LBB0_5:
	xorl	%r13d, %r13d
LBB0_6:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_KMRNCTRLSTA_OFFSET_SHIFT,4,2 ## @E1000_KMRNCTRLSTA_OFFSET_SHIFT
	.comm	_E1000_KMRNCTRLSTA_OFFSET,4,2   ## @E1000_KMRNCTRLSTA_OFFSET
	.comm	_E1000_KMRNCTRLSTA_REN,4,2      ## @E1000_KMRNCTRLSTA_REN
	.comm	_KMRNCTRLSTA,4,2                ## @KMRNCTRLSTA
	.no_dead_strip	___e1000_read_kmrn_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __e1000_read_kmrn_reg
___e1000_read_kmrn_reg:                 ; @__e1000_read_kmrn_reg
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	cbz	w3, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _E1000_KMRNCTRLSTA_OFFSET_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E1000_KMRNCTRLSTA_OFFSET_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w22, w8
Lloh3:
	adrp	x9, _E1000_KMRNCTRLSTA_OFFSET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _E1000_KMRNCTRLSTA_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _E1000_KMRNCTRLSTA_REN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _E1000_KMRNCTRLSTA_REN@GOTPAGEOFF]
	and	w8, w8, w9
Lloh8:
	ldr	w9, [x10]
	orr	w1, w8, w9
Lloh9:
	adrp	x22, _KMRNCTRLSTA@GOTPAGE
Lloh10:
	ldr	x22, [x22, _KMRNCTRLSTA@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_ew32
	bl	_e1e_flush
	mov	w0, #2
	bl	_udelay
	ldr	w0, [x22]
	bl	_er32
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [x21]
	cbnz	w20, LBB0_5
; %bb.2:
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
	b	LBB0_5
LBB0_3:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_6
	b	LBB0_1
LBB0_5:
	mov	x0, #0
LBB0_6:
	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
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_KMRNCTRLSTA_OFFSET_SHIFT,4,2 ; @E1000_KMRNCTRLSTA_OFFSET_SHIFT
	.comm	_E1000_KMRNCTRLSTA_OFFSET,4,2   ; @E1000_KMRNCTRLSTA_OFFSET
	.comm	_E1000_KMRNCTRLSTA_REN,4,2      ; @E1000_KMRNCTRLSTA_REN
	.comm	_KMRNCTRLSTA,4,2                ; @KMRNCTRLSTA
	.no_dead_strip	___e1000_read_kmrn_reg
.subsections_via_symbols
