	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ti_sci_cmd_clk_is_off
_ti_sci_cmd_clk_is_off:                 ## @ti_sci_cmd_clk_is_off
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	movq	%rcx, %rax
	orq	%r8, %rax
	je	LBB0_1
## %bb.2:
	movq	%r8, %r14
	movq	%rcx, %rbx
	leaq	-24(%rbp), %rcx
	leaq	-32(%rbp), %r8
	callq	_ti_sci_cmd_get_clock_state
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	movq	-24(%rbp), %rax
	movq	_MSG_CLOCK_SW_STATE_UNREQ@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	%edx, (%rbx)
LBB0_5:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movq	-32(%rbp), %rcx
	movq	_MSG_CLOCK_HW_STATE_NOT_READY@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rcx
	sete	%sil
	movl	%esi, (%r14)
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MSG_CLOCK_SW_STATE_UNREQ,8,3   ## @MSG_CLOCK_SW_STATE_UNREQ
	.comm	_MSG_CLOCK_HW_STATE_NOT_READY,8,3 ## @MSG_CLOCK_HW_STATE_NOT_READY
	.no_dead_strip	_ti_sci_cmd_clk_is_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ti_sci_cmd_clk_is_off
_ti_sci_cmd_clk_is_off:                 ; @ti_sci_cmd_clk_is_off
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	stp	xzr, xzr, [sp]
	orr	x8, x3, x4
	cbz	x8, LBB0_6
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x3, sp
	add	x4, sp, #8
	bl	_ti_sci_cmd_get_clock_state
	cbnz	w0, LBB0_7
; %bb.2:
	cbz	x20, LBB0_4
; %bb.3:
	ldr	x8, [sp]
Lloh0:
	adrp	x9, _MSG_CLOCK_SW_STATE_UNREQ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MSG_CLOCK_SW_STATE_UNREQ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	str	w8, [x20]
LBB0_4:
	mov	w0, #0
	cbz	x19, LBB0_7
; %bb.5:
	ldr	x8, [sp, #8]
Lloh3:
	adrp	x9, _MSG_CLOCK_HW_STATE_NOT_READY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MSG_CLOCK_HW_STATE_NOT_READY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MSG_CLOCK_SW_STATE_UNREQ,8,3   ; @MSG_CLOCK_SW_STATE_UNREQ
	.comm	_MSG_CLOCK_HW_STATE_NOT_READY,8,3 ; @MSG_CLOCK_HW_STATE_NOT_READY
	.no_dead_strip	_ti_sci_cmd_clk_is_off
.subsections_via_symbols
