	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ddb_device_attrs_add
_ddb_device_attrs_add:                  ## @ddb_device_attrs_add
	.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	%rdi, %r15
	movq	_ddb_attrs@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	cmpq	$0, (%rsi)
	je	LBB0_4
## %bb.1:
	movl	$8, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %edi
	callq	_device_create_file
	testq	%rax, %rax
	jne	LBB0_38
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rax
	leaq	(%rax,%rbx), %rsi
	cmpq	$0, (%rax,%rbx)
	leaq	8(%rbx), %rbx
	jne	LBB0_2
LBB0_4:
	movq	8(%r15), %rax
	movq	(%rax), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_8
## %bb.5:
	xorl	%r12d, %r12d
	movq	_ddb_attrs_temp@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %edi
	movq	(%r14), %rsi
	addq	%r12, %rsi
	callq	_device_create_file
	testq	%rax, %rax
	jne	LBB0_38
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movq	8(%r15), %rax
	movq	(%rax), %rcx
	movslq	(%rcx), %rdx
	addq	$8, %r12
	cmpq	%rdx, %rbx
	jl	LBB0_6
LBB0_8:
	cmpl	$0, 4(%rcx)
	jle	LBB0_12
## %bb.9:
	xorl	%r12d, %r12d
	movq	_ddb_attrs_fan@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %edi
	movq	(%r14), %rsi
	addq	%r12, %rsi
	callq	_device_create_file
	testq	%rax, %rax
	jne	LBB0_38
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	movq	8(%r15), %rax
	movq	(%rax), %rcx
	movslq	4(%rcx), %rcx
	addq	$8, %r12
	cmpq	%rcx, %rbx
	jl	LBB0_10
LBB0_12:
	cmpl	$0, (%r15)
	jle	LBB0_21
## %bb.13:
	xorl	%ebx, %ebx
	movq	_ddb_attrs_snr@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	movl	$-1, %r14d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %edi
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	callq	_device_create_file
	testq	%rax, %rax
	jne	LBB0_39
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	4(%r15), %edi
	movq	_ddb_attrs_ctemp@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_device_create_file
	testq	%rax, %rax
	jne	LBB0_39
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	8(%r15), %rax
	movq	(%rax), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	4(%r15), %edi
	movq	_ddb_attrs_led@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	callq	_device_create_file
	testq	%rax, %rax
	jne	LBB0_39
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	cmpq	$2, %r13
	ja	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%r13
	movslq	(%r15), %rax
	addq	$8, %rbx
	cmpq	%rax, %r13
	jl	LBB0_14
LBB0_20:
	movq	8(%r15), %rax
LBB0_21:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_25
## %bb.22:
	cmpq	$0, 8(%rcx)
	je	LBB0_25
## %bb.23:
	movl	4(%r15), %edi
	movq	_ddb_attrs_fanspeed@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_device_create_file
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_39
## %bb.24:
	movq	8(%r15), %rax
LBB0_25:
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_29
## %bb.26:
	cmpq	$0, 8(%rcx)
	je	LBB0_29
## %bb.27:
	movl	4(%r15), %edi
	movq	_ddb_attrs_fanspeed@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$8, %rsi
	callq	_device_create_file
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_39
## %bb.28:
	movq	8(%r15), %rax
