	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function plc_init
_plc_init:                              ## @plc_init
	.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, %r12d
	movq	%rdi, %r14
	movq	_PL_CNTRL_B@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movl	%r12d, %edi
	callq	_PLC
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_outpw
	movq	(%r15), %rsi
	movl	%r12d, %edi
	callq	_PLC
	movq	_PL_PCM_STOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_outpw
	movq	_PL_CNTRL_A@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r12d, %edi
	callq	_PLC
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_outpw
	movq	_PL_STATUS_A@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r12d, %edi
	callq	_PLC
	movl	%eax, %edi
	callq	_inpw
	movq	_PLC_REV_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_PLC_REVISION_A@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
## %bb.1:
	movq	8(%r14), %rax
	movslq	%r12d, %rcx
	cmpq	$0, (%rax,%rcx,8)
	movq	_PL_CNTRL_C@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	jne	LBB0_2
## %bb.3:
	movq	_PLCS_CONTROL_C_U@GOTPCREL(%rip), %rbx
	jmp	LBB0_4
LBB0_2:
	movq	_PLCS_CONTROL_C_S@GOTPCREL(%rip), %rbx
LBB0_4:
	movl	%r12d, %edi
	callq	_PLC
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_outpw
LBB0_5:
	movq	_pltm@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	callq	_PLC
	movq	(%r13), %rcx
	movl	(%rcx,%rbx), %esi
	movl	%eax, %edi
	callq	_outpw
	movq	(%r13), %rax
	movq	24(%rax,%rbx), %rsi
	addq	$16, %rbx
	testq	%rsi, %rsi
	jne	LBB0_7
LBB0_8:
	movq	_PL_INTR_EVENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r12d, %edi
	callq	_PLC
	movl	%eax, %edi
	callq	_inpw
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_plc_clear_irq
	movq	_PL_INTR_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r12d, %edi
	callq	_PLC
	movq	_plc_imsk_na@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_outpw
	movq	(%r14), %rax
	movq	_SMT_SAS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	_PS@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_10
## %bb.11:
	movq	(%r15), %rsi
	movl	%r12d, %edi
	callq	_PLC
	movq	_PL_CLASS_S@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outpw                          ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PL_CNTRL_B,8,3                 ## @PL_CNTRL_B
	.comm	_PL_PCM_STOP,4,2                ## @PL_PCM_STOP
	.comm	_PL_CNTRL_A,8,3                 ## @PL_CNTRL_A
	.comm	_PL_STATUS_A,8,3                ## @PL_STATUS_A
	.comm	_PLC_REV_MASK,4,2               ## @PLC_REV_MASK
	.comm	_PLC_REVISION_A,4,2             ## @PLC_REVISION_A
	.comm	_PL_CNTRL_C,8,3                 ## @PL_CNTRL_C
	.comm	_PLCS_CONTROL_C_S,4,2           ## @PLCS_CONTROL_C_S
	.comm	_PLCS_CONTROL_C_U,4,2           ## @PLCS_CONTROL_C_U
	.comm	_pltm,8,3                       ## @pltm
	.comm	_PL_INTR_EVENT,8,3              ## @PL_INTR_EVENT
	.comm	_PL_INTR_MASK,8,3               ## @PL_INTR_MASK
	.comm	_plc_imsk_na,4,2                ## @plc_imsk_na
	.comm	_SMT_SAS,8,3                    ## @SMT_SAS
	.comm	_PS,4,2                         ## @PS
	.comm	_PL_CLASS_S,4,2                 ## @PL_CLASS_S
	.comm	_PLCS_FASSERT_S,4,2             ## @PLCS_FASSERT_S
	.comm	_PLCS_FASSERT_U,4,2             ## @PLCS_FASSERT_U
	.comm	_PLCS_FDEASSERT_S,4,2           ## @PLCS_FDEASSERT_S
	.comm	_PLCS_FDEASSERT_U,4,2           ## @PLCS_FDEASSERT_U
	.comm	_PL_T_FOT_ASS,8,3               ## @PL_T_FOT_ASS
	.comm	_PL_T_FOT_DEASS,8,3             ## @PL_T_FOT_DEASS
	.no_dead_strip	_plc_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function plc_init
_plc_init:                              ; @plc_init
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _PL_CNTRL_B@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PL_CNTRL_B@GOTPAGEOFF]
	ldr	x1, [x21]
	mov	x0, x19
	bl	_PLC
	mov	w1, #0
	bl	_outpw
	ldr	x1, [x21]
	mov	x0, x19
	bl	_PLC
Lloh2:
	adrp	x8, _PL_PCM_STOP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PL_PCM_STOP@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_outpw
Lloh5:
	adrp	x8, _PL_CNTRL_A@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PL_CNTRL_A@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_PLC
	mov	w1, #0
	bl	_outpw
