	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_init_led_link_act_generic ## -- Begin function ixgbe_init_led_link_act_generic
	.p2align	4, 0x90
_ixgbe_init_led_link_act_generic:       ## @ixgbe_init_led_link_act_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	%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
	movq	%rdi, %r14
	movq	_IXGBE_LEDCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_IXGBE_READ_REG
	movl	%eax, %ebx
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_IXGBE_LED_MODE_SHIFT
	movl	%ebx, %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movq	_IXGBE_LED_MODE_MASK_BASE@GOTPCREL(%rip), %r12
	andl	(%r12), %edx
	movq	_IXGBE_LED_LINK_ACTIVE@GOTPCREL(%rip), %r13
	cmpl	(%r13), %edx
	je	LBB0_5
## %bb.1:
	movl	$1, %r15d
	movl	$1, %edi
	callq	_IXGBE_LED_MODE_SHIFT
	movl	%ebx, %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	andl	(%r12), %edx
	cmpl	(%r13), %edx
	je	LBB0_5
## %bb.2:
	movl	$2, %r15d
	movl	$2, %edi
	callq	_IXGBE_LED_MODE_SHIFT
	movl	%ebx, %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	andl	(%r12), %edx
	cmpl	(%r13), %edx
	je	LBB0_5
## %bb.3:
	movl	$3, %r15d
	movl	$3, %edi
	callq	_IXGBE_LED_MODE_SHIFT
	movl	%eax, %ecx
	sarl	%cl, %ebx
	andl	(%r12), %ebx
	cmpl	(%r13), %ebx
	je	LBB0_5
## %bb.4:
	movl	4(%r14), %eax
	xorl	%ecx, %ecx
	cmpl	$129, %eax
	sete	%cl
	movl	$2, %edx
	subl	%ecx, %edx
	xorl	%r15d, %r15d
	cmpl	$128, %eax
	cmovnel	%edx, %r15d
LBB0_5:
	movl	%r15d, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_LEDCTL,4,2               ## @IXGBE_LEDCTL
	.comm	_IXGBE_LED_MODE_MASK_BASE,4,2   ## @IXGBE_LED_MODE_MASK_BASE
	.comm	_IXGBE_LED_LINK_ACTIVE,4,2      ## @IXGBE_LED_LINK_ACTIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_init_led_link_act_generic ; -- Begin function ixgbe_init_led_link_act_generic
	.p2align	2
_ixgbe_init_led_link_act_generic:       ; @ixgbe_init_led_link_act_generic
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _IXGBE_LEDCTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IXGBE_LEDCTL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_IXGBE_READ_REG
	mov	x20, x0
	mov	w0, #0
	bl	_IXGBE_LED_MODE_SHIFT
	mov	w21, #0
	asr	w8, w20, w0
Lloh3:
	adrp	x22, _IXGBE_LED_MODE_MASK_BASE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _IXGBE_LED_MODE_MASK_BASE@GOTPAGEOFF]
	ldr	w9, [x22]
	and	w8, w8, w9
Lloh5:
	adrp	x23, _IXGBE_LED_LINK_ACTIVE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _IXGBE_LED_LINK_ACTIVE@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.1:
	mov	w21, #1
	mov	w0, #1
	bl	_IXGBE_LED_MODE_SHIFT
	asr	w8, w20, w0
	ldr	w9, [x22]
	and	w8, w8, w9
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.2:
	mov	w21, #2
	mov	w0, #2
	bl	_IXGBE_LED_MODE_SHIFT
	asr	w8, w20, w0
	ldr	w9, [x22]
	and	w8, w8, w9
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.3:
	mov	w21, #3
	mov	w0, #3
	bl	_IXGBE_LED_MODE_SHIFT
	asr	w8, w20, w0
	ldr	w9, [x22]
	and	w8, w8, w9
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x19, #4]
	cmp	w8, #129
	mov	w9, #1
	cinc	w9, w9, ne
	cmp	w8, #128
	csel	w21, wzr, w9, eq
LBB0_5:
	str	w21, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_LEDCTL,4,2               ; @IXGBE_LEDCTL
	.comm	_IXGBE_LED_MODE_MASK_BASE,4,2   ; @IXGBE_LED_MODE_MASK_BASE
	.comm	_IXGBE_LED_LINK_ACTIVE,4,2      ; @IXGBE_LED_LINK_ACTIVE
.subsections_via_symbols
