	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elsa_led_handler
_elsa_led_handler:                      ## @elsa_led_handler
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_ELSA_PCMCIA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.1:
	movq	_ELSA_PCMCIA_IPAC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.2:
	movq	%rdi, %rbx
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_del_timer
	movl	8(%rbx), %eax
	movq	_ELSA_ASSIGN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_ELSA_STAT_LED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	12(%rbx), %esi
	orl	%ecx, %esi
	jmp	LBB0_6
LBB0_4:
	movq	_ELSA_BAD_PWR@GOTPCREL(%rip), %rdx
	movq	_ELSA_STAT_LED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, (%rdx)
	je	LBB0_9
## %bb.5:
	movl	%ecx, %esi
	notl	%esi
	andl	12(%rbx), %esi
LBB0_6:
	xorl	%r15d, %r15d
	testl	$61440, %eax                    ## imm = 0xF000
	je	LBB0_10
LBB0_7:
	movq	_ELSA_LINE_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%edx, %esi
LBB0_8:
	movl	%esi, 12(%rbx)
	jmp	LBB0_12
LBB0_9:
	movl	12(%rbx), %esi
	xorl	%ecx, %esi
	movl	$250, %r15d
	testl	$61440, %eax                    ## imm = 0xF000
	jne	LBB0_7
LBB0_10:
	movq	_ELSA_LINE_LED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	$3840, %eax                     ## imm = 0xF00
	je	LBB0_20
## %bb.11:
	xorl	%edx, %esi
	movl	%esi, 12(%rbx)
	movl	$500, %r15d                     ## imm = 0x1F4
LBB0_12:
	movq	(%rbx), %rax
	movq	_ELSA_QS1000PCI@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rax
	je	LBB0_16
## %bb.13:
	movq	_ELSA_QS3000PCI@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rax
	je	LBB0_16
## %bb.14:
	movl	24(%rbx), %edi
	callq	_byteout
	testl	%r15d, %r15d
	je	LBB0_19
LBB0_15:
	movq	%r14, %rdi
	callq	_init_timer
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	imull	(%rcx), %r15d
	movslq	%r15d, %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	addq	(%rax), %rcx
	movq	%rcx, (%r14)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_add_timer                      ## TAILCALL
LBB0_16:
	movq	_ELSA_IPAC_LINE_LED@GOTPCREL(%rip), %rax
	movl	$255, %edi
	movl	(%rax), %eax
	xorl	%edi, %eax
	testl	%esi, %edx
	cmovel	%edi, %eax
	andl	%esi, %ecx
	je	LBB0_18
