	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ti_sci_cmd_clk_get_match_freq
_ti_sci_cmd_clk_get_match_freq:         ## @ti_sci_cmd_clk_get_match_freq
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	16(%rbp), %r15
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.15:
	movq	%r12, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	testq	%r12, %r12
	je	LBB0_3
## %bb.2:
	testq	%r15, %r15
	je	LBB0_3
## %bb.4:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_handle_to_ti_sci_info
	movq	%rax, %r13
	movq	8(%rax), %r15
	movq	_TI_SCI_MSG_QUERY_CLOCK_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TI_SCI_FLAG_REQ_ACK_ON_PROCESSED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$40, %ecx
	movl	$8, %r8d
	callq	_ti_sci_get_one_xfer
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_14
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_6:
	movq	%r12, %rcx
	movq	(%r12), %rax
	movl	%ebx, (%rax)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r15, %r12
	cmpl	$255, %edx
	jl	LBB0_8
## %bb.7:
	movl	%edx, 8(%rax)
	movl	$255, %edx
LBB0_8:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%edx, 4(%rax)
	movq	%r15, 32(%rax)
	movq	%r14, 24(%rax)
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, 16(%rax)
	movq	%r13, %rdi
	movq	%rcx, %r14
	movq	%rcx, %rsi
	callq	_ti_sci_do_xfer
	testl	%eax, %eax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_13
LBB0_10:
	movq	(%r14), %rbx
	movq	%rbx, %rdi
	callq	_ti_sci_is_response_ack
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	(%rbx), %rax
	movq	%rax, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_11:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_ti_sci_put_one_xfer
LBB0_14:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TI_SCI_MSG_QUERY_CLOCK_FREQ,4,2 ## @TI_SCI_MSG_QUERY_CLOCK_FREQ
	.comm	_TI_SCI_FLAG_REQ_ACK_ON_PROCESSED,4,2 ## @TI_SCI_FLAG_REQ_ACK_ON_PROCESSED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Message alloc failed(%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Mbox send fail %d\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_ti_sci_cmd_clk_get_match_freq
.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_get_match_freq
_ti_sci_cmd_clk_get_match_freq:         ; @ti_sci_cmd_clk_get_match_freq
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x6
	mov	x22, x5
	mov	x23, x4
	mov	x25, x3
	mov	x26, x2
	mov	x27, x1
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
	cbz	x19, LBB0_6
; %bb.3:
	cbz	x20, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_handle_to_ti_sci_info
	mov	x19, x0
	ldr	x24, [x0, #8]
Lloh0:
	adrp	x8, _TI_SCI_MSG_QUERY_CLOCK_FREQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TI_SCI_MSG_QUERY_CLOCK_FREQ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _TI_SCI_FLAG_REQ_ACK_ON_PROCESSED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TI_SCI_FLAG_REQ_ACK_ON_PROCESSED@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w3, #40
	mov	w4, #8
	bl	_ti_sci_get_one_xfer
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x22, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	mov	x2, x22
	bl	_dev_err
	b	LBB0_15
LBB0_6:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_15
LBB0_7:
	ldr	x8, [x21]
	str	w27, [x8]
	cmp	w26, #255
	b.lt	LBB0_9
; %bb.8:
	str	w26, [x8, #8]
	mov	w26, #255
LBB0_9:
	str	w26, [x8, #4]
	stp	x23, x25, [x8, #24]
	str	x22, [x8, #16]
	mov	x0, x19
	mov	x1, x21
	bl	_ti_sci_do_xfer
	cbz	w0, LBB0_11
; %bb.10:
	mov	x22, x0
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	mov	x2, x22
	bl	_dev_err
	b	LBB0_14
LBB0_11:
	ldr	x23, [x21]
	mov	x0, x23
	bl	_ti_sci_is_response_ack
	cbz	w0, LBB0_13
; %bb.12:
	mov	w22, #0
	ldr	x8, [x23]
	str	x8, [x20]
	b	LBB0_14
LBB0_13:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_14:
	mov	x0, x19
	mov	x1, x21
	bl	_ti_sci_put_one_xfer
LBB0_15:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TI_SCI_MSG_QUERY_CLOCK_FREQ,4,2 ; @TI_SCI_MSG_QUERY_CLOCK_FREQ
	.comm	_TI_SCI_FLAG_REQ_ACK_ON_PROCESSED,4,2 ; @TI_SCI_FLAG_REQ_ACK_ON_PROCESSED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Message alloc failed(%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Mbox send fail %d\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_ti_sci_cmd_clk_get_match_freq
.subsections_via_symbols
