	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm_io
_pm_io:                                 ## @pm_io
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	_ssp@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	(%rax), %ecx
	movq	_SSP_PMC_SET@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	testl	%ecx, %esi
	je	LBB0_5
## %bb.1:
	movq	_PC@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rbx
	movl	-4(%rbx), %ebx
	testl	$65295, %ebx                    ## imm = 0xFF0F
	je	LBB0_4
## %bb.2:
	andl	$65520, %ebx                    ## imm = 0xFFF0
	je	LBB0_4
## %bb.3:
	notl	%esi
	andl	%esi, %ecx
	movl	%ecx, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_29
LBB0_5:
	movq	_SSP_PMC_HAVE_ADDR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, %edx
	je	LBB0_7
## %bb.6:
	notl	%edx
	andl	%edx, %ecx
	movl	%ecx, (%rax)
LBB0_7:
	cmpl	$4, %edi
	je	LBB0_10
## %bb.8:
	movq	_rST@GOTPCREL(%rip), %rcx
	testb	$96, (%rcx)
	je	LBB0_9
LBB0_10:
	movq	_svp@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%rcx), %r9
	movq	8(%rax), %rcx
	testl	%r14d, %r14d
	je	LBB0_23
## %bb.11:
	movq	8(%rcx), %rax
	movslq	%edi, %r8
	movl	(%rax,%r8,4), %r15d
	movzwl	%r15w, %r12d
	movl	%r15d, %edi
	sarl	$16, %edi
	movl	%r15d, %edx
	andl	$1140785152, %edx               ## imm = 0x43FF0000
	cmpl	$1572864, %edx                  ## imm = 0x180000
	jne	LBB0_16
## %bb.12:
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	callq	_get_inc
	movl	%eax, %edx
	testl	$67108864, %r15d                ## imm = 0x4000000
	jne	LBB0_13
## %bb.14:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movw	%bx, (%rax,%r12,2)
	jmp	LBB0_15
LBB0_4:
	movq	_rPMC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	8(%rax), %rsi
	movslq	%r14d, %rbx
	movq	(%rsi,%rbx,8), %rsi
	movslq	%edi, %rdi
	movl	%ecx, (%rsi,%rdi,4)
	movl	(%rdx), %ecx
	notl	%ecx
	andl	%ecx, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_29
LBB0_23:
	movq	(%rcx), %rdx
	movslq	%edi, %r8
	movl	(%rdx,%r8,4), %eax
	movl	%eax, %edi
	sarl	$16, %edi
	movl	%edi, %esi
	andl	$65520, %esi                    ## imm = 0xFFF0
	cmpl	$2048, %esi                     ## imm = 0x800
	jne	LBB0_25
## %bb.24:
	leal	1(%rax), %esi
	movl	%esi, (%rdx,%r8,4)
	movq	_cart@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	andl	$1048575, %eax                  ## imm = 0xFFFFF
	movzwl	(%rdx,%rax,2), %ebx
	jmp	LBB0_28
LBB0_16:
	movl	%edi, %edx
	andl	$64511, %edx                    ## imm = 0xFBFF
	cmpl	$16408, %edx                    ## imm = 0x4018
	jne	LBB0_21
## %bb.17:
	movl	%r12d, %edx
	testl	$67108864, %r15d                ## imm = 0x4000000
	jne	LBB0_18
## %bb.19:
	movw	%bx, (%r9,%rdx,2)
	movl	%r15d, %edx
	jmp	LBB0_20
LBB0_9:
	movw	$-1, %bx
	jmp	LBB0_29
LBB0_25:
	movl	%eax, %edx
	andl	$1207894016, %edx               ## imm = 0x47FF0000
	cmpl	$1572864, %edx                  ## imm = 0x180000
	jne	LBB0_26
## %bb.27:
	movzwl	%ax, %r15d
	movq	%r8, %rbx
	movq	%r9, %r12
	callq	_get_inc
	movq	%rbx, %r8
	movzwl	(%r12,%r15,2), %ebx
	movq	(%r13), %rcx
	movq	8(%rcx), %rcx
	movq	(%rcx), %rdx
	addl	%eax, (%rdx,%r8,4)
	jmp	LBB0_28
LBB0_13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movzwl	(%rax,%r12,2), %edi
	movzwl	%bx, %esi
	movl	%edx, %r15d
	callq	_overwite_write
	movl	%r15d, %edx
LBB0_15:
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	(%r13), %rax
	movq	8(%rax), %rcx
	movq	8(%rcx), %rax
	addl	%edx, (%rax,%r8,4)
	jmp	LBB0_28
