	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scmi_hwmon_add_chan_info
_scmi_hwmon_add_chan_info:              ## @scmi_hwmon_add_chan_info
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movq	%rsi, %rax
	movq	%rdi, %r12
	leal	1(%rbx), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rax, %rdi
	movl	$4, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	%r15d, (%r12)
	movq	%rax, 8(%r12)
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.4:
	leal	-1(%rbx), %r8d
	xorl	%edx, %edx
	cmpl	$7, %r8d
	jb	LBB0_14
## %bb.5:
	incq	%r8
	movq	%r8, %rdx
	andq	$-8, %rdx
	movd	%r14d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rdx), %rsi
	movq	%rsi, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %ecx
	andl	$7, %ecx
	cmpq	$56, %rsi
	jae	LBB0_7
## %bb.6:
	xorl	%esi, %esi
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_16
LBB0_3:
	xorl	%ecx, %ecx
	jmp	LBB0_16
LBB0_7:
	andq	$-8, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rax,%rsi,4)
	movdqu	%xmm0, 16(%rax,%rsi,4)
	movdqu	%xmm0, 32(%rax,%rsi,4)
	movdqu	%xmm0, 48(%rax,%rsi,4)
	movdqu	%xmm0, 64(%rax,%rsi,4)
	movdqu	%xmm0, 80(%rax,%rsi,4)
	movdqu	%xmm0, 96(%rax,%rsi,4)
	movdqu	%xmm0, 112(%rax,%rsi,4)
	movdqu	%xmm0, 128(%rax,%rsi,4)
	movdqu	%xmm0, 144(%rax,%rsi,4)
	movdqu	%xmm0, 160(%rax,%rsi,4)
	movdqu	%xmm0, 176(%rax,%rsi,4)
	movdqu	%xmm0, 192(%rax,%rsi,4)
	movdqu	%xmm0, 208(%rax,%rsi,4)
	movdqu	%xmm0, 224(%rax,%rsi,4)
	movdqu	%xmm0, 240(%rax,%rsi,4)
	addq	$64, %rsi
	addq	$-8, %rdi
	jne	LBB0_8
LBB0_9:
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.10:
	leaq	(%rax,%rsi,4), %rsi
	addq	$16, %rsi
	shlq	$5, %rcx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -16(%rsi,%rdi)
	movdqu	%xmm0, (%rsi,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %rcx
	jne	LBB0_11
LBB0_12:
	xorl	%ecx, %ecx
	cmpq	%rdx, %r8
	je	LBB0_16
## %bb.13:
	leaq	(%rax,%rdx,4), %rax
LBB0_14:
	subl	%edx, %ebx
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, (%rax,%rdx,4)
	incq	%rdx
	cmpl	%edx, %ebx
	jne	LBB0_15
LBB0_16:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_scmi_hwmon_add_chan_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scmi_hwmon_add_chan_info
_scmi_hwmon_add_chan_info:              ; @scmi_hwmon_add_chan_info
	.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, x4
	mov	x21, x3
	mov	x20, x2
	mov	x8, x1
	mov	x22, x0
	add	w1, w2, #1
Lloh0:
	adrp	x9, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x9]
	mov	x0, x8
	mov	w2, #4
	bl	_devm_kcalloc
	cbz	x0, LBB0_4
; %bb.1:
	str	w21, [x22]
	str	x0, [x22, #8]
	subs	w8, w20, #1
	b.lt	LBB0_10
; %bb.2:
	cmp	w8, #15
	b.hs	LBB0_5
; %bb.3:
	mov	w9, #0
	mov	x8, x0
	b	LBB0_8
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_5:
	add	x10, x8, #1
	and	x9, x10, #0x1fffffff0
	add	x8, x0, x9, lsl #2
	dup.4s	v0, w19
	add	x11, x0, #32
	mov	x12, x9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x11, #-32]
	stp	q0, q0, [x11], #64
	subs	x12, x12, #16
	b.ne	LBB0_6
; %bb.7:
	cmp	x10, x9
	b.eq	LBB0_10
LBB0_8:
	sub	w9, w20, w9
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	str	w19, [x8], #4
	subs	w9, w9, #1
	b.ne	LBB0_9
LBB0_10:
	mov	w0, #0
LBB0_11:
	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	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_scmi_hwmon_add_chan_info
.subsections_via_symbols
