	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmbus_add_limit_attrs
_pmbus_add_limit_attrs:                 ## @pmbus_add_limit_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	24(%rbp), %rbx
	movl	(%rbx), %r13d
	testl	%r13d, %r13d
	jle	LBB0_1
## %bb.2:
	movl	%r9d, %r15d
	movq	40(%rbx), %r12
	movslq	%r9d, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addq	$36, %r12
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rbx
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$40, %r12
	decl	%r13d
	je	LBB0_18
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%r12), %edx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_pmbus_check_word_register
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movb	$1, %al
	cmpq	$0, 24(%rbx)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, -12(%r12)
	setne	%al
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-4(%r12), %r9d
	movl	(%r12), %edx
	movq	%rbx, %r14
	movl	32(%rbx), %ebx
	movzbl	%al, %eax
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r8d
	pushq	$1
	pushq	$0
	pushq	%rax
	pushq	%rbx
	callq	_pmbus_add_sensor
	addq	$32, %rsp
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-36(%r12), %r10
	testq	%r10, %r10
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	%r14, %rbx
	movl	4(%r14), %edx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	testl	%edx, (%rcx,%rsi,4)
	je	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 16(%rbx)
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, -28(%r12)
	movq	%rax, %r8
	movq	16(%rbp), %rcx
	cmoveq	%rcx, %r8
	cmovneq	%rcx, %rax
	jmp	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r8d, %r8d
	xorl	%eax, %eax
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-20(%r12), %edx
	movq	8(%r14), %rbx
	addq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	%rax, %r9
	pushq	%r10
	pushq	%rbx
	movq	%r14, %rbx
	callq	_pmbus_add_boolean
	addq	$16, %rsp
	movl	$1, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	je	LBB0_10
## %bb.16:
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_17
LBB0_1:
	xorl	%eax, %eax
LBB0_17:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_18
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
LBB0_18:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_pmbus_add_limit_attrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmbus_add_limit_attrs
_pmbus_add_limit_attrs:                 ; @pmbus_add_limit_attrs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	stp	x6, x2, [sp, #16]               ; 16-byte Folded Spill
	ldr	w28, [x7]
	cmp	w28, #1
	b.lt	LBB0_15
; %bb.1:
	mov	x19, x7
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x25, x1
	mov	x26, x0
	mov	w27, #0
	ldr	x8, [x7, #40]
	sxtw	x20, w21
	add	x24, x8, #36
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #40
	subs	w28, w28, #1
	b.eq	LBB0_18
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w2, [x24, #-4]
	mov	x0, x26
	mov	x1, x21
	bl	_pmbus_check_word_register
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w7, #1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldur	x8, [x24, #-12]
	cmp	x8, #0
	cset	w7, ne
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldp	w5, w2, [x24, #-4]
	ldr	w6, [x19, #32]
	mov	x8, #4294967296
	str	x8, [sp]
	mov	x0, x25
	mov	x1, x23
	mov	x3, x22
	mov	x4, x21
	bl	_pmbus_add_sensor
	cbz	x0, LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x7, [x24, #-36]
	cbz	x7, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	w8, [x8, x20, lsl #2]
	ldr	w9, [x19, #4]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldur	x8, [x24, #-28]
	cmp	x8, #0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	csel	x4, x8, x0, eq
	csel	x5, x0, x8, eq
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x4, #0
	mov	x5, #0
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	w2, [x24, #-20]
	ldr	x8, [x19, #8]
	add	x6, x8, x20
	mov	x0, x25
	mov	x1, x23
	mov	x3, x22
	bl	_pmbus_add_boolean
	cbnz	w0, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w27, #1
	b	LBB0_2
LBB0_15:
	mov	w27, #0
	b	LBB0_18
LBB0_16:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w27, w8
	b	LBB0_18
LBB0_17:
	mov	x27, x0
LBB0_18:
	mov	x0, x27
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_pmbus_add_limit_attrs
.subsections_via_symbols