LBB0_21:
	movl	%r15d, %eax
	andl	$1207894016, %eax               ## imm = 0x47FF0000
	cmpl	$1835008, %eax                  ## imm = 0x1C0000
	jne	LBB0_28
## %bb.22:
	movq	%r8, %r12
	callq	_get_inc
	movq	%r12, %r8
	movq	_svp@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	andl	$1023, %r15d                    ## imm = 0x3FF
	movw	%bx, (%rcx,%r15,2)
	movq	(%r13), %rcx
	movq	8(%rcx), %rcx
	movq	8(%rcx), %rdx
	addl	%eax, (%rdx,%r12,4)
	jmp	LBB0_28
LBB0_26:
	xorl	%ebx, %ebx
	jmp	LBB0_28
LBB0_18:
	movzwl	(%r9,%rdx,2), %edi
	movzwl	%bx, %esi
	movq	%r8, %r12
	callq	_overwite_write
	movq	%r12, %r8
	movq	(%r13), %rax
	movq	8(%rax), %rcx
	movq	8(%rcx), %rax
	movl	(%rax,%r12,4), %edx
LBB0_20:
	leal	31(%rdx), %esi
	incl	%edx
	testb	$1, %r15b
	cmovnel	%esi, %edx
	movl	%edx, (%rax,%r8,4)
LBB0_28:
	movslq	%r14d, %rax
	movq	(%rcx,%rax,8), %rax
	movl	(%rax,%r8,4), %eax
	movq	_rPMC@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_29:
	movzwl	%bx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ssp,8,3                        ## @ssp
	.comm	_SSP_PMC_SET,4,2                ## @SSP_PMC_SET
	.comm	_PC,8,3                         ## @PC
	.comm	_rPMC,4,2                       ## @rPMC
	.comm	_SSP_PMC_HAVE_ADDR,4,2          ## @SSP_PMC_HAVE_ADDR
	.comm	_rST,4,2                        ## @rST
	.comm	_svp,8,3                        ## @svp
	.comm	_cart,8,3                       ## @cart
	.comm	_CADDR,4,2                      ## @CADDR
	.comm	_EL_ANOMALY,4,2                 ## @EL_ANOMALY
	.comm	_EL_SVP,4,2                     ## @EL_SVP
	.comm	_last_iram,4,2                  ## @last_iram
	.no_dead_strip	_pm_io
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm_io
_pm_io:                                 ; @pm_io
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x23, _ssp@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ssp@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	w9, [x8]
Lloh2:
	adrp	x10, _SSP_PMC_SET@GOTPAGE
Lloh3:
	ldr	x10, [x10, _SSP_PMC_SET@GOTPAGEOFF]
	ldr	w11, [x10]
	tst	w11, w9
	b.eq	LBB0_3
; %bb.1:
Lloh4:
	adrp	x12, _PC@GOTPAGE
Lloh5:
	ldr	x12, [x12, _PC@GOTPAGEOFF]
