	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_setup_led                ## -- Begin function e1000_setup_led
	.p2align	4, 0x90
_e1000_setup_led:                       ## @e1000_setup_led
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_4
## %bb.1:
	movl	$60, %ecx
	btl	%eax, %ecx
	jb	LBB0_9
## %bb.2:
	movq	_IGP01E1000_GMII_FIFO@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	4(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_e1000_read_phy_reg
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movl	(%r14), %esi
	movq	_IGP01E1000_GMII_SPD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	4(%rbx), %edx
	movq	%rbx, %rdi
	callq	_e1000_write_phy_reg
	testl	%eax, %eax
	jne	LBB0_10
LBB0_4:
	movl	16(%rbx), %eax
	movq	_e1000_media_type_fiber@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:
	movq	_LEDCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movl	%eax, 8(%rbx)
	movq	_E1000_LEDCTL_LED0_IVRT@GOTPCREL(%rip), %rcx
	movq	_E1000_LEDCTL_LED0_BLINK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_E1000_LEDCTL_LED0_MODE_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_E1000_LEDCTL_MODE_LED_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_E1000_LEDCTL_LED0_MODE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	orl	%edx, %esi
	jmp	LBB0_8
LBB0_6:
	movq	_e1000_media_type_copper@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.7:
	movl	12(%rbx), %esi
LBB0_8:
	movq	_LEDCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ew32
LBB0_9:
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_SUCCESS,4,2              ## @E1000_SUCCESS
	.comm	_IGP01E1000_GMII_FIFO,4,2       ## @IGP01E1000_GMII_FIFO
	.comm	_IGP01E1000_GMII_SPD,4,2        ## @IGP01E1000_GMII_SPD
	.comm	_e1000_media_type_fiber,4,2     ## @e1000_media_type_fiber
	.comm	_LEDCTL,4,2                     ## @LEDCTL
	.comm	_E1000_LEDCTL_LED0_IVRT,4,2     ## @E1000_LEDCTL_LED0_IVRT
	.comm	_E1000_LEDCTL_LED0_BLINK,4,2    ## @E1000_LEDCTL_LED0_BLINK
	.comm	_E1000_LEDCTL_LED0_MODE_MASK,4,2 ## @E1000_LEDCTL_LED0_MODE_MASK
	.comm	_E1000_LEDCTL_MODE_LED_OFF,4,2  ## @E1000_LEDCTL_MODE_LED_OFF
	.comm	_E1000_LEDCTL_LED0_MODE_SHIFT,4,2 ## @E1000_LEDCTL_LED0_MODE_SHIFT
	.comm	_e1000_media_type_copper,4,2    ## @e1000_media_type_copper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_setup_led                ; -- Begin function e1000_setup_led
	.p2align	2
_e1000_setup_led:                       ; @e1000_setup_led
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #7
	b.hi	LBB0_4
; %bb.1:
	mov	w9, #1
	lsl	w8, w9, w8
	tst	w8, #0x3c
	b.ne	LBB0_9
; %bb.2:
Lloh0:
	adrp	x20, _IGP01E1000_GMII_FIFO@GOTPAGE
Lloh1:
	ldr	x20, [x20, _IGP01E1000_GMII_FIFO@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, x19, #4
	mov	x0, x19
	bl	_e1000_read_phy_reg
	cbnz	w0, LBB0_10
; %bb.3:
	ldr	w1, [x20]
	ldr	w8, [x19, #4]
Lloh2:
	adrp	x9, _IGP01E1000_GMII_SPD@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IGP01E1000_GMII_SPD@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	bic	w2, w8, w9
	mov	x0, x19
	bl	_e1000_write_phy_reg
	cbnz	w0, LBB0_10
LBB0_4:
	ldr	w8, [x19, #16]
Lloh5:
	adrp	x9, _e1000_media_type_fiber@GOTPAGE
Lloh6:
	ldr	x9, [x9, _e1000_media_type_fiber@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x20, _LEDCTL@GOTPAGE
Lloh9:
	ldr	x20, [x20, _LEDCTL@GOTPAGEOFF]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.5:
	ldr	w0, [x20]
	bl	_er32
	str	w0, [x19, #8]
Lloh10:
	adrp	x8, _E1000_LEDCTL_LED0_IVRT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _E1000_LEDCTL_LED0_IVRT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _E1000_LEDCTL_LED0_BLINK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _E1000_LEDCTL_LED0_BLINK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _E1000_LEDCTL_LED0_MODE_MASK@GOTPAGE
Lloh17:
	ldr	x10, [x10, _E1000_LEDCTL_LED0_MODE_MASK@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh18:
	ldr	w9, [x10]
	orr	w8, w8, w9
	bic	w8, w0, w8
Lloh19:
	adrp	x9, _E1000_LEDCTL_MODE_LED_OFF@GOTPAGE
Lloh20:
	ldr	x9, [x9, _E1000_LEDCTL_MODE_LED_OFF@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _E1000_LEDCTL_LED0_MODE_SHIFT@GOTPAGE
Lloh23:
	ldr	x10, [x10, _E1000_LEDCTL_LED0_MODE_SHIFT@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w1, w9, w8
	b	LBB0_8
LBB0_6:
Lloh25:
	adrp	x9, _e1000_media_type_copper@GOTPAGE
Lloh26:
	ldr	x9, [x9, _e1000_media_type_copper@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.7:
	ldr	w1, [x19, #12]
LBB0_8:
	ldr	w0, [x20]
	bl	_ew32
LBB0_9:
Lloh28:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_SUCCESS,4,2              ; @E1000_SUCCESS
	.comm	_IGP01E1000_GMII_FIFO,4,2       ; @IGP01E1000_GMII_FIFO
	.comm	_IGP01E1000_GMII_SPD,4,2        ; @IGP01E1000_GMII_SPD
	.comm	_e1000_media_type_fiber,4,2     ; @e1000_media_type_fiber
	.comm	_LEDCTL,4,2                     ; @LEDCTL
	.comm	_E1000_LEDCTL_LED0_IVRT,4,2     ; @E1000_LEDCTL_LED0_IVRT
	.comm	_E1000_LEDCTL_LED0_BLINK,4,2    ; @E1000_LEDCTL_LED0_BLINK
	.comm	_E1000_LEDCTL_LED0_MODE_MASK,4,2 ; @E1000_LEDCTL_LED0_MODE_MASK
	.comm	_E1000_LEDCTL_MODE_LED_OFF,4,2  ; @E1000_LEDCTL_MODE_LED_OFF
	.comm	_E1000_LEDCTL_LED0_MODE_SHIFT,4,2 ; @E1000_LEDCTL_LED0_MODE_SHIFT
	.comm	_e1000_media_type_copper,4,2    ; @e1000_media_type_copper
.subsections_via_symbols
