	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_setup_led_generic       ## -- Begin function e1000e_setup_led_generic
	.p2align	4, 0x90
_e1000e_setup_led_generic:              ## @e1000e_setup_led_generic
	.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
	leaq	_e1000e_setup_led_generic(%rip), %rax
	cmpq	%rax, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_E1000_ERR_CONFIG@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	_e1000_media_type_fiber@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_LEDCTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_er32
	movl	%eax, (%r14)
	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
	movq	_E1000_LEDCTL_LED0_MODE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_E1000_LEDCTL_MODE_LED_OFF@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	shll	%cl, %esi
	notl	%edx
	andl	%eax, %edx
	orl	%edx, %esi
	movl	(%rbx), %edi
	callq	_ew32
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_4:
	movq	_e1000_media_type_copper@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_LEDCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %esi
	callq	_ew32
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_ERR_CONFIG,4,2           ## @E1000_ERR_CONFIG
	.comm	_e1000_media_type_fiber,8,3     ## @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,8,3    ## @e1000_media_type_copper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_setup_led_generic       ; -- Begin function e1000e_setup_led_generic
	.p2align	2
_e1000e_setup_led_generic:              ; @e1000e_setup_led_generic
	.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
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _e1000e_setup_led_generic@PAGE
Lloh1:
	add	x9, x9, _e1000e_setup_led_generic@PAGEOFF
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _E1000_ERR_CONFIG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E1000_ERR_CONFIG@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_2:
	mov	x19, x0
	ldr	x8, [x0, #16]
Lloh5:
	adrp	x9, _e1000_media_type_fiber@GOTPAGE
Lloh6:
	ldr	x9, [x9, _e1000_media_type_fiber@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh8:
	adrp	x20, _LEDCTL@GOTPAGE
Lloh9:
	ldr	x20, [x20, _LEDCTL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_er32
	str	w0, [x19]
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]
	orr	w8, w9, w8
Lloh16:
	adrp	x9, _E1000_LEDCTL_LED0_MODE_MASK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _E1000_LEDCTL_LED0_MODE_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	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
	ldr	w0, [x20]
	b	LBB0_6
LBB0_4:
Lloh25:
	adrp	x9, _e1000_media_type_copper@GOTPAGE
Lloh26:
	ldr	x9, [x9, _e1000_media_type_copper@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
Lloh28:
	adrp	x8, _LEDCTL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _LEDCTL@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
LBB0_6:
	bl	_ew32
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_ERR_CONFIG,4,2           ; @E1000_ERR_CONFIG
	.comm	_e1000_media_type_fiber,8,3     ; @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,8,3    ; @e1000_media_type_copper
.subsections_via_symbols
