	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_regulator_linked
_add_regulator_linked:                  ## @add_regulator_linked
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	movq	%rsi, %rax
	movl	%edi, %r9d
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movq	%rdx, 16(%rax)
	movl	%ecx, (%rax)
LBB0_4:
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	orq	%r8, (%rcx)
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	retq
LBB0_6:
	movq	%r8, -32(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -24(%rbp)
	movq	$0, -8(%rbp)
	leaq	-32(%rbp), %rcx
	movq	%rcx, 8(%rax)
LBB0_7:
	movq	_TWL_MODULE_PM_MASTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r9d, %edx
	movq	%rax, %rcx
	movl	$24, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_add_numbered_child
	addq	$48, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TWL_MODULE_PM_MASTER,4,2       ## @TWL_MODULE_PM_MASTER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"twl_reg"

	.no_dead_strip	_add_regulator_linked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_regulator_linked
_add_regulator_linked:                  ; @add_regulator_linked
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_5
; %bb.1:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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_remember_state
	mov	x8, x1
	mov	x9, x0
	cbz	x2, LBB0_3
; %bb.2:
	str	x2, [x8, #16]
	str	w3, [x8]
LBB0_3:
	ldr	x10, [x8, #8]
	cbz	x10, LBB0_6
; %bb.4:
	ldr	x11, [x10]
	orr	x11, x11, x4
	str	x11, [x10]
	b	LBB0_7
LBB0_5:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	mov	x0, #0
	ret
LBB0_6:
	.cfi_restore_state
	stp	x4, xzr, [sp]
	stp	xzr, xzr, [sp, #16]
	mov	x10, sp
	str	x10, [x8, #8]
LBB0_7:
Lloh0:
	adrp	x10, _TWL_MODULE_PM_MASTER@GOTPAGE
Lloh1:
	ldr	x10, [x10, _TWL_MODULE_PM_MASTER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x10]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x9
	mov	x3, x8
	mov	w4, #24
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_add_numbered_child
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TWL_MODULE_PM_MASTER,4,2       ; @TWL_MODULE_PM_MASTER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"twl_reg"

	.no_dead_strip	_add_regulator_linked
.subsections_via_symbols
