	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pt1_update_power
_pt1_update_power:                      ## @pt1_update_power
	.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	%rdi, %r14
	xorl	%ebx, %ebx
	cmpl	$0, 16(%rdi)
	sete	%bl
	shll	$3, %ebx
	orl	(%rdi), %ebx
	leaq	4(%rdi), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_PT1_NR_ADAPS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_19
## %bb.1:
	movq	8(%r14), %rdx
	cmpl	$1, %r8d
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
LBB0_13:
	testb	$1, %r8b
	je	LBB0_19
## %bb.14:
	movq	(%rdx,%rax,8), %rcx
	movl	(%rcx), %ecx
	cmpl	$129, %ecx
	je	LBB0_17
## %bb.15:
	cmpl	$128, %ecx
	jne	LBB0_18
## %bb.16:
	orl	$6, %ebx
	jmp	LBB0_18
LBB0_3:
	movl	%r8d, %esi
	andl	$-2, %esi
	xorl	%eax, %eax
	leaq	_pt1_update_power.sleep_bits(%rip), %rdi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	orl	$4, %ebx
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	orl	4(%rdi,%rax,4), %ebx
	addq	$2, %rax
	cmpq	%rax, %rsi
	je	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rax,8), %rcx
	movl	(%rcx), %ecx
	cmpl	$128, %ecx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$129, %ecx
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	orl	$4, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	orl	$6, %ebx
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	orl	(%rdi,%rax,4), %ebx
	movq	8(%rdx,%rax,8), %rcx
	movl	(%rcx), %ecx
	cmpl	$129, %ecx
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$128, %ecx
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	orl	$6, %ebx
	jmp	LBB0_12
LBB0_17:
	orl	$4, %ebx
LBB0_18:
	leaq	_pt1_update_power.sleep_bits(%rip), %rcx
	orl	(%rcx,%rax,4), %ebx
LBB0_19:
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%ebx, %edx
	callq	_pt1_write_reg
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @pt1_update_power.sleep_bits
_pt1_update_power.sleep_bits:
	.long	16                              ## 0x10
	.long	192                             ## 0xc0
	.long	32                              ## 0x20
	.long	320                             ## 0x140

	.comm	_PT1_NR_ADAPS,4,2               ## @PT1_NR_ADAPS
	.no_dead_strip	_pt1_update_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pt1_update_power
_pt1_update_power:                      ; @pt1_update_power
	.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	x19, x0
	ldr	w8, [x0]
	ldr	w9, [x0, #16]
	cmp	w9, #0
	cset	w9, eq
	orr	w21, w8, w9, lsl #3
	add	x20, x0, #4
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x8, _PT1_NR_ADAPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PT1_NR_ADAPS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x9, [x19, #8]
Lloh3:
	adrp	x10, _pt1_update_power.sleep_bits@PAGE
Lloh4:
	add	x10, x10, _pt1_update_power.sleep_bits@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9], #8
	ldr	w11, [x11]
	orr	w12, w21, #0x6
	orr	w13, w21, #0x4
	cmp	w11, #129
	csel	w13, w21, w13, ne
	cmp	w11, #128
	csel	w11, w12, w13, eq
	ldr	w12, [x10], #4
	orr	w21, w12, w11
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x19
	mov	w1, #1
	mov	x2, x21
	bl	_pt1_write_reg
	mov	x0, x20
	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
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @pt1_update_power.sleep_bits
_pt1_update_power.sleep_bits:
	.long	16                              ; 0x10
	.long	192                             ; 0xc0
	.long	32                              ; 0x20
	.long	320                             ; 0x140

	.comm	_PT1_NR_ADAPS,4,2               ; @PT1_NR_ADAPS
	.no_dead_strip	_pt1_update_power
.subsections_via_symbols
