	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bluecard_enable_activity_led
_bluecard_enable_activity_led:          ## @bluecard_enable_activity_led
	.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, %r15
	movq	8(%rdi), %rax
	movl	(%rax), %r14d
	movq	_CARD_HAS_PCCARD_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r15), %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_CARD_HAS_ACTIVITY_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	addl	$48, %r14d
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	$40, %eax
	movl	$80, %edi
	cmovel	%eax, %edi
	leal	(%rcx,%rcx), %ebx
	addl	$2, %ebx
	movl	%r14d, %esi
	callq	_outb
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%ebx
	movslq	%eax, %rsi
	addq	(%rcx), %rsi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mod_timer                      ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CARD_HAS_PCCARD_ID,4,2         ## @CARD_HAS_PCCARD_ID
	.comm	_CARD_HAS_ACTIVITY_LED,4,2      ## @CARD_HAS_ACTIVITY_LED
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_bluecard_enable_activity_led
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bluecard_enable_activity_led
_bluecard_enable_activity_led:          ; @bluecard_enable_activity_led
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w21, [x8]
Lloh0:
	adrp	x8, _CARD_HAS_PCCARD_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CARD_HAS_PCCARD_ID@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #4
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _CARD_HAS_ACTIVITY_LED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CARD_HAS_ACTIVITY_LED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	add	w1, w21, #48
	cmp	x0, #0
	mov	w8, #80
	mov	w9, #40
	csel	w0, w9, w8, eq
	mov	w8, #4
	mov	w9, #2
	csel	w20, w9, w8, eq
	bl	_outb
Lloh6:
	adrp	x8, _jiffies@GOTPAGE
Lloh7:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh8:
	adrp	x9, _HZ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	ldr	w9, [x9]
	sdiv	w9, w9, w20
	add	x1, x8, w9, sxtw
	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	_mod_timer
LBB0_2:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CARD_HAS_PCCARD_ID,4,2         ; @CARD_HAS_PCCARD_ID
	.comm	_CARD_HAS_ACTIVITY_LED,4,2      ; @CARD_HAS_ACTIVITY_LED
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_bluecard_enable_activity_led
.subsections_via_symbols
