	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_id_led_init
_e1000_id_led_init:                     ## @e1000_id_led_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	_e1000_82540@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movq	_LEDCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movl	%eax, 8(%rbx)
	movl	%eax, 12(%rbx)
	movl	%eax, 16(%rbx)
	movq	_EEPROM_ID_LED_SETTINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_e1000_read_eeprom
	testq	%rax, %rax
	js	LBB0_2
LBB0_3:
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	movq	_E1000_ERR_EEPROM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_LEDCTL_MODE_LED_ON,4,2   ## @E1000_LEDCTL_MODE_LED_ON
	.comm	_E1000_LEDCTL_MODE_LED_OFF,4,2  ## @E1000_LEDCTL_MODE_LED_OFF
	.comm	_e1000_82540,8,3                ## @e1000_82540
	.comm	_E1000_SUCCESS,4,2              ## @E1000_SUCCESS
	.comm	_LEDCTL,4,2                     ## @LEDCTL
	.comm	_EEPROM_ID_LED_SETTINGS,4,2     ## @EEPROM_ID_LED_SETTINGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EEPROM Read Error\n"

	.comm	_E1000_ERR_EEPROM,4,2           ## @E1000_ERR_EEPROM
	.comm	_ID_LED_RESERVED_0000,4,2       ## @ID_LED_RESERVED_0000
	.comm	_ID_LED_RESERVED_FFFF,4,2       ## @ID_LED_RESERVED_FFFF
	.comm	_ID_LED_DEFAULT,4,2             ## @ID_LED_DEFAULT
	.no_dead_strip	_e1000_id_led_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_id_led_init
_e1000_id_led_init:                     ; @e1000_id_led_init
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _e1000_82540@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_82540@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _LEDCTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LEDCTL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_er32
	stp	w0, w0, [x19, #8]
	str	w0, [x19, #16]
Lloh6:
	adrp	x8, _EEPROM_ID_LED_SETTINGS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EEPROM_ID_LED_SETTINGS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #1
	bl	_e1000_read_eeprom
	tbnz	x0, #63, LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
Lloh14:
	adrp	x8, _E1000_ERR_EEPROM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E1000_ERR_EEPROM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_LEDCTL_MODE_LED_ON,4,2   ; @E1000_LEDCTL_MODE_LED_ON
	.comm	_E1000_LEDCTL_MODE_LED_OFF,4,2  ; @E1000_LEDCTL_MODE_LED_OFF
	.comm	_e1000_82540,8,3                ; @e1000_82540
	.comm	_E1000_SUCCESS,4,2              ; @E1000_SUCCESS
	.comm	_LEDCTL,4,2                     ; @LEDCTL
	.comm	_EEPROM_ID_LED_SETTINGS,4,2     ; @EEPROM_ID_LED_SETTINGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EEPROM Read Error\n"

	.comm	_E1000_ERR_EEPROM,4,2           ; @E1000_ERR_EEPROM
	.comm	_ID_LED_RESERVED_0000,4,2       ; @ID_LED_RESERVED_0000
	.comm	_ID_LED_RESERVED_FFFF,4,2       ; @ID_LED_RESERVED_FFFF
	.comm	_ID_LED_DEFAULT,4,2             ; @ID_LED_DEFAULT
	.no_dead_strip	_e1000_id_led_init
.subsections_via_symbols
