	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scmi_sensor_description_get
_scmi_sensor_description_get:           ## @scmi_sensor_description_get
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_SENSOR_DESCRIPTION_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SCMI_PROTOCOL_SENSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %r9
	movl	$4, %ecx
	xorl	%r8d, %r8d
	callq	_scmi_xfer_get_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	movq	-48(%rbp), %rax
	movq	8(%rax), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_put_unaligned_le32
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_scmi_do_xfer
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
LBB0_14:
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_scmi_xfer_put
LBB0_15:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%r12d, %r12d
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	12(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, %r13
	movl	8(%rbx), %edi
	callq	_le16_to_cpu
	leaq	(%r12,%r13), %rcx
	movq	(%r15), %rdx
	cmpq	%rdx, %rcx
	jg	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	testq	%r13, %r13
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	shlq	$5, -80(%rbp)                   ## 8-byte Folded Spill
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	%r14, %rdi
	callq	_SUPPORTS_ASYNC_READ
	movl	%eax, 12(%r15,%r12,2)
	movq	%r14, %rdi
	callq	_NUM_TRIP_POINTS
	movl	%eax, 8(%r15,%r12,2)
	movl	4(%r15,%r12,2), %edi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movl	(%rax,%r12), %esi
	movq	_SCMI_MAX_STR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strlcpy
	addq	$16, %r12
	decq	%r13
	movq	-104(%rbp), %r15                ## 8-byte Reload
	je	LBB0_9
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rax
	movl	12(%rax,%r12), %edi
	callq	_le32_to_cpu
	movq	%rax, %r14
	movq	(%rbx), %rax
	movl	8(%rax,%r12), %edi
	callq	_le32_to_cpu
	movq	%rbx, %rcx
	movq	%rax, %rbx
	movq	8(%r15), %r15
	addq	-80(%rbp), %r15                 ## 8-byte Folded Reload
	movq	(%rcx), %rax
	movl	4(%rax,%r12), %edi
	callq	_le32_to_cpu
	movq	%rax, 24(%r15,%r12,2)
	movq	%rbx, %rdi
	callq	_SENSOR_TYPE
	movl	%eax, 16(%r15,%r12,2)
	movq	%rbx, %rdi
	callq	_SENSOR_SCALE
	movl	%eax, (%r15,%r12,2)
	movq	_SENSOR_SCALE_SIGN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	_SENSOR_SCALE_EXTEND@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r15,%r12,2)
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, -96(%rbp)                   ## 8-byte Folded Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax
	movl	(%rax), %esi
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_put_unaligned_le32
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_scmi_do_xfer
	testl	%eax, %eax
	je	LBB0_3
## %bb.13:
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_16:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_10:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_SENSOR_DESCRIPTION_GET,4,2     ## @SENSOR_DESCRIPTION_GET
	.comm	_SCMI_PROTOCOL_SENSOR,4,2       ## @SCMI_PROTOCOL_SENSOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No. of sensors can't exceed %d"

	.comm	_SENSOR_SCALE_SIGN,4,2          ## @SENSOR_SCALE_SIGN
	.comm	_SENSOR_SCALE_EXTEND,4,2        ## @SENSOR_SCALE_EXTEND
	.comm	_SCMI_MAX_STR_SIZE,4,2          ## @SCMI_MAX_STR_SIZE
	.no_dead_strip	_scmi_sensor_description_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scmi_sensor_description_get
