	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___apei_exec_write_register     ## -- Begin function __apei_exec_write_register
	.p2align	4, 0x90
___apei_exec_write_register:            ## @__apei_exec_write_register
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	andl	(%rdi), %r15d
	leaq	8(%rdi), %r14
	movb	8(%rdi), %cl
	shll	%cl, %r15d
	movq	_APEI_EXEC_PRESERVE_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rdi)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movl	$0, -28(%rbp)
	leaq	-28(%rbp), %rdi
	movq	%r14, %rsi
	callq	_apei_read
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	(%rbx), %eax
	movb	8(%rbx), %cl
	shll	%cl, %eax
	notl	%eax
	andl	-28(%rbp), %eax
	orl	%eax, %r15d
LBB0_3:
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_apei_write
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APEI_EXEC_PRESERVE_REGISTER,4,2 ## @APEI_EXEC_PRESERVE_REGISTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___apei_exec_write_register     ; -- Begin function __apei_exec_write_register
	.p2align	2
___apei_exec_write_register:            ; @__apei_exec_write_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	w8, [x19, #8]!
	ldp	w9, w10, [x0]
	and	w9, w9, w1
	lsl	w20, w9, w8
Lloh0:
	adrp	x8, _APEI_EXEC_PRESERVE_REGISTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APEI_EXEC_PRESERVE_REGISTER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w10
	b.eq	LBB0_3
; %bb.1:
	mov	x21, x0
	str	wzr, [sp, #12]
	add	x0, sp, #12
	mov	x1, x19
	bl	_apei_read
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w8, [x21]
	ldr	w9, [x21, #8]
	lsl	w8, w8, w9
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
	orr	w20, w8, w20
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_apei_write
LBB0_4:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_APEI_EXEC_PRESERVE_REGISTER,4,2 ; @APEI_EXEC_PRESERVE_REGISTER
.subsections_via_symbols
