	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pega_int_read
_pega_int_read:                         ## @pega_int_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	movl	%esi, %edx
	movq	_ACPI_ALLOCATE_BUFFER@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	$0, -24(%rbp)
	movl	$0, -16(%rbp)
	movl	(%rdi), %edi
	movq	_METHOD_PEGA_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rcx
	callq	_write_acpi_int_ret
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%rax), %rax
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ## @ACPI_ALLOCATE_BUFFER
	.comm	_METHOD_PEGA_READ,4,2           ## @METHOD_PEGA_READ
	.comm	_ACPI_TYPE_INTEGER,8,3          ## @ACPI_TYPE_INTEGER
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_pega_int_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pega_int_read
_pega_int_read:                         ; @pega_int_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x2
	mov	x2, x1
Lloh0:
	adrp	x8, _ACPI_ALLOCATE_BUFFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_ALLOCATE_BUFFER@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	stp	x8, xzr, [sp, #8]
	str	wzr, [sp, #24]
	ldr	w0, [x0]
Lloh3:
	adrp	x8, _METHOD_PEGA_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _METHOD_PEGA_READ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #8
	bl	_write_acpi_int_ret
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ; @ACPI_ALLOCATE_BUFFER
	.comm	_METHOD_PEGA_READ,4,2           ; @METHOD_PEGA_READ
	.comm	_ACPI_TYPE_INTEGER,8,3          ; @ACPI_TYPE_INTEGER
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_pega_int_read
.subsections_via_symbols
