	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipath_setup_ht_setextled
_ipath_setup_ht_setextled:              ## @ipath_setup_ht_setextled
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ipath_diag_inuse@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	movq	_IPATH_LED_PHYS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_3
## %bb.4:
	movq	_INFINIPATH_IBCS_LT_STATE_DISABLED@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	movq	_INFINIPATH_IBCS_LT_STATE_LINKUP@GOTPCREL(%rip), %rcx
LBB0_5:
	movq	_IPATH_LED_LOG@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	jne	LBB0_6
## %bb.7:
	movq	_INFINIPATH_IBCS_L_STATE_DOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_INFINIPATH_IBCS_L_STATE_ACTIVE@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rcx), %r12
	movq	(%rax), %r15
LBB0_9:
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_spin_lock_irqsave
	cmpl	$8, 4(%rbx)
	movq	8(%rbx), %rax
	jne	LBB0_11
## %bb.10:
	movq	_INFINIPATH_EXTC_LEDGBLOK_ON@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	%rsi, %rcx
	notq	%rcx
	andq	%rcx, %rax
	movq	_INFINIPATH_EXTC_LEDGBLERR_OFF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%rax, %rcx
	orq	%rdx, %rcx
	movq	_INFINIPATH_IBCS_LT_STATE_LINKUP@GOTPCREL(%rip), %rdi
	notq	%rdx
	andq	%rax, %rdx
	cmpq	(%rdi), %r12
	cmovneq	%rcx, %rdx
	movq	_INFINIPATH_IBCS_L_STATE_ACTIVE@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	(%rax), %r15
	cmoveq	%rsi, %rcx
	jmp	LBB0_12
LBB0_11:
	movq	_INFINIPATH_EXTC_LED1PRIPORT_ON@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_INFINIPATH_EXTC_LED2PRIPORT_ON@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	%rsi, %rdx
	orq	%rcx, %rdx
	notq	%rdx
	andq	%rdx, %rax
	movq	_INFINIPATH_IBCS_LT_STATE_LINKUP@GOTPCREL(%rip), %rdi
	xorl	%edx, %edx
	cmpq	(%rdi), %r12
	cmovneq	%rdx, %rcx
	orq	%rax, %rcx
	movq	_INFINIPATH_IBCS_L_STATE_ACTIVE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	cmoveq	%rsi, %rdx
LBB0_12:
	orq	%rcx, %rdx
	movq	%rdx, 8(%rbx)
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ipath_write_kreg
	movq	%r14, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ipath_diag_inuse,8,3           ## @ipath_diag_inuse
	.comm	_IPATH_LED_PHYS,4,2             ## @IPATH_LED_PHYS
	.comm	_INFINIPATH_IBCS_LT_STATE_LINKUP,8,3 ## @INFINIPATH_IBCS_LT_STATE_LINKUP
	.comm	_INFINIPATH_IBCS_LT_STATE_DISABLED,8,3 ## @INFINIPATH_IBCS_LT_STATE_DISABLED
	.comm	_IPATH_LED_LOG,4,2              ## @IPATH_LED_LOG
	.comm	_INFINIPATH_IBCS_L_STATE_ACTIVE,8,3 ## @INFINIPATH_IBCS_L_STATE_ACTIVE
	.comm	_INFINIPATH_IBCS_L_STATE_DOWN,8,3 ## @INFINIPATH_IBCS_L_STATE_DOWN
	.comm	_INFINIPATH_EXTC_LEDGBLOK_ON,8,3 ## @INFINIPATH_EXTC_LEDGBLOK_ON
	.comm	_INFINIPATH_EXTC_LEDGBLERR_OFF,8,3 ## @INFINIPATH_EXTC_LEDGBLERR_OFF
	.comm	_INFINIPATH_EXTC_LED1PRIPORT_ON,8,3 ## @INFINIPATH_EXTC_LED1PRIPORT_ON
	.comm	_INFINIPATH_EXTC_LED2PRIPORT_ON,8,3 ## @INFINIPATH_EXTC_LED2PRIPORT_ON
	.no_dead_strip	_ipath_setup_ht_setextled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipath_setup_ht_setextled
_ipath_setup_ht_setextled:              ; @ipath_setup_ht_setextled
	.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
Lloh0:
	adrp	x8, _ipath_diag_inuse@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ipath_diag_inuse@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	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
LBB0_2:
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x0]
Lloh3:
	adrp	x24, _INFINIPATH_IBCS_LT_STATE_LINKUP@GOTPAGE
Lloh4:
	ldr	x24, [x24, _INFINIPATH_IBCS_LT_STATE_LINKUP@GOTPAGEOFF]
