	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_set_led_override           ## -- Begin function qib_set_led_override
	.p2align	4, 0x90
_qib_set_led_override:                  ## @qib_set_led_override
	.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
	movq	24(%rdi), %rax
	movq	_QIB_INITTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	_LED_OVER_FREQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%esi, %edi
	movq	_LED_OVER_FREQ_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrl	%cl, %edi
	testl	%edi, %edi
	je	LBB0_3
## %bb.2:
	movl	%esi, %eax
	andl	$15, %eax
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	shrl	$4, %esi
	andl	$15, %esi
	movl	%esi, 4(%rcx)
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$4, %eax
	cltd
	idivl	%edi
	jmp	LBB0_4
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	$15, %esi
	movq	(%rbx), %rcx
	movl	%esi, (%rcx)
	movl	%esi, 4(%rcx)
LBB0_4:
	movl	%eax, 8(%rbx)
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_atomic_inc_return
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.10:
	leaq	16(%rbx), %r14
	movq	_qib_run_led_override@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incq	%rax
	movq	%rax, 16(%rbx)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_add_timer                      ## TAILCALL
LBB0_5:
	movq	(%rbx), %rax
	cmpl	$0, (%rax)
	jne	LBB0_7
## %bb.6:
	cmpl	$0, 4(%rax)
	je	LBB0_8
LBB0_7:
	addq	$16, %rbx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	movq	%rbx, %rdi
	callq	_mod_timer
LBB0_8:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_atomic_dec                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QIB_INITTED,4,2                ## @QIB_INITTED
	.comm	_HZ,4,2                         ## @HZ
	.comm	_LED_OVER_FREQ_MASK,4,2         ## @LED_OVER_FREQ_MASK
	.comm	_LED_OVER_FREQ_SHIFT,4,2        ## @LED_OVER_FREQ_SHIFT
	.comm	_qib_run_led_override,4,2       ## @qib_run_led_override
	.comm	_jiffies,8,3                    ## @jiffies
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_set_led_override           ; -- Begin function qib_set_led_override
	.p2align	2
_qib_set_led_override:                  ; @qib_set_led_override
	.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, #24]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _QIB_INITTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QIB_INITTED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _LED_OVER_FREQ_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LED_OVER_FREQ_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w1
Lloh6:
	adrp	x9, _LED_OVER_FREQ_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LED_OVER_FREQ_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	cbz	w8, LBB0_4
; %bb.2:
	and	w9, w1, #0xf
	ldr	x10, [x19]
	ubfx	w11, w1, #4, #4
	stp	w9, w11, [x10]
Lloh9:
	adrp	x9, _HZ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	lsl	w9, w9, #4
	sdiv	w8, w9, w8
	b	LBB0_5
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh12:
	adrp	x8, _HZ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w9, w1, #0xf
	ldr	x10, [x19]
	stp	w9, w9, [x10]
LBB0_5:
	str	w8, [x19, #8]
	add	x20, x19, #12
	mov	x0, x20
	bl	_atomic_inc_return
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.6:
	add	x20, x19, #16
Lloh15:
	adrp	x8, _qib_run_led_override@GOTPAGE
Lloh16:
	ldr	x8, [x8, _qib_run_led_override@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_timer_setup
Lloh18:
	adrp	x8, _jiffies@GOTPAGE
Lloh19:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	add	x8, x8, #1
	str	x8, [x19, #16]
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_add_timer
LBB0_7:
	ldr	x8, [x19]
	ldr	w9, [x8]
	cbnz	w9, LBB0_9
; %bb.8:
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_10
LBB0_9:
	add	x0, x19, #16
Lloh21:
	adrp	x8, _jiffies@GOTPAGE
Lloh22:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	add	x1, x8, #1
	bl	_mod_timer
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_atomic_dec
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_QIB_INITTED,4,2                ; @QIB_INITTED
	.comm	_HZ,4,2                         ; @HZ
	.comm	_LED_OVER_FREQ_MASK,4,2         ; @LED_OVER_FREQ_MASK
	.comm	_LED_OVER_FREQ_SHIFT,4,2        ; @LED_OVER_FREQ_SHIFT
	.comm	_qib_run_led_override,4,2       ; @qib_run_led_override
	.comm	_jiffies,8,3                    ; @jiffies
.subsections_via_symbols
