	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function diva_led_handler
_diva_led_handler:                      ## @diva_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	%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), %rax
	movq	_DIVA_IPAC_ISA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.1:
	movq	_DIVA_IPAC_PCI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.2:
	movq	_DIVA_IPACX_PCI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.3:
	movq	%rdi, %rbx
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_del_timer
	movl	8(%rbx), %r15d
	movq	_DIVA_ASSIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_DIVA_ISA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_4
## %bb.5:
	movq	_DIVA_ISA_LED_A@GOTPCREL(%rip), %rdx
	jmp	LBB0_6
LBB0_4:
	movq	_DIVA_PCI_LED_A@GOTPCREL(%rip), %rdx
LBB0_6:
	movl	(%rdx), %edx
	movl	24(%rbx), %esi
	movl	%esi, %edi
	orl	%edx, %edi
	xorl	%edx, %esi
	xorl	%edx, %edx
	testl	%r15d, %r12d
	cmovnel	%edi, %esi
	movl	$250, %r13d
	cmovnel	%edx, %r13d
	testl	$61440, %r15d                   ## imm = 0xF000
	je	LBB0_11
## %bb.7:
	cmpq	%rcx, %rax
	jne	LBB0_8
## %bb.9:
	movq	_DIVA_ISA_LED_B@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	jmp	LBB0_18
LBB0_11:
	cmpq	%rcx, %rax
	jne	LBB0_12
## %bb.13:
	movq	_DIVA_ISA_LED_B@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_8:
	movq	_DIVA_PCI_LED_B@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	jmp	LBB0_18
LBB0_12:
	movq	_DIVA_PCI_LED_B@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	testl	$3840, %r15d                    ## imm = 0xF00
	je	LBB0_17
## %bb.15:
	xorl	%eax, %esi
	movl	%esi, 24(%rbx)
	movl	28(%rbx), %edi
	callq	_byteout
	movl	$500, %r13d                     ## imm = 0x1F4
	jmp	LBB0_16
LBB0_17:
	notl	%eax
	andl	%eax, %esi
LBB0_18:
	movl	%esi, 24(%rbx)
	movl	28(%rbx), %edi
	callq	_byteout
	testl	%r15d, %r12d
	je	LBB0_16
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%r14, %rdi
	callq	_init_timer
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	imull	(%rcx), %r13d
	movslq	%r13d, %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	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_add_timer                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DIVA_IPAC_ISA,8,3              ## @DIVA_IPAC_ISA
	.comm	_DIVA_IPAC_PCI,8,3              ## @DIVA_IPAC_PCI
	.comm	_DIVA_IPACX_PCI,8,3             ## @DIVA_IPACX_PCI
	.comm	_DIVA_ASSIGN,4,2                ## @DIVA_ASSIGN
	.comm	_DIVA_ISA,8,3                   ## @DIVA_ISA
	.comm	_DIVA_ISA_LED_A,4,2             ## @DIVA_ISA_LED_A
	.comm	_DIVA_PCI_LED_A,4,2             ## @DIVA_PCI_LED_A
	.comm	_DIVA_ISA_LED_B,4,2             ## @DIVA_ISA_LED_B
	.comm	_DIVA_PCI_LED_B,4,2             ## @DIVA_PCI_LED_B
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_diva_led_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function diva_led_handler
_diva_led_handler:                      ; @diva_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, _DIVA_IPAC_ISA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DIVA_IPAC_ISA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _DIVA_IPAC_PCI@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DIVA_IPAC_PCI@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _DIVA_IPACX_PCI@GOTPAGE
Lloh7:
	ldr	x11, [x11, _DIVA_IPACX_PCI@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_del_timer
	ldr	w8, [x20, #8]
Lloh9:
	adrp	x9, _DIVA_ASSIGN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DIVA_ASSIGN@GOTPAGEOFF]
Lloh11:
	adrp	x10, _DIVA_ISA@GOTPAGE
Lloh12:
	ldr	x10, [x10, _DIVA_ISA@GOTPAGEOFF]
Lloh13:
	ldr	w12, [x9]
Lloh14:
	ldr	x9, [x10]
Lloh15:
	adrp	x10, _DIVA_ISA_LED_A@GOTPAGE
Lloh16:
	ldr	x10, [x10, _DIVA_ISA_LED_A@GOTPAGEOFF]
Lloh17:
	adrp	x13, _DIVA_PCI_LED_A@GOTPAGE
Lloh18:
	ldr	x13, [x13, _DIVA_PCI_LED_A@GOTPAGEOFF]
	ldr	x11, [x20]
	cmp	x9, x11
	csel	x10, x10, x13, eq
	ands	w22, w12, w8
	ldr	w10, [x10]
	ldr	w12, [x20, #24]
	orr	w13, w12, w10
	eor	w10, w12, w10
	csel	w10, w10, w13, eq
	mov	w12, #250
	csel	w21, w12, wzr, eq
	tst	w8, #0xf000
	b.eq	LBB0_5
; %bb.2:
Lloh19:
	adrp	x8, _DIVA_ISA_LED_B@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DIVA_ISA_LED_B@GOTPAGEOFF]
Lloh21:
	adrp	x12, _DIVA_PCI_LED_B@GOTPAGE
Lloh22:
	ldr	x12, [x12, _DIVA_PCI_LED_B@GOTPAGEOFF]
	cmp	x9, x11
	csel	x8, x8, x12, eq
	ldr	w8, [x8]
	orr	w1, w10, w8
LBB0_3:
	str	w1, [x20, #24]
	ldr	w0, [x20, #28]
	bl	_byteout
	cbz	w22, LBB0_7
LBB0_4:
	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_5:
Lloh23:
	adrp	x12, _DIVA_ISA_LED_B@GOTPAGE
Lloh24:
	ldr	x12, [x12, _DIVA_ISA_LED_B@GOTPAGEOFF]
Lloh25:
	adrp	x13, _DIVA_PCI_LED_B@GOTPAGE
Lloh26:
	ldr	x13, [x13, _DIVA_PCI_LED_B@GOTPAGEOFF]
	cmp	x9, x11
	csel	x9, x12, x13, eq
	ldr	w9, [x9]
	and	w8, w8, #0xf00
	cbz	w8, LBB0_8
; %bb.6:
	eor	w1, w10, w9
	str	w1, [x20, #24]
	ldr	w0, [x20, #28]
	bl	_byteout
	mov	w21, #500
LBB0_7:
	mov	x0, x19
	bl	_init_timer
Lloh27:
	adrp	x8, _jiffies@GOTPAGE
Lloh28:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
Lloh30:
	adrp	x9, _HZ@GOTPAGE
Lloh31:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh32:
	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_8:
	bic	w1, w10, w9
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_DIVA_IPAC_ISA,8,3              ; @DIVA_IPAC_ISA
	.comm	_DIVA_IPAC_PCI,8,3              ; @DIVA_IPAC_PCI
	.comm	_DIVA_IPACX_PCI,8,3             ; @DIVA_IPACX_PCI
	.comm	_DIVA_ASSIGN,4,2                ; @DIVA_ASSIGN
	.comm	_DIVA_ISA,8,3                   ; @DIVA_ISA
	.comm	_DIVA_ISA_LED_A,4,2             ; @DIVA_ISA_LED_A
	.comm	_DIVA_PCI_LED_A,4,2             ; @DIVA_PCI_LED_A
	.comm	_DIVA_ISA_LED_B,4,2             ; @DIVA_ISA_LED_B
	.comm	_DIVA_PCI_LED_B,4,2             ; @DIVA_PCI_LED_B
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_diva_led_handler
.subsections_via_symbols
