	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_attrs
_setup_attrs:                           ## @setup_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_read_domain_devices
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.1:
	movl	(%r14), %eax
	movq	_POWER_METER_CAN_MEASURE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	_meter_attrs@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_register_attrs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.3:
	movl	(%r14), %eax
LBB0_4:
	movq	_POWER_METER_CAN_CAP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.5:
	xorl	%eax, %eax
	callq	_can_cap_in_hardware
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	cmpq	$0, 8(%r14)
	jne	LBB0_8
## %bb.9:
	movq	_ro_cap_attrs@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	16(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	jmp	LBB0_12
LBB0_8:
	movq	_rw_cap_attrs@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_register_attrs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.11:
	movq	_misc_cap_attrs@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_register_attrs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
LBB0_12:
	movq	_POWER_METER_CAN_TRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_14
## %bb.13:
	movq	_trip_attrs@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_register_attrs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
LBB0_14:
	movq	_misc_attrs@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_register_attrs
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_15
LBB0_16:
	movq	%r14, %rdi
	callq	_remove_attrs
LBB0_17:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_15:
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_POWER_METER_CAN_MEASURE,4,2    ## @POWER_METER_CAN_MEASURE
	.comm	_meter_attrs,4,2                ## @meter_attrs
	.comm	_POWER_METER_CAN_CAP,4,2        ## @POWER_METER_CAN_CAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Ignoring unsafe software power cap!\n"

	.comm	_rw_cap_attrs,4,2               ## @rw_cap_attrs
	.comm	_ro_cap_attrs,4,2               ## @ro_cap_attrs
	.comm	_misc_cap_attrs,4,2             ## @misc_cap_attrs
	.comm	_POWER_METER_CAN_TRIP,4,2       ## @POWER_METER_CAN_TRIP
	.comm	_trip_attrs,4,2                 ## @trip_attrs
	.comm	_misc_attrs,4,2                 ## @misc_attrs
	.no_dead_strip	_setup_attrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_attrs
_setup_attrs:                           ; @setup_attrs
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_read_domain_devices
	mov	x20, x0
	cbnz	w0, LBB0_13
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _POWER_METER_CAN_MEASURE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _POWER_METER_CAN_MEASURE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _meter_attrs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _meter_attrs@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_register_attrs
	mov	x20, x0
	cbnz	w0, LBB0_12
; %bb.3:
	ldr	w8, [x19]
LBB0_4:
Lloh6:
	adrp	x9, _POWER_METER_CAN_CAP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _POWER_METER_CAN_CAP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.5:
	bl	_can_cap_in_hardware
	cbz	w0, LBB0_8
; %bb.6:
Lloh9:
	adrp	x8, _ro_cap_attrs@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ro_cap_attrs@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh11:
	adrp	x10, _rw_cap_attrs@GOTPAGE
Lloh12:
	ldr	x10, [x10, _rw_cap_attrs@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x8, x10, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_register_attrs
	mov	x20, x0
	cbnz	w0, LBB0_12
; %bb.7:
Lloh13:
	adrp	x8, _misc_cap_attrs@GOTPAGE
Lloh14:
	ldr	x8, [x8, _misc_cap_attrs@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_register_attrs
	mov	x20, x0
	cbnz	w0, LBB0_12
	b	LBB0_9
LBB0_8:
	ldr	x0, [x19, #16]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_9:
	ldr	w8, [x19]
Lloh18:
	adrp	x9, _POWER_METER_CAN_TRIP@GOTPAGE
Lloh19:
	ldr	x9, [x9, _POWER_METER_CAN_TRIP@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
Lloh21:
	adrp	x8, _trip_attrs@GOTPAGE
Lloh22:
	ldr	x8, [x8, _trip_attrs@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_register_attrs
	mov	x20, x0
	cbnz	w0, LBB0_12
LBB0_11:
Lloh24:
	adrp	x8, _misc_attrs@GOTPAGE
Lloh25:
	ldr	x8, [x8, _misc_attrs@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_register_attrs
	mov	x20, x0
	cbz	w0, LBB0_13
LBB0_12:
	mov	x0, x19
	bl	_remove_attrs
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_POWER_METER_CAN_MEASURE,4,2    ; @POWER_METER_CAN_MEASURE
	.comm	_meter_attrs,4,2                ; @meter_attrs
	.comm	_POWER_METER_CAN_CAP,4,2        ; @POWER_METER_CAN_CAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Ignoring unsafe software power cap!\n"

	.comm	_rw_cap_attrs,4,2               ; @rw_cap_attrs
	.comm	_ro_cap_attrs,4,2               ; @ro_cap_attrs
	.comm	_misc_cap_attrs,4,2             ; @misc_cap_attrs
	.comm	_POWER_METER_CAN_TRIP,4,2       ; @POWER_METER_CAN_TRIP
	.comm	_trip_attrs,4,2                 ; @trip_attrs
	.comm	_misc_attrs,4,2                 ; @misc_attrs
	.no_dead_strip	_setup_attrs
.subsections_via_symbols
