	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmbus_add_sensor_attrs_one
_pmbus_add_sensor_attrs_one:            ## @pmbus_add_sensor_attrs_one
	.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
	movl	%r9d, %ebx
	movl	%r8d, %r14d
	movq	%rcx, %r15
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %r13
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	24(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movl	24(%rbp), %eax
	leal	1(%rbx), %r8d
	testl	%eax, %eax
	cmovel	%eax, %r8d
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_pmbus_add_label
	testl	%eax, %eax
	jne	LBB0_13
LBB0_2:
	movl	16(%r13), %eax
	movl	20(%r13), %r9d
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	pushq	$1
	pushq	$1
	pushq	$1
	pushq	%rax
	callq	_pmbus_add_sensor
	addq	$32, %rsp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	cmpq	$0, 8(%r13)
	je	LBB0_12
## %bb.5:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	pushq	%r13
	pushq	%rax
	callq	_pmbus_add_limit_attrs
	addq	$16, %rsp
	testl	%eax, %eax
	js	LBB0_13
## %bb.6:
	je	LBB0_7
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	cmpl	$0, (%r13)
	je	LBB0_12
## %bb.8:
	testl	$65280, -44(%rbp)               ## 4-byte Folded Reload
                                        ## imm = 0xFF00
	je	LBB0_10
## %bb.9:
	cmpq	$0, (%r12)
	je	LBB0_12
LBB0_10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_pmbus_check_status_register
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_PB_STATUS_BASE@GOTPCREL(%rip), %rax
	movslq	%ebx, %rbx
	addq	(%rax), %rbx
	movl	(%r13), %eax
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%rbx
	callq	_pmbus_add_boolean
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"input"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"alarm"

	.comm	_PB_STATUS_BASE,8,3             ## @PB_STATUS_BASE
	.no_dead_strip	_pmbus_add_sensor_attrs_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmbus_add_sensor_attrs_one
_pmbus_add_sensor_attrs_one:            ; @pmbus_add_sensor_attrs_one
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x6
	mov	x23, x5
	mov	x19, x4
	mov	x20, x3
	mov	x25, x2
	mov	x22, x1
	mov	x24, x0
	ldrb	w26, [x6, #1]
	ldr	x3, [x6, #24]
	cbz	x3, LBB0_2
; %bb.1:
	cmp	w7, #0
	csinc	w4, wzr, w23, eq
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_pmbus_add_label
	cbnz	w0, LBB0_8
LBB0_2:
	ldp	w6, w5, [x21, #16]
	mov	x8, #4294967297
	str	x8, [sp]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	mov	x1, x20
	mov	x3, x19
	mov	x4, x23
	mov	w7, #1
	bl	_pmbus_add_sensor
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x6, x0
	mov	x0, x24
	mov	x1, x22
	mov	x2, x25
	mov	x3, x20
	mov	x4, x19
	mov	x5, x23
	mov	x7, x21
	bl	_pmbus_add_limit_attrs
	tbnz	w0, #31, LBB0_8
; %bb.5:
	cbz	w0, LBB0_9
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	ldr	w8, [x21]
	cbz	w8, LBB0_6
; %bb.10:
	lsl	w8, w26, #8
	cbz	w8, LBB0_12
; %bb.11:
	ldr	x8, [x22]
	cbz	x8, LBB0_6
LBB0_12:
	mov	x0, x24
	mov	x1, x23
	bl	_pmbus_check_status_register
	cbz	x0, LBB0_6
; %bb.13:
Lloh5:
	adrp	x8, _PB_STATUS_BASE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PB_STATUS_BASE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x6, x8, w23, sxtw
	ldr	w7, [x21]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x1, x20
	mov	x3, x19
	mov	x4, #0
	mov	x5, #0
	bl	_pmbus_add_boolean
	cbnz	w0, LBB0_8
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"input"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"alarm"

	.comm	_PB_STATUS_BASE,8,3             ; @PB_STATUS_BASE
	.no_dead_strip	_pmbus_add_sensor_attrs_one
.subsections_via_symbols