LBB0_29:
	movq	16(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_33
## %bb.30:
	cmpq	$0, 8(%rcx)
	je	LBB0_33
## %bb.31:
	movl	4(%r15), %edi
	movq	_ddb_attrs_fanspeed@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$16, %rsi
	callq	_device_create_file
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_39
## %bb.32:
	movq	8(%r15), %rax
LBB0_33:
	movq	24(%rax), %rax
	testq	%rax, %rax
	je	LBB0_36
## %bb.34:
	cmpq	$0, 8(%rax)
	je	LBB0_36
## %bb.35:
	movl	4(%r15), %edi
	movq	_ddb_attrs_fanspeed@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$24, %rsi
	callq	_device_create_file
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_39
LBB0_36:
	xorl	%r14d, %r14d
	jmp	LBB0_39
LBB0_38:
	movl	$-1, %r14d
LBB0_39:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ddb_attrs,8,3                  ## @ddb_attrs
	.comm	_ddb_attrs_temp,8,3             ## @ddb_attrs_temp
	.comm	_ddb_attrs_fan,8,3              ## @ddb_attrs_fan
	.comm	_ddb_attrs_snr,8,3              ## @ddb_attrs_snr
	.comm	_ddb_attrs_ctemp,8,3            ## @ddb_attrs_ctemp
	.comm	_ddb_attrs_led,8,3              ## @ddb_attrs_led
	.comm	_ddb_attrs_fanspeed,8,3         ## @ddb_attrs_fanspeed
	.no_dead_strip	_ddb_device_attrs_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ddb_device_attrs_add
_ddb_device_attrs_add:                  ; @ddb_device_attrs_add
	.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, x0
Lloh0:
	adrp	x20, _ddb_attrs@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ddb_attrs@GOTPAGEOFF]
	ldr	x1, [x20]
	ldr	x8, [x1]
	cbz	x8, LBB0_4
; %bb.1:
	mov	w21, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #4]
	bl	_device_create_file
	cbnz	x0, LBB0_48
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20]
	add	x1, x8, x21
	ldr	x8, [x1]
	add	x21, x21, #8
	cbnz	x8, LBB0_2
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	ldr	w10, [x9]
	cmp	w10, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x20, #0
	mov	x21, #0
Lloh2:
	adrp	x22, _ddb_attrs_temp@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ddb_attrs_temp@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #4]
	ldr	x8, [x22]
	add	x1, x8, x20
	bl	_device_create_file
	cbnz	x0, LBB0_48
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	ldrsw	x10, [x9]
	add	x20, x20, #8
	cmp	x21, x10
	b.lt	LBB0_6
