	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda1997x_read_activity_status_regs
_tda1997x_read_activity_status_regs:    ## @tda1997x_read_activity_status_regs
	.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, %r14
	movq	_REG_CLK_A_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_io_read
	movl	%eax, %r15d
	movq	_MASK_CLK_STABLE@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	andl	%r15d, %eax
	movq	_MASK_CLK_ACTIVE@GOTPCREL(%rip), %r13
	andl	(%r13), %r15d
	movl	%eax, %ecx
	sarl	$2, %ecx
	testl	%r15d, %r15d
	cmovnel	%ecx, %r15d
	testl	%eax, %eax
	cmovel	%eax, %r15d
	movq	_REG_CLK_B_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_io_read
	movl	%eax, %ebx
	movl	(%r12), %eax
	andl	%ebx, %eax
	andl	(%r13), %ebx
	movl	%eax, %ecx
	sarl	%ecx
	testl	%ebx, %ebx
	cmovnel	%ecx, %ebx
	testl	%eax, %eax
	cmovel	%eax, %ebx
	orl	%r15d, %ebx
	movq	_REG_SUS_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_io_read
	movq	_MASK_SUS_STATUS@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_LAST_STATE_REACHED@GOTPCREL(%rip), %rdx
	movq	_MASK_SUS_STATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %esi
	orl	%ebx, %esi
	notl	%ecx
	andl	%ebx, %ecx
	cmpl	(%rdx), %eax
	cmovel	%esi, %ecx
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_CLK_A_STATUS,4,2           ## @REG_CLK_A_STATUS
	.comm	_MASK_CLK_STABLE,4,2            ## @MASK_CLK_STABLE
	.comm	_MASK_CLK_ACTIVE,4,2            ## @MASK_CLK_ACTIVE
	.comm	_REG_CLK_B_STATUS,4,2           ## @REG_CLK_B_STATUS
	.comm	_REG_SUS_STATUS,4,2             ## @REG_SUS_STATUS
	.comm	_MASK_SUS_STATUS,4,2            ## @MASK_SUS_STATUS
	.comm	_LAST_STATE_REACHED,4,2         ## @LAST_STATE_REACHED
	.comm	_MASK_SUS_STATE,4,2             ## @MASK_SUS_STATE
	.no_dead_strip	_tda1997x_read_activity_status_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda1997x_read_activity_status_regs
_tda1997x_read_activity_status_regs:    ; @tda1997x_read_activity_status_regs
	.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
Lloh0:
	adrp	x8, _REG_CLK_A_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_CLK_A_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_io_read
Lloh3:
	adrp	x20, _MASK_CLK_STABLE@GOTPAGE
Lloh4:
	ldr	x20, [x20, _MASK_CLK_STABLE@GOTPAGEOFF]
	ldr	w8, [x20]
	and	w8, w8, w0
Lloh5:
	adrp	x21, _MASK_CLK_ACTIVE@GOTPAGE
Lloh6:
	ldr	x21, [x21, _MASK_CLK_ACTIVE@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w0
	ccmp	w8, #0, #4, ne
	asr	w8, w8, #2
	csel	w22, wzr, w8, eq
Lloh7:
	adrp	x8, _REG_CLK_B_STATUS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _REG_CLK_B_STATUS@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_io_read
	ldr	w8, [x20]
	and	w8, w8, w0
	ldr	w9, [x21]
	tst	w9, w0
	ccmp	w8, #0, #4, ne
	asr	w8, w8, #1
	csel	w8, wzr, w8, eq
	orr	w20, w8, w22
Lloh10:
	adrp	x8, _REG_SUS_STATUS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _REG_SUS_STATUS@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_io_read
Lloh13:
	adrp	x8, _MASK_SUS_STATUS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MASK_SUS_STATUS@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh16:
	adrp	x9, _LAST_STATE_REACHED@GOTPAGE
Lloh17:
	ldr	x9, [x9, _LAST_STATE_REACHED@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	adrp	x10, _MASK_SUS_STATE@GOTPAGE
Lloh20:
	ldr	x10, [x10, _MASK_SUS_STATE@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	orr	w11, w10, w20
	bic	w10, w20, w10
	cmp	w8, w9
	csel	w0, w11, w10, eq
	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	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_CLK_A_STATUS,4,2           ; @REG_CLK_A_STATUS
	.comm	_MASK_CLK_STABLE,4,2            ; @MASK_CLK_STABLE
	.comm	_MASK_CLK_ACTIVE,4,2            ; @MASK_CLK_ACTIVE
	.comm	_REG_CLK_B_STATUS,4,2           ; @REG_CLK_B_STATUS
	.comm	_REG_SUS_STATUS,4,2             ; @REG_SUS_STATUS
	.comm	_MASK_SUS_STATUS,4,2            ; @MASK_SUS_STATUS
	.comm	_LAST_STATE_REACHED,4,2         ; @LAST_STATE_REACHED
	.comm	_MASK_SUS_STATE,4,2             ; @MASK_SUS_STATE
	.no_dead_strip	_tda1997x_read_activity_status_regs
.subsections_via_symbols
