	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __hwmon_create_attrs
___hwmon_create_attrs:                  ## @__hwmon_create_attrs
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	(%rdx), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rdx, %r13
	xorl	%r14d, %r14d
	movl	$8, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	callq	_hwmon_num_channel_attrs
	addl	%eax, %r14d
	movq	(%r13), %rax
	movq	(%rax,%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.3:
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.7:
	incl	%r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$8, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	movq	%rax, %r12
	movq	(%r13), %rax
	movq	(%rax), %r8
	testq	%r8, %r8
	je	LBB0_12
## %bb.9:
	xorl	%ebx, %ebx
	movl	$8, %r14d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %rax
	leaq	(%r12,%rax,8), %rdx
	movl	8(%r13), %ecx
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_hwmon_genattrs
	testl	%eax, %eax
	js	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	addl	%eax, %ebx
	movq	(%r13), %rax
	movq	(%rax,%r14), %r8
	addq	$8, %r14
	testq	%r8, %r8
	jne	LBB0_10
LBB0_12:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	___hwmon_create_attrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __hwmon_create_attrs
___hwmon_create_attrs:                  ; @__hwmon_create_attrs
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x0
	ldr	x8, [x2]
	ldr	x0, [x8]
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	w22, #0
	mov	w23, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_hwmon_num_channel_attrs
	add	w22, w22, w0
	ldr	x8, [x19]
	ldr	x0, [x8, x23]
	add	x23, x23, #8
	cbnz	x0, LBB0_2
; %bb.3:
	cbz	w22, LBB0_10
; %bb.4:
	add	w1, w22, #1
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x21
	mov	w2, #8
	bl	_devm_kcalloc
	cbz	x0, LBB0_11
; %bb.5:
	mov	x22, x0
	ldr	x8, [x19]
	ldr	x4, [x8]
	cbz	x4, LBB0_9
; %bb.6:
	mov	w23, #0
	mov	w24, #8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, x22, w23, sxtw #3
	ldr	w3, [x19, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_hwmon_genattrs
	tbnz	w0, #31, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w23, w0, w23
	ldr	x8, [x19]
	ldr	x4, [x8, x24]
	add	x24, x24, #8
	cbnz	x4, LBB0_7
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	___hwmon_create_attrs
.subsections_via_symbols
