	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function request_pll
_request_pll:                           ## @request_pll
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_PRCMU_PLLSOC0@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_PLL_SOC0_OFF@GOTPCREL(%rip), %rax
	movq	_PLL_SOC0_ON@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_PRCMU_PLLSOC1@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_9
## %bb.3:
	movq	_PLL_SOC1_OFF@GOTPCREL(%rip), %rax
	movq	_PLL_SOC1_ON@GOTPCREL(%rip), %rcx
LBB0_4:
	testl	%esi, %esi
	cmoveq	%rax, %rcx
	movq	(%rcx), %r15
	movq	_mb1_transfer@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_PRCM_MBOX_CPU_VAL@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_readl
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_MBOX_BIT
	testl	%ebx, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	jmp	LBB0_6
LBB0_7:
	movq	_MB1H_PLL_ON_OFF@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	_tcdm_base@GOTPCREL(%rip), %rbx
	movq	_PRCM_MBOX_HEADER_REQ_MB1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writeb
	movq	_PRCM_REQ_MB1_PLL_ON_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_writeb
	movl	$1, %edi
	callq	_MBOX_BIT
	movq	_PRCM_MBOX_CPU_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_writel
	leaq	16(%r14), %rdi
	callq	_wait_for_completion
	movq	8(%r14), %rax
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	cmpq	(%r12), %rax
	cmovel	%edx, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_8
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PRCMU_PLLSOC0,8,3              ## @PRCMU_PLLSOC0
	.comm	_PLL_SOC0_ON,8,3                ## @PLL_SOC0_ON
	.comm	_PLL_SOC0_OFF,8,3               ## @PLL_SOC0_OFF
	.comm	_PRCMU_PLLSOC1,8,3              ## @PRCMU_PLLSOC1
	.comm	_PLL_SOC1_ON,8,3                ## @PLL_SOC1_ON
	.comm	_PLL_SOC1_OFF,8,3               ## @PLL_SOC1_OFF
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_mb1_transfer,24,3              ## @mb1_transfer
	.comm	_PRCM_MBOX_CPU_VAL,4,2          ## @PRCM_MBOX_CPU_VAL
	.comm	_MB1H_PLL_ON_OFF,8,3            ## @MB1H_PLL_ON_OFF
	.comm	_tcdm_base,8,3                  ## @tcdm_base
	.comm	_PRCM_MBOX_HEADER_REQ_MB1,8,3   ## @PRCM_MBOX_HEADER_REQ_MB1
	.comm	_PRCM_REQ_MB1_PLL_ON_OFF,8,3    ## @PRCM_REQ_MB1_PLL_ON_OFF
	.comm	_PRCM_MBOX_CPU_SET,4,2          ## @PRCM_MBOX_CPU_SET
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_request_pll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function request_pll
_request_pll:                           ; @request_pll
	.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
Lloh0:
	adrp	x8, _PRCMU_PLLSOC0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PRCMU_PLLSOC0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PLL_SOC0_OFF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PLL_SOC0_OFF@GOTPAGEOFF]
Lloh5:
	adrp	x9, _PLL_SOC0_ON@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PLL_SOC0_ON@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh7:
	adrp	x8, _PRCMU_PLLSOC1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PRCMU_PLLSOC1@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_8
; %bb.3:
Lloh10:
	adrp	x8, _PLL_SOC1_OFF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PLL_SOC1_OFF@GOTPAGEOFF]
Lloh12:
	adrp	x9, _PLL_SOC1_ON@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PLL_SOC1_ON@GOTPAGEOFF]
LBB0_4:
	cmp	w1, #0
	csel	x8, x8, x9, eq
	ldr	x20, [x8]
Lloh14:
	adrp	x19, _mb1_transfer@GOTPAGE
Lloh15:
	ldr	x19, [x19, _mb1_transfer@GOTPAGEOFF]
	mov	x0, x19
	bl	_mutex_lock
Lloh16:
	adrp	x22, _PRCM_MBOX_CPU_VAL@GOTPAGE
Lloh17:
	ldr	x22, [x22, _PRCM_MBOX_CPU_VAL@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_readl
	mov	x21, x0
	mov	w0, #1
	bl	_MBOX_BIT
	tst	w0, w21
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_cpu_relax
	b	LBB0_5
LBB0_7:
Lloh18:
	adrp	x21, _MB1H_PLL_ON_OFF@GOTPAGE
Lloh19:
	ldr	x21, [x21, _MB1H_PLL_ON_OFF@GOTPAGEOFF]
Lloh20:
	adrp	x22, _tcdm_base@GOTPAGE
Lloh21:
	ldr	x22, [x22, _tcdm_base@GOTPAGEOFF]
	ldr	x0, [x21]
	ldr	x8, [x22]
Lloh22:
	adrp	x9, _PRCM_MBOX_HEADER_REQ_MB1@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PRCM_MBOX_HEADER_REQ_MB1@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writeb
	ldr	x8, [x22]
Lloh25:
	adrp	x9, _PRCM_REQ_MB1_PLL_ON_OFF@GOTPAGE
Lloh26:
	ldr	x9, [x9, _PRCM_REQ_MB1_PLL_ON_OFF@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writeb
	mov	w0, #1
	bl	_MBOX_BIT
Lloh28:
	adrp	x8, _PRCM_MBOX_CPU_SET@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PRCM_MBOX_CPU_SET@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	bl	_writel
	add	x0, x19, #16
	bl	_wait_for_completion
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
Lloh31:
	adrp	x10, _EIO@GOTPAGE
Lloh32:
	ldr	x10, [x10, _EIO@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	cmp	x8, x9
	csneg	w20, wzr, w10, eq
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_9
LBB0_8:
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_PRCMU_PLLSOC0,8,3              ; @PRCMU_PLLSOC0
	.comm	_PLL_SOC0_ON,8,3                ; @PLL_SOC0_ON
	.comm	_PLL_SOC0_OFF,8,3               ; @PLL_SOC0_OFF
	.comm	_PRCMU_PLLSOC1,8,3              ; @PRCMU_PLLSOC1
	.comm	_PLL_SOC1_ON,8,3                ; @PLL_SOC1_ON
	.comm	_PLL_SOC1_OFF,8,3               ; @PLL_SOC1_OFF
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_mb1_transfer,24,3              ; @mb1_transfer
	.comm	_PRCM_MBOX_CPU_VAL,4,2          ; @PRCM_MBOX_CPU_VAL
	.comm	_MB1H_PLL_ON_OFF,8,3            ; @MB1H_PLL_ON_OFF
	.comm	_tcdm_base,8,3                  ; @tcdm_base
	.comm	_PRCM_MBOX_HEADER_REQ_MB1,8,3   ; @PRCM_MBOX_HEADER_REQ_MB1
	.comm	_PRCM_REQ_MB1_PLL_ON_OFF,8,3    ; @PRCM_REQ_MB1_PLL_ON_OFF
	.comm	_PRCM_MBOX_CPU_SET,4,2          ; @PRCM_MBOX_CPU_SET
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_request_pll
.subsections_via_symbols