Lloh5:
	adrp	x23, _INFINIPATH_IBCS_L_STATE_ACTIVE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _INFINIPATH_IBCS_L_STATE_ACTIVE@GOTPAGEOFF]
	cbz	w8, LBB0_4
; %bb.3:
Lloh7:
	adrp	x9, _IPATH_LED_PHYS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IPATH_LED_PHYS@GOTPAGEOFF]
Lloh9:
	adrp	x10, _INFINIPATH_IBCS_LT_STATE_DISABLED@GOTPAGE
Lloh10:
	ldr	x10, [x10, _INFINIPATH_IBCS_LT_STATE_DISABLED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x9, x10, x24, eq
	ldr	x22, [x9]
Lloh12:
	adrp	x9, _IPATH_LED_LOG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IPATH_LED_LOG@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _INFINIPATH_IBCS_L_STATE_DOWN@GOTPAGE
Lloh16:
	ldr	x10, [x10, _INFINIPATH_IBCS_L_STATE_DOWN@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x23, eq
	ldr	x21, [x8]
LBB0_4:
	add	x20, x19, #16
	mov	x0, x20
	mov	x1, #0
	bl	_spin_lock_irqsave
	ldr	w9, [x19, #4]
	ldr	x8, [x19, #8]
	cmp	w9, #8
	b.ne	LBB0_6
; %bb.5:
Lloh17:
	adrp	x9, _INFINIPATH_EXTC_LEDGBLOK_ON@GOTPAGE
Lloh18:
	ldr	x9, [x9, _INFINIPATH_EXTC_LEDGBLOK_ON@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	bic	x8, x8, x9
Lloh20:
	adrp	x10, _INFINIPATH_EXTC_LEDGBLERR_OFF@GOTPAGE
Lloh21:
	ldr	x10, [x10, _INFINIPATH_EXTC_LEDGBLERR_OFF@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
	orr	x11, x8, x10
	ldr	x12, [x24]
	bic	x8, x8, x10
	cmp	x22, x12
	csel	x8, x8, x11, eq
	ldr	x10, [x23]
	cmp	x21, x10
	csel	x9, x9, xzr, eq
	b	LBB0_7
LBB0_6:
Lloh23:
	adrp	x9, _INFINIPATH_EXTC_LED1PRIPORT_ON@GOTPAGE
Lloh24:
	ldr	x9, [x9, _INFINIPATH_EXTC_LED1PRIPORT_ON@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
Lloh26:
	adrp	x10, _INFINIPATH_EXTC_LED2PRIPORT_ON@GOTPAGE
Lloh27:
	ldr	x10, [x10, _INFINIPATH_EXTC_LED2PRIPORT_ON@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x10]
	orr	x11, x10, x9
	bic	x8, x8, x11
	ldr	x11, [x24]
	cmp	x22, x11
	csel	x9, x9, xzr, eq
	orr	x9, x9, x8
	ldr	x8, [x23]
	cmp	x21, x8
	csel	x8, x10, xzr, eq
LBB0_7:
	orr	x2, x9, x8
	str	x2, [x19, #8]
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ipath_write_kreg
	mov	x0, x20
	mov	x1, #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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ipath_diag_inuse,8,3           ; @ipath_diag_inuse
	.comm	_IPATH_LED_PHYS,4,2             ; @IPATH_LED_PHYS
	.comm	_INFINIPATH_IBCS_LT_STATE_LINKUP,8,3 ; @INFINIPATH_IBCS_LT_STATE_LINKUP
	.comm	_INFINIPATH_IBCS_LT_STATE_DISABLED,8,3 ; @INFINIPATH_IBCS_LT_STATE_DISABLED
	.comm	_IPATH_LED_LOG,4,2              ; @IPATH_LED_LOG
	.comm	_INFINIPATH_IBCS_L_STATE_ACTIVE,8,3 ; @INFINIPATH_IBCS_L_STATE_ACTIVE
	.comm	_INFINIPATH_IBCS_L_STATE_DOWN,8,3 ; @INFINIPATH_IBCS_L_STATE_DOWN
	.comm	_INFINIPATH_EXTC_LEDGBLOK_ON,8,3 ; @INFINIPATH_EXTC_LEDGBLOK_ON
	.comm	_INFINIPATH_EXTC_LEDGBLERR_OFF,8,3 ; @INFINIPATH_EXTC_LEDGBLERR_OFF
	.comm	_INFINIPATH_EXTC_LED1PRIPORT_ON,8,3 ; @INFINIPATH_EXTC_LED1PRIPORT_ON
	.comm	_INFINIPATH_EXTC_LED2PRIPORT_ON,8,3 ; @INFINIPATH_EXTC_LED2PRIPORT_ON
	.no_dead_strip	_ipath_setup_ht_setextled
.subsections_via_symbols
