	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psb_irq_postinstall            ## -- Begin function psb_irq_postinstall
	.p2align	4, 0x90
_psb_irq_postinstall:                   ## @psb_irq_postinstall
	.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	%rdi, %r15
	movq	8(%rdi), %rbx
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	__PSB_CE2_BIF_REQUESTER_FAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PSB_CR_EVENT_HOST_ENABLE2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PSB_WSGX32
	movq	__PSB_CE_TWOD_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PSB_CR_EVENT_HOST_ENABLE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_PSB_WSGX32
	movl	(%r12), %edi
	callq	_PSB_RSGX32
	movl	(%rbx), %edi
	movq	_PSB_INT_ENABLE_R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PSB_WVDC32
	movq	_PSB_HWSTAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$-1, %edi
	callq	_PSB_WVDC32
	movq	(%r15), %rax
	cmpq	$0, (%rax)
	movq	_PIPE_VBLANK_INTERRUPT_ENABLE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	je	LBB0_2
## %bb.1:
	xorl	%esi, %esi
	callq	_psb_enable_pipestat
	jmp	LBB0_3
LBB0_2:
	xorl	%esi, %esi
	callq	_psb_disable_pipestat
LBB0_3:
	movq	(%r15), %rax
	cmpq	$0, 8(%rax)
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	je	LBB0_5
## %bb.4:
	callq	_psb_enable_pipestat
	jmp	LBB0_6
LBB0_5:
	callq	_psb_disable_pipestat
LBB0_6:
	movq	(%r15), %rax
	cmpq	$0, 16(%rax)
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	$2, %esi
	je	LBB0_8
## %bb.7:
	callq	_psb_enable_pipestat
	jmp	LBB0_9
LBB0_8:
	callq	_psb_disable_pipestat
LBB0_9:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	*%rax
LBB0_11:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__PSB_CE2_BIF_REQUESTER_FAULT,4,2 ## @_PSB_CE2_BIF_REQUESTER_FAULT
	.comm	_PSB_CR_EVENT_HOST_ENABLE2,4,2  ## @PSB_CR_EVENT_HOST_ENABLE2
	.comm	__PSB_CE_TWOD_COMPLETE,4,2      ## @_PSB_CE_TWOD_COMPLETE
	.comm	_PSB_CR_EVENT_HOST_ENABLE,4,2   ## @PSB_CR_EVENT_HOST_ENABLE
	.comm	_PSB_INT_ENABLE_R,4,2           ## @PSB_INT_ENABLE_R
	.comm	_PSB_HWSTAM,4,2                 ## @PSB_HWSTAM
	.comm	_PIPE_VBLANK_INTERRUPT_ENABLE,4,2 ## @PIPE_VBLANK_INTERRUPT_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psb_irq_postinstall            ; -- Begin function psb_irq_postinstall
	.p2align	2
_psb_irq_postinstall:                   ; @psb_irq_postinstall
	.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	x20, x0
	ldr	x21, [x0, #8]
	add	x19, x21, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, __PSB_CE2_BIF_REQUESTER_FAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, __PSB_CE2_BIF_REQUESTER_FAULT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _PSB_CR_EVENT_HOST_ENABLE2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PSB_CR_EVENT_HOST_ENABLE2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_PSB_WSGX32
Lloh6:
	adrp	x8, __PSB_CE_TWOD_COMPLETE@GOTPAGE
Lloh7:
	ldr	x8, [x8, __PSB_CE_TWOD_COMPLETE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x22, _PSB_CR_EVENT_HOST_ENABLE@GOTPAGE
Lloh10:
	ldr	x22, [x22, _PSB_CR_EVENT_HOST_ENABLE@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_PSB_WSGX32
	ldr	w0, [x22]
	bl	_PSB_RSGX32
	ldr	w0, [x21]
Lloh11:
	adrp	x8, _PSB_INT_ENABLE_R@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PSB_INT_ENABLE_R@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_PSB_WVDC32
Lloh14:
	adrp	x8, _PSB_HWSTAM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PSB_HWSTAM@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w0, #-1
	bl	_PSB_WVDC32
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh17:
	adrp	x22, _PIPE_VBLANK_INTERRUPT_ENABLE@GOTPAGE
Lloh18:
	ldr	x22, [x22, _PIPE_VBLANK_INTERRUPT_ENABLE@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x21
	mov	w1, #0
	cbz	x8, LBB0_2
; %bb.1:
	bl	_psb_enable_pipestat
	b	LBB0_3
LBB0_2:
	bl	_psb_disable_pipestat
LBB0_3:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	w2, [x22]
	mov	x0, x21
	mov	w1, #1
	cbz	x8, LBB0_5
; %bb.4:
	bl	_psb_enable_pipestat
	b	LBB0_6
LBB0_5:
	bl	_psb_disable_pipestat
LBB0_6:
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
	ldr	w2, [x22]
	mov	x0, x21
	mov	w1, #2
	cbz	x8, LBB0_8
; %bb.7:
	bl	_psb_enable_pipestat
	b	LBB0_9
LBB0_8:
	bl	_psb_disable_pipestat
LBB0_9:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x20
	mov	w1, #1
	blr	x8
LBB0_11:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	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 AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	__PSB_CE2_BIF_REQUESTER_FAULT,4,2 ; @_PSB_CE2_BIF_REQUESTER_FAULT
	.comm	_PSB_CR_EVENT_HOST_ENABLE2,4,2  ; @PSB_CR_EVENT_HOST_ENABLE2
	.comm	__PSB_CE_TWOD_COMPLETE,4,2      ; @_PSB_CE_TWOD_COMPLETE
	.comm	_PSB_CR_EVENT_HOST_ENABLE,4,2   ; @PSB_CR_EVENT_HOST_ENABLE
	.comm	_PSB_INT_ENABLE_R,4,2           ; @PSB_INT_ENABLE_R
	.comm	_PSB_HWSTAM,4,2                 ; @PSB_HWSTAM
	.comm	_PIPE_VBLANK_INTERRUPT_ENABLE,4,2 ; @PIPE_VBLANK_INTERRUPT_ENABLE
.subsections_via_symbols
