	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __set_power_wells
___set_power_wells:                     ## @__set_power_wells
	.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	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	%edx, (%rdi)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movl	$8, %esi
	callq	_kcalloc
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	testl	%r14d, %r14d
	jle	LBB0_9
## %bb.2:
	movl	%r14d, %ecx
	leaq	-4(,%rcx,4), %rsi
	xorl	%ebx, %ebx
	movq	_DISP_PW_ID_NONE@GOTPCREL(%rip), %rdx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r15,%rbx), %rcx
	movl	(%r15,%rbx), %r13d
	movq	%rcx, (%rax,%rbx,2)
	cmpl	(%rdx), %r13d
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	cmpl	$32, %r13d
	setae	%dil
	movq	%r15, %r14
	movq	%rsi, %r15
	callq	_WARN_ON
	movl	%r13d, %edi
	callq	_BIT_ULL
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	andl	%r12d, %eax
	movl	%eax, %edi
	callq	_WARN_ON
	movl	%r13d, %edi
	callq	_BIT_ULL
	movq	%r15, %rsi
	movq	%r14, %r15
	movq	_DISP_PW_ID_NONE@GOTPCREL(%rip), %rdx
	orl	%eax, %r12d
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rbx, %rsi
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	addq	$4, %rbx
	jmp	LBB0_3
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DISP_PW_ID_NONE,4,2            ## @DISP_PW_ID_NONE
	.no_dead_strip	___set_power_wells
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __set_power_wells
___set_power_wells:                     ; @__set_power_wells
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x19, x1
	mov	x20, x0
	str	w2, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_8
; %bb.1:
	cmp	w21, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x22, #0
	mov	w23, #0
	mov	w8, w21
	lsl	x8, x8, #3
	sub	x24, x8, #8
Lloh3:
	adrp	x25, _DISP_PW_ID_NONE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _DISP_PW_ID_NONE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x19]
	str	x19, [x0, x22]
	ldr	w8, [x25]
	cmp	w21, w8
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w21, #31
	cset	w0, hi
	bl	_WARN_ON
	mov	x0, x21
	bl	_BIT_ULL
	and	w0, w0, w23
	bl	_WARN_ON
	mov	x0, x21
	bl	_BIT_ULL
	orr	w23, w0, w23
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x24, x22
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x20, #8]
	add	x19, x19, #4
	add	x22, x22, #8
	b	LBB0_3
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DISP_PW_ID_NONE,4,2            ; @DISP_PW_ID_NONE
	.no_dead_strip	___set_power_wells
.subsections_via_symbols