Lloh8:
	adrp	x8, _PL_STATUS_A@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PL_STATUS_A@GOTPAGEOFF]
Lloh10:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_PLC
	bl	_inpw
Lloh11:
	adrp	x8, _PLC_REV_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PLC_REV_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh14:
	adrp	x9, _PLC_REVISION_A@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PLC_REVISION_A@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x22, [x8, w19, sxtw #3]
Lloh17:
	adrp	x8, _PL_CNTRL_C@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PL_CNTRL_C@GOTPAGEOFF]
Lloh19:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_PLC
Lloh20:
	adrp	x8, _PLCS_CONTROL_C_U@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PLCS_CONTROL_C_U@GOTPAGEOFF]
Lloh22:
	adrp	x9, _PLCS_CONTROL_C_S@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PLCS_CONTROL_C_S@GOTPAGEOFF]
	cmp	x22, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	bl	_outpw
LBB0_2:
Lloh24:
	adrp	x22, _pltm@GOTPAGE
Lloh25:
	ldr	x22, [x22, _pltm@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_5
; %bb.3:
	mov	x23, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_PLC
	ldr	x8, [x22]
	ldr	w1, [x8, x23]
	bl	_outpw
	ldr	x8, [x22]
	add	x8, x8, x23
	ldr	x1, [x8, #24]
	add	x23, x23, #16
	cbnz	x1, LBB0_4
LBB0_5:
Lloh26:
	adrp	x8, _PL_INTR_EVENT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PL_INTR_EVENT@GOTPAGEOFF]
Lloh28:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_PLC
	bl	_inpw
	mov	x0, x20
	mov	x1, x19
	bl	_plc_clear_irq
Lloh29:
	adrp	x8, _PL_INTR_MASK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PL_INTR_MASK@GOTPAGEOFF]
Lloh31:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_PLC
Lloh32:
	adrp	x8, _plc_imsk_na@GOTPAGE
Lloh33:
	ldr	x8, [x8, _plc_imsk_na@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	bl	_outpw
	ldr	x8, [x20]
Lloh35:
	adrp	x9, _SMT_SAS@GOTPAGE
Lloh36:
	ldr	x9, [x9, _SMT_SAS@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
Lloh38:
	adrp	x10, _PS@GOTPAGE
Lloh39:
	ldr	x10, [x10, _PS@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	cmp	x8, x9
	ccmp	w10, w19, #0, eq
	b.eq	LBB0_7
; %bb.6:
	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
LBB0_7:
	ldr	x1, [x21]
	mov	x0, x19
	bl	_PLC
Lloh41:
	adrp	x8, _PL_CLASS_S@GOTPAGE
Lloh42:
	ldr	x8, [x8, _PL_CLASS_S@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	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	_outpw
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_PL_CNTRL_B,8,3                 ; @PL_CNTRL_B
	.comm	_PL_PCM_STOP,4,2                ; @PL_PCM_STOP
	.comm	_PL_CNTRL_A,8,3                 ; @PL_CNTRL_A
	.comm	_PL_STATUS_A,8,3                ; @PL_STATUS_A
	.comm	_PLC_REV_MASK,4,2               ; @PLC_REV_MASK
	.comm	_PLC_REVISION_A,4,2             ; @PLC_REVISION_A
	.comm	_PL_CNTRL_C,8,3                 ; @PL_CNTRL_C
	.comm	_PLCS_CONTROL_C_S,4,2           ; @PLCS_CONTROL_C_S
	.comm	_PLCS_CONTROL_C_U,4,2           ; @PLCS_CONTROL_C_U
	.comm	_pltm,8,3                       ; @pltm
	.comm	_PL_INTR_EVENT,8,3              ; @PL_INTR_EVENT
	.comm	_PL_INTR_MASK,8,3               ; @PL_INTR_MASK
	.comm	_plc_imsk_na,4,2                ; @plc_imsk_na
	.comm	_SMT_SAS,8,3                    ; @SMT_SAS
	.comm	_PS,4,2                         ; @PS
	.comm	_PL_CLASS_S,4,2                 ; @PL_CLASS_S
	.comm	_PLCS_FASSERT_S,4,2             ; @PLCS_FASSERT_S
	.comm	_PLCS_FASSERT_U,4,2             ; @PLCS_FASSERT_U
	.comm	_PLCS_FDEASSERT_S,4,2           ; @PLCS_FDEASSERT_S
	.comm	_PLCS_FDEASSERT_U,4,2           ; @PLCS_FDEASSERT_U
	.comm	_PL_T_FOT_ASS,8,3               ; @PL_T_FOT_ASS
	.comm	_PL_T_FOT_DEASS,8,3             ; @PL_T_FOT_DEASS
	.no_dead_strip	_plc_init
.subsections_via_symbols
