	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function request_clock
_request_clock:                         ## @request_clock
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_clk_mgt_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_PRCM_SEM@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_readl
	movq	_PRCM_SEM_PRCM_SEM@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movq	(%r12), %rdi
	callq	_readl
	testl	%eax, (%rbx)
	jne	LBB0_1
LBB0_3:
	movq	_prcmu_base@GOTPCREL(%rip), %rbx
	movq	_clk_mgt@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	shlq	$4, %r15
	movq	8(%rax,%r15), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.4:
	movq	_PRCM_CLK_MGT_CLKEN@GOTPCREL(%rip), %rdx
	movq	(%r13), %rcx
	movl	(%rdx), %edi
	orl	%eax, %edi
	orl	(%rcx,%r15), %edi
	jmp	LBB0_6
LBB0_5:
	movq	_PRCM_CLK_MGT_CLKPLLSW_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	andl	%eax, %esi
	movq	(%r13), %rcx
	movl	%esi, (%rcx,%r15)
	movq	_PRCM_CLK_MGT_CLKEN@GOTPCREL(%rip), %rsi
	movl	(%rdx), %edx
	orl	(%rsi), %edx
	notl	%edx
	andl	%edx, %eax
	movl	%eax, %edi
LBB0_6:
	movq	8(%rcx,%r15), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	(%r12), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_clk_mgt_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_clk_mgt_lock,4,2               ## @clk_mgt_lock
	.comm	_PRCM_SEM,8,3                   ## @PRCM_SEM
	.comm	_PRCM_SEM_PRCM_SEM,4,2          ## @PRCM_SEM_PRCM_SEM
	.comm	_prcmu_base,8,3                 ## @prcmu_base
	.comm	_clk_mgt,8,3                    ## @clk_mgt
	.comm	_PRCM_CLK_MGT_CLKEN,4,2         ## @PRCM_CLK_MGT_CLKEN
	.comm	_PRCM_CLK_MGT_CLKPLLSW_MASK,4,2 ## @PRCM_CLK_MGT_CLKPLLSW_MASK
	.no_dead_strip	_request_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function request_clock
_request_clock:                         ; @request_clock
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _clk_mgt_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _clk_mgt_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x21, _PRCM_SEM@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PRCM_SEM@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_readl
Lloh4:
	adrp	x22, _PRCM_SEM_PRCM_SEM@GOTPAGE
Lloh5:
	ldr	x22, [x22, _PRCM_SEM_PRCM_SEM@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_cpu_relax
	ldr	x0, [x21]
	bl	_readl
	b	LBB0_1
LBB0_3:
Lloh6:
	adrp	x22, _prcmu_base@GOTPAGE
Lloh7:
	ldr	x22, [x22, _prcmu_base@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh8:
	adrp	x23, _clk_mgt@GOTPAGE
Lloh9:
	ldr	x23, [x23, _clk_mgt@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x9, x9, x19, lsl #4
	ldr	x9, [x9, #8]
	add	x0, x9, x8
	bl	_readl
	cbz	w20, LBB0_5
; %bb.4:
Lloh10:
	adrp	x8, _PRCM_CLK_MGT_CLKEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PRCM_CLK_MGT_CLKEN@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x8]
	ldr	x8, [x23]
	lsl	x10, x19, #4
	ldr	w10, [x8, x10]
	orr	w9, w9, w0
	orr	w0, w9, w10
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x9, _PRCM_CLK_MGT_CLKPLLSW_MASK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PRCM_CLK_MGT_CLKPLLSW_MASK@GOTPAGEOFF]
	ldr	w8, [x9]
	and	w10, w8, w0
	ldr	x8, [x23]
	lsl	x11, x19, #4
	str	w10, [x8, x11]
Lloh15:
	adrp	x10, _PRCM_CLK_MGT_CLKEN@GOTPAGE
Lloh16:
	ldr	x10, [x10, _PRCM_CLK_MGT_CLKEN@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	ldr	w9, [x9]
	orr	w9, w9, w10
	bic	w0, w0, w9
LBB0_6:
	ldr	x9, [x22]
	add	x8, x8, x19, lsl #4
	ldr	x8, [x8, #8]
	add	x1, x8, x9
	bl	_writel
	ldr	x1, [x21]
	mov	w0, #0
	bl	_writel
Lloh18:
	adrp	x0, _clk_mgt_lock@GOTPAGE
Lloh19:
	ldr	x0, [x0, _clk_mgt_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_clk_mgt_lock,4,2               ; @clk_mgt_lock
	.comm	_PRCM_SEM,8,3                   ; @PRCM_SEM
	.comm	_PRCM_SEM_PRCM_SEM,4,2          ; @PRCM_SEM_PRCM_SEM
	.comm	_prcmu_base,8,3                 ; @prcmu_base
	.comm	_clk_mgt,8,3                    ; @clk_mgt
	.comm	_PRCM_CLK_MGT_CLKEN,4,2         ; @PRCM_CLK_MGT_CLKEN
	.comm	_PRCM_CLK_MGT_CLKPLLSW_MASK,4,2 ; @PRCM_CLK_MGT_CLKPLLSW_MASK
	.no_dead_strip	_request_clock
.subsections_via_symbols