LBB0_8:
	ldr	w9, [x9, #4]
	cmp	w9, #1
	b.lt	LBB0_12
; %bb.9:
	mov	x20, #0
	mov	x21, #0
Lloh4:
	adrp	x22, _ddb_attrs_fan@GOTPAGE
Lloh5:
	ldr	x22, [x22, _ddb_attrs_fan@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #4]
	ldr	x8, [x22]
	add	x1, x8, x20
	bl	_device_create_file
	cbnz	x0, LBB0_48
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x21, x21, #1
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	ldrsw	x9, [x9, #4]
	add	x20, x20, #8
	cmp	x21, x9
	b.lt	LBB0_10
LBB0_12:
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_33
; %bb.13:
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x20, _ddb_attrs_snr@GOTPAGE
Lloh7:
	ldr	x20, [x20, _ddb_attrs_snr@GOTPAGEOFF]
	ldr	x1, [x20]
	bl	_device_create_file
	cbnz	x0, LBB0_48
; %bb.14:
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x21, _ddb_attrs_ctemp@GOTPAGE
Lloh9:
	ldr	x21, [x21, _ddb_attrs_ctemp@GOTPAGEOFF]
	ldr	x1, [x21]
	bl	_device_create_file
	cbnz	x0, LBB0_48
; %bb.15:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_17
; %bb.16:
	ldr	w0, [x19, #4]
Lloh10:
	adrp	x8, _ddb_attrs_led@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ddb_attrs_led@GOTPAGEOFF]
Lloh12:
	ldr	x1, [x8]
	bl	_device_create_file
	cbnz	x0, LBB0_48
LBB0_17:
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_32
; %bb.18:
	ldr	w0, [x19, #4]
	ldr	x8, [x20]
	add	x1, x8, #8
	bl	_device_create_file
	cbnz	x0, LBB0_48
; %bb.19:
	ldr	w0, [x19, #4]
	ldr	x8, [x21]
	add	x1, x8, #8
	bl	_device_create_file
	cbnz	x0, LBB0_48
; %bb.20:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_22
; %bb.21:
	ldr	w0, [x19, #4]
Lloh13:
	adrp	x8, _ddb_attrs_led@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ddb_attrs_led@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	add	x1, x8, #8
	bl	_device_create_file
	cbnz	x0, LBB0_48
LBB0_22:
	ldr	w8, [x19]
	cmp	w8, #3
	b.lt	LBB0_32
; %bb.23:
	ldr	w0, [x19, #4]
	ldr	x8, [x20]
	add	x1, x8, #16
	bl	_device_create_file
	cbnz	x0, LBB0_48
; %bb.24:
	ldr	w0, [x19, #4]
	ldr	x8, [x21]
	add	x1, x8, #16
	bl	_device_create_file
	cbnz	x0, LBB0_48
; %bb.25:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_27
; %bb.26:
	ldr	w0, [x19, #4]
Lloh16:
	adrp	x8, _ddb_attrs_led@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ddb_attrs_led@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	add	x1, x8, #16
	bl	_device_create_file
	cbnz	x0, LBB0_48
LBB0_27:
	ldr	w8, [x19]
	cmp	w8, #4
	b.lt	LBB0_32
; %bb.28:
	ldr	w0, [x19, #4]
	ldr	x8, [x20]
	add	x1, x8, #24
	bl	_device_create_file
	cbnz	x0, LBB0_48
; %bb.29:
	ldr	w0, [x19, #4]
	ldr	x8, [x21]
	add	x1, x8, #24
	bl	_device_create_file
	cbnz	x0, LBB0_48
; %bb.30:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_32
; %bb.31:
	ldr	w0, [x19, #4]
Lloh19:
	adrp	x8, _ddb_attrs_led@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ddb_attrs_led@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	add	x1, x8, #24
	bl	_device_create_file
	cbnz	x0, LBB0_48
LBB0_32:
	ldr	x8, [x19, #8]
LBB0_33:
	ldr	x9, [x8]
	cbz	x9, LBB0_37
; %bb.34:
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_37
; %bb.35:
	ldr	w0, [x19, #4]
Lloh22:
	adrp	x8, _ddb_attrs_fanspeed@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ddb_attrs_fanspeed@GOTPAGEOFF]
Lloh24:
	ldr	x1, [x8]
	bl	_device_create_file
	cbnz	x0, LBB0_48
; %bb.36:
	ldr	x8, [x19, #8]
LBB0_37:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_41
; %bb.38:
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_41
; %bb.39:
	ldr	w0, [x19, #4]
Lloh25:
	adrp	x8, _ddb_attrs_fanspeed@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ddb_attrs_fanspeed@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	add	x1, x8, #8
	bl	_device_create_file
	cbnz	x0, LBB0_48
; %bb.40:
	ldr	x8, [x19, #8]
LBB0_41:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_45
; %bb.42:
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_45
; %bb.43:
	ldr	w0, [x19, #4]
Lloh28:
	adrp	x8, _ddb_attrs_fanspeed@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ddb_attrs_fanspeed@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	add	x1, x8, #16
	bl	_device_create_file
	cbnz	x0, LBB0_48
; %bb.44:
	ldr	x8, [x19, #8]
LBB0_45:
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_50
; %bb.46:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_50
; %bb.47:
	ldr	w0, [x19, #4]
Lloh31:
	adrp	x8, _ddb_attrs_fanspeed@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ddb_attrs_fanspeed@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	add	x1, x8, #24
	bl	_device_create_file
	cbz	x0, LBB0_50
LBB0_48:
	mov	w0, #-1
LBB0_49:
	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
LBB0_50:
	mov	w0, #0
	b	LBB0_49
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_ddb_attrs,8,3                  ; @ddb_attrs
	.comm	_ddb_attrs_temp,8,3             ; @ddb_attrs_temp
	.comm	_ddb_attrs_fan,8,3              ; @ddb_attrs_fan
	.comm	_ddb_attrs_snr,8,3              ; @ddb_attrs_snr
	.comm	_ddb_attrs_ctemp,8,3            ; @ddb_attrs_ctemp
	.comm	_ddb_attrs_led,8,3              ; @ddb_attrs_led
	.comm	_ddb_attrs_fanspeed,8,3         ; @ddb_attrs_fanspeed
	.no_dead_strip	_ddb_device_attrs_add
.subsections_via_symbols
