	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psb_irq_turn_on_dpst           ## -- Begin function psb_irq_turn_on_dpst
	.p2align	4, 0x90
_psb_irq_turn_on_dpst:                  ## @psb_irq_turn_on_dpst
	.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
	movq	%rdi, %r13
	movq	(%rdi), %r14
	xorl	%esi, %esi
	callq	_gma_power_begin
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_HISTOGRAM_LOGIC_CONTROL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$-2147483648, %edi              ## imm = 0x80000000
	callq	_PSB_WVDC32
	movl	(%rbx), %edi
	callq	_PSB_RVDC32
	movq	_HISTOGRAM_INT_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$-2147483648, %edi              ## imm = 0x80000000
	callq	_PSB_WVDC32
	movl	(%r12), %edi
	callq	_PSB_RVDC32
	movq	_PWM_CONTROL_LOGIC@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$-2147417856, %edi              ## imm = 0x80010100
	callq	_PSB_WVDC32
	movl	(%r15), %edi
	callq	_PSB_RVDC32
	movq	_PWM_PHASEIN_ENABLE@GOTPCREL(%rip), %rbx
	orl	(%rbx), %eax
	movq	_PWM_PHASEIN_INT_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_PSB_WVDC32
	movl	(%r15), %edi
	callq	_PSB_RVDC32
	movq	_PIPE_DPST_EVENT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_psb_enable_pipestat
	movl	(%r12), %edi
	callq	_PSB_RVDC32
	movq	_HISTOGRAM_INT_CTRL_CLEAR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_PSB_WVDC32
	movl	(%r15), %edi
	callq	_PSB_RVDC32
	orl	(%rbx), %eax
	orl	$-2147417856, %eax              ## imm = 0x80010100
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_PSB_WVDC32
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gma_power_end                  ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HISTOGRAM_LOGIC_CONTROL,4,2    ## @HISTOGRAM_LOGIC_CONTROL
	.comm	_HISTOGRAM_INT_CONTROL,4,2      ## @HISTOGRAM_INT_CONTROL
	.comm	_PWM_CONTROL_LOGIC,4,2          ## @PWM_CONTROL_LOGIC
	.comm	_PWM_PHASEIN_ENABLE,4,2         ## @PWM_PHASEIN_ENABLE
	.comm	_PWM_PHASEIN_INT_ENABLE,4,2     ## @PWM_PHASEIN_INT_ENABLE
	.comm	_PIPE_DPST_EVENT_ENABLE,4,2     ## @PIPE_DPST_EVENT_ENABLE
	.comm	_HISTOGRAM_INT_CTRL_CLEAR,4,2   ## @HISTOGRAM_INT_CTRL_CLEAR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psb_irq_turn_on_dpst           ; -- Begin function psb_irq_turn_on_dpst
	.p2align	2
_psb_irq_turn_on_dpst:                  ; @psb_irq_turn_on_dpst
	.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	x19, x0
	ldr	x20, [x0]
	mov	w1, #0
	bl	_gma_power_begin
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x21, _HISTOGRAM_LOGIC_CONTROL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HISTOGRAM_LOGIC_CONTROL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #-2147483648
	bl	_PSB_WVDC32
	ldr	w0, [x21]
	bl	_PSB_RVDC32
Lloh2:
	adrp	x22, _HISTOGRAM_INT_CONTROL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _HISTOGRAM_INT_CONTROL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #-2147483648
	bl	_PSB_WVDC32
	ldr	w0, [x22]
	bl	_PSB_RVDC32
Lloh4:
	adrp	x21, _PWM_CONTROL_LOGIC@GOTPAGE
Lloh5:
	ldr	x21, [x21, _PWM_CONTROL_LOGIC@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w23, #256
	movk	w23, #32769, lsl #16
	mov	w0, #256
	movk	w0, #32769, lsl #16
	bl	_PSB_WVDC32
	ldr	w0, [x21]
	bl	_PSB_RVDC32
Lloh6:
	adrp	x24, _PWM_PHASEIN_ENABLE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _PWM_PHASEIN_ENABLE@GOTPAGEOFF]
	ldr	w8, [x24]
	orr	w8, w8, w0
Lloh8:
	adrp	x9, _PWM_PHASEIN_INT_ENABLE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PWM_PHASEIN_INT_ENABLE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	w1, [x21]
	bl	_PSB_WVDC32
	ldr	w0, [x21]
	bl	_PSB_RVDC32
Lloh11:
	adrp	x8, _PIPE_DPST_EVENT_ENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PIPE_DPST_EVENT_ENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_psb_enable_pipestat
	ldr	w0, [x22]
	bl	_PSB_RVDC32
Lloh14:
	adrp	x8, _HISTOGRAM_INT_CTRL_CLEAR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HISTOGRAM_INT_CTRL_CLEAR@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	w1, [x22]
	bl	_PSB_WVDC32
	ldr	w0, [x21]
	bl	_PSB_RVDC32
	ldr	w8, [x24]
	orr	w8, w0, w8
	orr	w0, w8, w23
	ldr	w1, [x21]
	bl	_PSB_WVDC32
	mov	x0, x19
	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
	b	_gma_power_end
LBB0_2:
	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 AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HISTOGRAM_LOGIC_CONTROL,4,2    ; @HISTOGRAM_LOGIC_CONTROL
	.comm	_HISTOGRAM_INT_CONTROL,4,2      ; @HISTOGRAM_INT_CONTROL
	.comm	_PWM_CONTROL_LOGIC,4,2          ; @PWM_CONTROL_LOGIC
	.comm	_PWM_PHASEIN_ENABLE,4,2         ; @PWM_PHASEIN_ENABLE
	.comm	_PWM_PHASEIN_INT_ENABLE,4,2     ; @PWM_PHASEIN_INT_ENABLE
	.comm	_PIPE_DPST_EVENT_ENABLE,4,2     ; @PIPE_DPST_EVENT_ENABLE
	.comm	_HISTOGRAM_INT_CTRL_CLEAR,4,2   ; @HISTOGRAM_INT_CTRL_CLEAR
.subsections_via_symbols
