	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmbus_add_attribute
_pmbus_add_attribute:                   ## @pmbus_add_attribute
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %ecx
	movl	4(%rdi), %r15d
	leal	-1(%r15), %eax
	cmpl	%eax, %ecx
	jge	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_PMBUS_ATTR_ALLOC_SIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
	movq	8(%rbx), %rdi
	leal	(,%r15,8), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_krealloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, 8(%rbx)
	movl	%r15d, 4(%rbx)
	movl	(%rbx), %ecx
LBB0_4:
	leal	1(%rcx), %edx
	movl	%edx, (%rbx)
	movslq	%ecx, %rcx
	movq	%r14, (%rax,%rcx,8)
	movq	8(%rbx), %rax
	movq	$0, 8(%rax,%rcx,8)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PMBUS_ATTR_ALLOC_SIZE,4,2      ## @PMBUS_ATTR_ALLOC_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_pmbus_add_attribute
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmbus_add_attribute
_pmbus_add_attribute:                   ; @pmbus_add_attribute
	.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	x20, x1
	mov	x19, x0
	ldp	w9, w8, [x0]
	sub	w10, w8, #1
	cmp	w9, w10
	b.ge	LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
	b	LBB0_4
LBB0_2:
Lloh0:
	adrp	x9, _PMBUS_ATTR_ALLOC_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PMBUS_ATTR_ALLOC_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w21, w9, w8
	ldr	x0, [x19, #8]
	lsl	w1, w21, #3
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_krealloc
	cbz	x0, LBB0_5
; %bb.3:
	str	x0, [x19, #8]
	str	w21, [x19, #4]
	ldr	w9, [x19]
LBB0_4:
	mov	w8, #0
	sxtw	x10, w9
	add	x10, x10, #1
	str	w10, [x19]
	str	x20, [x0, w9, sxtw #3]
	ldr	x9, [x19, #8]
	str	xzr, [x9, x10, lsl #3]
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_6:
	mov	x0, x8
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PMBUS_ATTR_ALLOC_SIZE,4,2      ; @PMBUS_ATTR_ALLOC_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_pmbus_add_attribute
.subsections_via_symbols