_scmi_sensor_description_get:           ; @scmi_sensor_description_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _SENSOR_DESCRIPTION_GET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SENSOR_DESCRIPTION_GET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SCMI_PROTOCOL_SENSOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCMI_PROTOCOL_SENSOR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x5, sp, #40
	mov	w3, #4
	mov	w4, #0
	bl	_scmi_xfer_get_init
	mov	x22, x0
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	x8, [sp, #40]
	ldr	x26, [x8, #8]
	ldr	w1, [x8]
	mov	x0, #0
	bl	_put_unaligned_le32
	ldr	x1, [sp, #40]
	mov	x0, x21
	bl	_scmi_do_xfer
	mov	x22, x0
	cbz	w0, LBB0_4
LBB0_2:
	ldr	x1, [sp, #40]
	mov	x0, x21
	bl	_scmi_xfer_put
LBB0_3:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_4:
	mov	x19, #0
Lloh6:
	adrp	x28, _SCMI_MAX_STR_SIZE@GOTPAGE
Lloh7:
	ldr	x28, [x28, _SCMI_MAX_STR_SIZE@GOTPAGEOFF]
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	w0, [x26, #12]
	bl	_le16_to_cpu
	mov	x22, x0
	ldr	w0, [x26, #8]
	bl	_le16_to_cpu
	ldr	x2, [x20]
	add	x8, x22, x19
	cmp	x8, x2
	b.gt	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	stp	x8, x0, [sp, #16]               ; 16-byte Folded Spill
	str	x22, [sp, #32]                  ; 8-byte Folded Spill
	cmp	x22, #1
	b.lt	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, #0
	lsl	x19, x19, #5
	ldr	x22, [sp, #32]                  ; 8-byte Folded Reload
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x24
	bl	_SUPPORTS_ASYNC_READ
	str	w0, [x21, #12]
	mov	x0, x24
	bl	_NUM_TRIP_POINTS
	str	w0, [x21, #8]
	ldr	w0, [x21, #4]
	ldr	x8, [x26]
	ldr	w1, [x8, x23]
	ldr	w2, [x28]
	bl	_strlcpy
	add	x23, x23, #16
	add	x19, x19, #32
	subs	x22, x22, #1
	b.eq	LBB0_11
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x26]
	add	x8, x8, x23
	ldr	w0, [x8, #12]
	bl	_le32_to_cpu
	mov	x24, x0
	ldr	x8, [x26]
	add	x8, x8, x23
	ldr	w0, [x8, #8]
	bl	_le32_to_cpu
	mov	x25, x0
	ldr	x27, [x20, #8]
	ldr	x8, [x26]
	add	x8, x8, x23
	ldr	w0, [x8, #4]
	bl	_le32_to_cpu
	add	x21, x27, x19
	str	x0, [x21, #24]
	mov	x0, x25
	bl	_SENSOR_TYPE
	str	w0, [x21, #16]
	mov	x0, x25
	bl	_SENSOR_SCALE
	str	w0, [x21]
Lloh8:
	adrp	x8, _SENSOR_SCALE_SIGN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SENSOR_SCALE_SIGN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
Lloh11:
	adrp	x8, _SENSOR_SCALE_EXTEND@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SENSOR_SCALE_EXTEND@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w8, w8, w0
	str	w8, [x27, x19]
	b	LBB0_8
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	cmp	x8, #0
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ccmp	x8, #0, #4, ne
	b.eq	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #40]
	ldr	w1, [x8]
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	mov	x0, x19
	bl	_put_unaligned_le32
	ldr	x1, [sp, #40]
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x21
	bl	_scmi_do_xfer
	cbz	w0, LBB0_5
; %bb.13:
	mov	x22, x0
	b	LBB0_2
LBB0_14:
	ldr	w0, [x21]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	w22, #0
	b	LBB0_2
LBB0_15:
	mov	w22, #0
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SENSOR_DESCRIPTION_GET,4,2     ; @SENSOR_DESCRIPTION_GET
	.comm	_SCMI_PROTOCOL_SENSOR,4,2       ; @SCMI_PROTOCOL_SENSOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No. of sensors can't exceed %d"

	.comm	_SENSOR_SCALE_SIGN,4,2          ; @SENSOR_SCALE_SIGN
	.comm	_SENSOR_SCALE_EXTEND,4,2        ; @SENSOR_SCALE_EXTEND
	.comm	_SCMI_MAX_STR_SIZE,4,2          ; @SCMI_MAX_STR_SIZE
	.no_dead_strip	_scmi_sensor_description_get
.subsections_via_symbols
