	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nct6775_create_attr_group
_nct6775_create_attr_group:             ## @nct6775_create_attr_group
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EINVAL@GOTPCREL(%rip), %r15
	testl	%edx, %edx
	jle	LBB0_17
## %bb.1:
	movq	8(%rsi), %rax
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.2:
	movl	%edx, %r13d
	movq	%rdi, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	addl	%r13d, %ebx
	cmpq	$0, 8(%rax,%r14,8)
	leaq	1(%r14), %r14
	jne	LBB0_3
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	movq	_ENOMEM@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	je	LBB0_17
## %bb.5:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$8, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.6:
	movq	%r12, %rbx
	movq	%rax, %r12
	movl	%r13d, %edi
	movl	%r14d, %esi
	movl	$64, %edx
	callq	_array3_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_17
## %bb.7:
	movq	%rax, %rbx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, 8(%rdx)
	movl	16(%rcx), %eax
	movl	%eax, (%rdx)
	testl	%r13d, %r13d
	jle	LBB0_16
## %bb.8:
	movl	%r13d, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r14
	cmpq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	je	LBB0_16
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	8(%rcx), %r15
	movq	(%r15), %rax
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	leaq	8(%rbx), %r13
	movq	%r13, %rdi
	callq	_sysfs_attr_init
	movl	(%rbx), %eax
	movl	%eax, 12(%rbx)
	movq	(%r15), %rax
	movq	24(%rax), %rcx
	addq	%r14, %rcx
	movq	%rcx, 24(%rbx)
	movl	16(%rax), %ecx
	movl	%ecx, 8(%rbx)
	movl	4(%rax), %ecx
	movl	%ecx, 20(%rbx)
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, (%r12)
	addq	$8, %r12
	addq	$64, %rbx
	movq	8(%r15), %rax
	addq	$8, %r15
LBB0_10:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	(%rbx), %edi
	movq	8(%rax), %rdx
	movq	(%rcx), %rcx
	addq	%r14, %rcx
	movl	$4, %esi
	callq	_snprintf
	movq	(%r15), %rax
	cmpq	$0, 48(%rax)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	leaq	32(%rbx), %r13
	movq	%r13, %rdi
	callq	_sysfs_attr_init
	movl	(%rbx), %eax
	movl	%eax, 36(%rbx)
	movq	(%r15), %rax
	movq	40(%rax), %rcx
	addq	%r14, %rcx
	movq	%rcx, 56(%rbx)
	movl	32(%rax), %ecx
	movl	%ecx, 48(%rbx)
	movl	16(%rax), %ecx
	movl	%ecx, 32(%rbx)
	movl	4(%rax), %ecx
	movl	%ecx, 44(%rbx)
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	jmp	LBB0_14
LBB0_17:
	xorl	%edi, %edi
	subl	(%r15), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_16:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_nct6775_create_attr_group
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nct6775_create_attr_group
_nct6775_create_attr_group:             ; @nct6775_create_attr_group
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cmp	w2, #1
	b.lt	LBB0_15
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1, #8]
	ldr	x9, [x8]
	cbz	x9, LBB0_15
; %bb.2:
	mov	x23, x2
	mov	x22, x0
	mov	x24, #0
	add	x8, x8, #8
	mov	w21, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, x24, lsl #3]
	add	w21, w21, w23
	add	x24, x24, #1
	cbnz	x9, LBB0_3
; %bb.4:
Lloh0:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x22
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_16
; %bb.5:
	mov	x20, x0
	ldr	w3, [x25]
	mov	x0, x22
	mov	x1, x21
	mov	w2, #8
	bl	_devm_kcalloc
	cbz	x0, LBB0_16
; %bb.6:
	mov	x21, x0
	mov	x0, x23
	mov	x1, x24
	mov	w2, #64
	bl	_array3_size
	mov	x1, x0
	ldr	w2, [x25]
	mov	x0, x22
	bl	_devm_kzalloc
	cbz	x0, LBB0_16
; %bb.7:
	str	x21, [x20, #8]
	ldr	w8, [x19, #16]
	str	w8, [x20]
	cmp	w23, #1
	b.lt	LBB0_18
; %bb.8:
	mov	x22, x0
	mov	x24, #0
	mov	w25, w23
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x24, x24, #1
	cmp	x24, x25
	b.eq	LBB0_18
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	x26, [x19, #8]
	ldr	x8, [x26]
	cbnz	x8, LBB0_13
	b	LBB0_9
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=2
	add	x23, x22, #8
	mov	x0, x23
	bl	_sysfs_attr_init
	ldr	w9, [x22]
	ldr	x8, [x26]
	ldr	x10, [x8, #24]
	add	x10, x10, x24
	str	x10, [x22, #24]
	ldr	w10, [x8, #16]
	stp	w10, w9, [x22, #8]
	add	x9, x22, #16
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	d0, [x8]
	str	d0, [x9]
	str	x23, [x21], #8
	add	x22, x22, #64
	ldr	x8, [x26, #8]!
	cbz	x8, LBB0_9
LBB0_13:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x22]
	ldr	x2, [x8, #8]
	ldr	x8, [x19]
	add	x3, x8, x24
	mov	w1, #4
	bl	_snprintf
	ldr	x8, [x26]
	ldr	x8, [x8, #48]
	cbz	x8, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	add	x23, x22, #32
	mov	x0, x23
	bl	_sysfs_attr_init
	ldr	w9, [x22]
	ldr	x8, [x26]
	ldr	x10, [x8, #40]
	add	x10, x10, x24
	str	x10, [x22, #56]
	ldr	w10, [x8, #32]
	str	w10, [x22, #48]
	ldr	w10, [x8, #16]
	stp	w10, w9, [x22, #32]
	add	x9, x22, #40
	b	LBB0_12
LBB0_15:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_nct6775_create_attr_group
.subsections_via_symbols