Lloh6:
	ldr	x12, [x12]
	ldur	w12, [x12, #-4]
	mov	w13, #65295
	and	w13, w12, w13
	and	w12, w12, #0xfff0
	cmp	w13, #0
	mov	w20, #0
	ccmp	w12, #0, #4, ne
	b.ne	LBB0_11
; %bb.2:
Lloh7:
	adrp	x9, _rPMC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _rPMC@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	ldr	x11, [x8, #8]
	ldr	x11, [x11, w19, sxtw #3]
	str	w9, [x11, w0, sxtw #2]
	ldr	w9, [x10]
	ldr	w10, [x8]
	bic	w9, w10, w9
	str	w9, [x8]
	b	LBB0_30
LBB0_3:
	mov	x20, x2
Lloh10:
	adrp	x10, _SSP_PMC_HAVE_ADDR@GOTPAGE
Lloh11:
	ldr	x10, [x10, _SSP_PMC_HAVE_ADDR@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.4:
	bic	w9, w9, w10
	str	w9, [x8]
LBB0_5:
	cmp	w0, #4
	b.eq	LBB0_7
; %bb.6:
Lloh13:
	adrp	x9, _rST@GOTPAGE
Lloh14:
	ldr	x9, [x9, _rST@GOTPAGEOFF]
	ldrb	w9, [x9]
	tst	w9, #0x60
	b.eq	LBB0_17
LBB0_7:
Lloh15:
	adrp	x21, _svp@GOTPAGE
Lloh16:
	ldr	x21, [x21, _svp@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x24, [x9, #8]
	ldr	x8, [x8, #8]
	cbz	w19, LBB0_12
; %bb.8:
	ldr	x9, [x8, #8]
	ldr	w25, [x9, w0, sxtw #2]
	sxtw	x22, w0
	and	x26, x25, #0xffff
	asr	w0, w25, #16
	mov	w10, #1140785152
	and	w10, w25, w10
	cmp	w10, #384, lsl #12              ; =1572864
	b.ne	LBB0_14
; %bb.9:
	bl	_get_inc
	mov	x21, x0
	tbnz	w25, #26, LBB0_20
; %bb.10:
	strh	w20, [x24, x26, lsl #1]
	b	LBB0_21
LBB0_11:
	bic	w9, w9, w11
	str	w9, [x8]
	b	LBB0_30
LBB0_12:
	ldr	x10, [x8]
	mov	x9, x0
	sxtw	x22, w9
	ldr	w9, [x10, w0, sxtw #2]
	asr	w0, w9, #16
	and	w11, w0, #0xfff0
	cmp	w11, #2048
	b.ne	LBB0_18
; %bb.13:
	add	w11, w9, #1
	str	w11, [x10, x22, lsl #2]
Lloh17:
	adrp	x10, _cart@GOTPAGE
Lloh18:
	ldr	x10, [x10, _cart@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	and	x9, x9, #0xfffff
	ldrh	w20, [x10, x9, lsl #1]
	b	LBB0_29
LBB0_14:
	mov	w10, #64511
	and	w10, w0, w10
	mov	w11, #16408
	cmp	w10, w11
	b.ne	LBB0_22
; %bb.15:
	mov	w10, w26
	tbnz	w25, #26, LBB0_27
; %bb.16:
	strh	w20, [x24, x10, lsl #1]
	mov	x10, x25
	b	LBB0_28
LBB0_17:
	mov	w20, #65535
	b	LBB0_30
LBB0_18:
	mov	w10, #1207894016
	and	w10, w9, w10
	cmp	w10, #384, lsl #12              ; =1572864
	b.ne	LBB0_26
; %bb.19:
	and	x20, x9, #0xffff
	bl	_get_inc
	ldrh	w20, [x24, x20, lsl #1]
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	ldr	x9, [x8]
	b	LBB0_24
LBB0_20:
	ldrh	w0, [x24, x26, lsl #1]
	mov	x1, x20
	bl	_overwite_write
LBB0_21:
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	ldr	x9, [x8, #8]
	lsl	x10, x22, #2
	ldr	w11, [x9, x10]
	add	w11, w11, w21
	b	LBB0_25
LBB0_22:
	mov	w9, #1207894016
	and	w9, w25, w9
	cmp	w9, #448, lsl #12               ; =1835008
	b.ne	LBB0_29
; %bb.23:
	bl	_get_inc
	ldr	x8, [x21]
	ldr	x8, [x8]
	and	x9, x25, #0x3ff
	strh	w20, [x8, x9, lsl #1]
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	ldr	x9, [x8, #8]
LBB0_24:
	lsl	x10, x22, #2
	ldr	w11, [x9, x10]
	add	w11, w11, w0
LBB0_25:
	str	w11, [x9, x10]
	b	LBB0_29
LBB0_26:
	mov	w20, #0
	b	LBB0_29
LBB0_27:
	ldrh	w0, [x24, x10, lsl #1]
	mov	x1, x20
	bl	_overwite_write
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	ldr	x9, [x8, #8]
	ldr	w10, [x9, x22, lsl #2]
LBB0_28:
	tst	w25, #0x1
	add	w11, w10, #31
	csinc	w10, w11, w10, ne
	str	w10, [x9, x22, lsl #2]
LBB0_29:
	ldr	x8, [x8, w19, sxtw #3]
	ldr	w8, [x8, x22, lsl #2]
Lloh20:
	adrp	x9, _rPMC@GOTPAGE
Lloh21:
	ldr	x9, [x9, _rPMC@GOTPAGEOFF]
Lloh22:
	str	w8, [x9]
LBB0_30:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ssp,8,3                        ; @ssp
	.comm	_SSP_PMC_SET,4,2                ; @SSP_PMC_SET
	.comm	_PC,8,3                         ; @PC
	.comm	_rPMC,4,2                       ; @rPMC
	.comm	_SSP_PMC_HAVE_ADDR,4,2          ; @SSP_PMC_HAVE_ADDR
	.comm	_rST,4,2                        ; @rST
	.comm	_svp,8,3                        ; @svp
	.comm	_cart,8,3                       ; @cart
	.comm	_CADDR,4,2                      ; @CADDR
	.comm	_EL_ANOMALY,4,2                 ; @EL_ANOMALY
	.comm	_EL_SVP,4,2                     ; @EL_SVP
	.comm	_last_iram,4,2                  ; @last_iram
	.no_dead_strip	_pm_io
.subsections_via_symbols