## %bb.17:
	movq	_ELSA_IPAC_STAT_LED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_18:
	xorl	%eax, %ecx
	movl	28(%rbx), %esi
	movl	32(%rbx), %edi
	movq	_IPAC_ATX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_writereg
	testl	%r15d, %r15d
	jne	LBB0_15
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	%edx, %eax
	notl	%eax
	andl	%eax, %esi
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ELSA_PCMCIA,8,3                ## @ELSA_PCMCIA
	.comm	_ELSA_PCMCIA_IPAC,8,3           ## @ELSA_PCMCIA_IPAC
	.comm	_ELSA_ASSIGN,4,2                ## @ELSA_ASSIGN
	.comm	_ELSA_STAT_LED,4,2              ## @ELSA_STAT_LED
	.comm	_ELSA_BAD_PWR,4,2               ## @ELSA_BAD_PWR
	.comm	_ELSA_LINE_LED,4,2              ## @ELSA_LINE_LED
	.comm	_ELSA_QS1000PCI,8,3             ## @ELSA_QS1000PCI
	.comm	_ELSA_QS3000PCI,8,3             ## @ELSA_QS3000PCI
	.comm	_ELSA_IPAC_LINE_LED,4,2         ## @ELSA_IPAC_LINE_LED
	.comm	_ELSA_IPAC_STAT_LED,4,2         ## @ELSA_IPAC_STAT_LED
	.comm	_IPAC_ATX,4,2                   ## @IPAC_ATX
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_elsa_led_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elsa_led_handler
_elsa_led_handler:                      ; @elsa_led_handler
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ELSA_PCMCIA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ELSA_PCMCIA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _ELSA_PCMCIA_IPAC@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ELSA_PCMCIA_IPAC@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_14
; %bb.1:
	mov	x20, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_del_timer
	ldr	w9, [x20, #8]
Lloh6:
	adrp	x8, _ELSA_ASSIGN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ELSA_ASSIGN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_3
; %bb.2:
	mov	w21, #0
Lloh9:
	adrp	x8, _ELSA_STAT_LED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ELSA_STAT_LED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w10, [x20, #12]
	orr	w11, w10, w8
	tst	w9, #0xf000
	b.ne	LBB0_5
	b	LBB0_8
LBB0_3:
Lloh12:
	adrp	x8, _ELSA_BAD_PWR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ELSA_BAD_PWR@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x8]
Lloh15:
	adrp	x8, _ELSA_STAT_LED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ELSA_STAT_LED@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.4:
	mov	w21, #0
	ldr	w10, [x20, #12]
	bic	w11, w10, w8
	tst	w9, #0xf000
	b.eq	LBB0_8
LBB0_5:
Lloh18:
	adrp	x9, _ELSA_LINE_LED@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ELSA_LINE_LED@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x9]
	orr	w1, w11, w10
LBB0_6:
	str	w1, [x20, #12]
	b	LBB0_10
LBB0_7:
	ldr	w10, [x20, #12]
	eor	w11, w10, w8
	mov	w21, #250
	tst	w9, #0xf000
	b.ne	LBB0_5
LBB0_8:
Lloh21:
	adrp	x10, _ELSA_LINE_LED@GOTPAGE
Lloh22:
	ldr	x10, [x10, _ELSA_LINE_LED@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	tst	w9, #0xf00
	b.eq	LBB0_15
; %bb.9:
	eor	w1, w11, w10
	str	w1, [x20, #12]
	mov	w21, #500
LBB0_10:
	ldr	x9, [x20]
Lloh24:
	adrp	x11, _ELSA_QS1000PCI@GOTPAGE
Lloh25:
	ldr	x11, [x11, _ELSA_QS1000PCI@GOTPAGEOFF]
Lloh26:
	ldr	x11, [x11]
Lloh27:
	adrp	x12, _ELSA_QS3000PCI@GOTPAGE
Lloh28:
	ldr	x12, [x12, _ELSA_QS3000PCI@GOTPAGEOFF]
Lloh29:
	ldr	x12, [x12]
	cmp	x9, x11
	ccmp	x9, x12, #4, ne
	b.ne	LBB0_13
; %bb.11:
Lloh30:
	adrp	x9, _ELSA_IPAC_LINE_LED@GOTPAGE
Lloh31:
	ldr	x9, [x9, _ELSA_IPAC_LINE_LED@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	eor	w9, w9, #0xff
	tst	w10, w1
	mov	w10, #255
	csel	w9, w10, w9, eq
Lloh33:
	adrp	x10, _ELSA_IPAC_STAT_LED@GOTPAGE
Lloh34:
	ldr	x10, [x10, _ELSA_IPAC_STAT_LED@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	tst	w8, w1
	csel	w8, wzr, w10, eq
	eor	w3, w8, w9
	ldp	w1, w0, [x20, #28]
Lloh36:
	adrp	x8, _IPAC_ATX@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IPAC_ATX@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	bl	_writereg
	cbz	w21, LBB0_14
LBB0_12:
	mov	x0, x19
	bl	_init_timer
Lloh39:
	adrp	x8, _jiffies@GOTPAGE
Lloh40:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
Lloh42:
	adrp	x9, _HZ@GOTPAGE
Lloh43:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	mul	w9, w9, w21
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	add	x8, x8, w9, sxtw
	str	x8, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_add_timer
LBB0_13:
	ldr	w0, [x20, #24]
	bl	_byteout
	cbnz	w21, LBB0_12
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_15:
	bic	w1, w11, w10
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_ELSA_PCMCIA,8,3                ; @ELSA_PCMCIA
	.comm	_ELSA_PCMCIA_IPAC,8,3           ; @ELSA_PCMCIA_IPAC
	.comm	_ELSA_ASSIGN,4,2                ; @ELSA_ASSIGN
	.comm	_ELSA_STAT_LED,4,2              ; @ELSA_STAT_LED
	.comm	_ELSA_BAD_PWR,4,2               ; @ELSA_BAD_PWR
	.comm	_ELSA_LINE_LED,4,2              ; @ELSA_LINE_LED
	.comm	_ELSA_QS1000PCI,8,3             ; @ELSA_QS1000PCI
	.comm	_ELSA_QS3000PCI,8,3             ; @ELSA_QS3000PCI
	.comm	_ELSA_IPAC_LINE_LED,4,2         ; @ELSA_IPAC_LINE_LED
	.comm	_ELSA_IPAC_STAT_LED,4,2         ; @ELSA_IPAC_STAT_LED
	.comm	_IPAC_ATX,4,2                   ; @IPAC_ATX
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_elsa_led_handler
.subsections_via_symbols
