	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gswip_pce_table_entry_write
_gswip_pce_table_entry_write:           ## @gswip_pce_table_entry_write
	.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	%rsi, %r12
	movq	%rdi, %r14
	cmpq	$0, 48(%rsi)
	jne	LBB0_1
## %bb.2:
	movq	_GSWIP_PCE_TBL_CTRL_OPMOD_ADWR@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_GSWIP_PCE_TBL_CTRL_OPMOD_KSWR@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r15d
	movq	_GSWIP_PCE_TBL_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_GSWIP_PCE_TBL_CTRL_BAS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_gswip_switch_r_timeout
	testl	%eax, %eax
	je	LBB0_4
## %bb.11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r12), %esi
	movq	_GSWIP_PCE_TBL_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_gswip_switch_w
	movq	_GSWIP_PCE_TBL_CTRL_ADDR_MASK@GOTPCREL(%rip), %rax
	movq	_GSWIP_PCE_TBL_CTRL_OPMOD_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	4(%r12), %edx
	orl	%r15d, %edx
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	callq	_gswip_switch_mask
	movq	8(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %r13d
	movl	%ebx, %edi
	callq	_GSWIP_PCE_TBL_KEY
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_gswip_switch_w
	incq	%rbx
	movq	8(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movq	16(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %r13d
	movl	%ebx, %edi
	callq	_GSWIP_PCE_TBL_VAL
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_gswip_switch_w
	incq	%rbx
	movq	16(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_10:
	movq	_GSWIP_PCE_TBL_CTRL_OPMOD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GSWIP_PCE_TBL_CTRL_ADDR_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	orl	4(%r12), %r15d
	movq	_GSWIP_PCE_TBL_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_gswip_switch_mask
	movl	24(%r12), %esi
	movq	_GSWIP_PCE_TBL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_gswip_switch_w
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_gswip_switch_r
	movq	_GSWIP_PCE_TBL_CTRL_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_GSWIP_PCE_TBL_CTRL_VLD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	%esi, %edx
	orl	%ecx, %edx
	movq	_GSWIP_PCE_TBL_CTRL_GMAP_MASK@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	%edi, %edx
	notl	%edx
	andl	%eax, %edx
	xorl	%eax, %eax
	cmpq	$0, 40(%r12)
	cmovel	%eax, %ecx
	cmpq	$0, 32(%r12)
	cmovel	%eax, %esi
	orl	%ecx, %esi
	orl	%edx, %esi
	movl	28(%r12), %eax
	shll	$7, %eax
	andl	%edi, %eax
	movq	_GSWIP_PCE_TBL_CTRL_BAS@GOTPCREL(%rip), %rbx
	orl	(%rbx), %esi
	orl	%eax, %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_gswip_switch_w
	movl	(%r13), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gswip_switch_r_timeout         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GSWIP_PCE_TBL_CTRL_OPMOD_KSWR,4,2 ## @GSWIP_PCE_TBL_CTRL_OPMOD_KSWR
	.comm	_GSWIP_PCE_TBL_CTRL_OPMOD_ADWR,4,2 ## @GSWIP_PCE_TBL_CTRL_OPMOD_ADWR
	.comm	_GSWIP_PCE_TBL_CTRL,4,2         ## @GSWIP_PCE_TBL_CTRL
	.comm	_GSWIP_PCE_TBL_CTRL_BAS,4,2     ## @GSWIP_PCE_TBL_CTRL_BAS
	.comm	_GSWIP_PCE_TBL_ADDR,4,2         ## @GSWIP_PCE_TBL_ADDR
	.comm	_GSWIP_PCE_TBL_CTRL_ADDR_MASK,4,2 ## @GSWIP_PCE_TBL_CTRL_ADDR_MASK
	.comm	_GSWIP_PCE_TBL_CTRL_OPMOD_MASK,4,2 ## @GSWIP_PCE_TBL_CTRL_OPMOD_MASK
	.comm	_GSWIP_PCE_TBL_MASK,4,2         ## @GSWIP_PCE_TBL_MASK
	.comm	_GSWIP_PCE_TBL_CTRL_TYPE,4,2    ## @GSWIP_PCE_TBL_CTRL_TYPE
	.comm	_GSWIP_PCE_TBL_CTRL_VLD,4,2     ## @GSWIP_PCE_TBL_CTRL_VLD
	.comm	_GSWIP_PCE_TBL_CTRL_GMAP_MASK,4,2 ## @GSWIP_PCE_TBL_CTRL_GMAP_MASK
	.no_dead_strip	_gswip_pce_table_entry_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gswip_pce_table_entry_write
_gswip_pce_table_entry_write:           ; @gswip_pce_table_entry_write
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GSWIP_PCE_TBL_CTRL_OPMOD_KSWR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GSWIP_PCE_TBL_CTRL_OPMOD_KSWR@GOTPAGEOFF]
	ldr	x9, [x1, #48]
Lloh2:
	adrp	x10, _GSWIP_PCE_TBL_CTRL_OPMOD_ADWR@GOTPAGE
Lloh3:
	ldr	x10, [x10, _GSWIP_PCE_TBL_CTRL_OPMOD_ADWR@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	ldr	w25, [x8]
Lloh4:
	adrp	x23, _GSWIP_PCE_TBL_CTRL@GOTPAGE
Lloh5:
	ldr	x23, [x23, _GSWIP_PCE_TBL_CTRL@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh6:
	adrp	x24, _GSWIP_PCE_TBL_CTRL_BAS@GOTPAGE
Lloh7:
	ldr	x24, [x24, _GSWIP_PCE_TBL_CTRL_BAS@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_gswip_switch_r_timeout
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w1, [x20]
Lloh8:
	adrp	x8, _GSWIP_PCE_TBL_ADDR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GSWIP_PCE_TBL_ADDR@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_gswip_switch_w
Lloh11:
	adrp	x26, _GSWIP_PCE_TBL_CTRL_ADDR_MASK@GOTPAGE
Lloh12:
	ldr	x26, [x26, _GSWIP_PCE_TBL_CTRL_ADDR_MASK@GOTPAGEOFF]
Lloh13:
	adrp	x27, _GSWIP_PCE_TBL_CTRL_OPMOD_MASK@GOTPAGE
Lloh14:
	ldr	x27, [x27, _GSWIP_PCE_TBL_CTRL_OPMOD_MASK@GOTPAGEOFF]
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w1, w9, w8
	ldr	w8, [x20, #4]
	orr	w2, w8, w25
	ldr	w3, [x23]
	mov	x0, x19
	bl	_gswip_switch_mask
	ldr	x0, [x20, #8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w22, [x8, x21, lsl #2]
	mov	x0, x21
	bl	_GSWIP_PCE_TBL_KEY
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_gswip_switch_w
	add	x21, x21, #1
	ldr	x0, [x20, #8]
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.lt	LBB0_4
LBB0_5:
	ldr	x0, [x20, #16]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x21, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	w22, [x8, x21, lsl #2]
	mov	x0, x21
	bl	_GSWIP_PCE_TBL_VAL
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_gswip_switch_w
	add	x21, x21, #1
	ldr	x0, [x20, #16]
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.lt	LBB0_7
LBB0_8:
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w1, w9, w8
	ldr	w8, [x20, #4]
	orr	w2, w8, w25
	ldr	w3, [x23]
	mov	x0, x19
	bl	_gswip_switch_mask
	ldr	w1, [x20, #24]
Lloh15:
	adrp	x8, _GSWIP_PCE_TBL_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GSWIP_PCE_TBL_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_gswip_switch_w
	ldr	w1, [x23]
	mov	x0, x19
	bl	_gswip_switch_r
Lloh18:
	adrp	x8, _GSWIP_PCE_TBL_CTRL_TYPE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GSWIP_PCE_TBL_CTRL_TYPE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _GSWIP_PCE_TBL_CTRL_VLD@GOTPAGE
Lloh22:
	ldr	x9, [x9, _GSWIP_PCE_TBL_CTRL_VLD@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _GSWIP_PCE_TBL_CTRL_GMAP_MASK@GOTPAGE
Lloh25:
	ldr	x10, [x10, _GSWIP_PCE_TBL_CTRL_GMAP_MASK@GOTPAGEOFF]
	orr	w11, w9, w8
Lloh26:
	ldr	w10, [x10]
	orr	w11, w11, w10
	bic	w11, w0, w11
	ldp	x13, x12, [x20, #32]
	cmp	x12, #0
	csel	w8, wzr, w8, eq
	orr	w8, w8, w11
	cmp	x13, #0
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
	ldr	w9, [x20, #28]
	and	w9, w10, w9, lsl #7
	ldr	w10, [x24]
	orr	w8, w8, w10
	orr	w1, w8, w9
	ldr	w2, [x23]
	mov	x0, x19
	bl	_gswip_switch_w
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_gswip_switch_r_timeout
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GSWIP_PCE_TBL_CTRL_OPMOD_KSWR,4,2 ; @GSWIP_PCE_TBL_CTRL_OPMOD_KSWR
	.comm	_GSWIP_PCE_TBL_CTRL_OPMOD_ADWR,4,2 ; @GSWIP_PCE_TBL_CTRL_OPMOD_ADWR
	.comm	_GSWIP_PCE_TBL_CTRL,4,2         ; @GSWIP_PCE_TBL_CTRL
	.comm	_GSWIP_PCE_TBL_CTRL_BAS,4,2     ; @GSWIP_PCE_TBL_CTRL_BAS
	.comm	_GSWIP_PCE_TBL_ADDR,4,2         ; @GSWIP_PCE_TBL_ADDR
	.comm	_GSWIP_PCE_TBL_CTRL_ADDR_MASK,4,2 ; @GSWIP_PCE_TBL_CTRL_ADDR_MASK
	.comm	_GSWIP_PCE_TBL_CTRL_OPMOD_MASK,4,2 ; @GSWIP_PCE_TBL_CTRL_OPMOD_MASK
	.comm	_GSWIP_PCE_TBL_MASK,4,2         ; @GSWIP_PCE_TBL_MASK
	.comm	_GSWIP_PCE_TBL_CTRL_TYPE,4,2    ; @GSWIP_PCE_TBL_CTRL_TYPE
	.comm	_GSWIP_PCE_TBL_CTRL_VLD,4,2     ; @GSWIP_PCE_TBL_CTRL_VLD
	.comm	_GSWIP_PCE_TBL_CTRL_GMAP_MASK,4,2 ; @GSWIP_PCE_TBL_CTRL_GMAP_MASK
	.no_dead_strip	_gswip_pce_table_entry_write
.subsections_via_symbols
