	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hermes_bap_pread
_hermes_bap_pread:                      ## @hermes_bap_pread
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rdi, %r15
	testl	%esi, %esi
	jne	LBB0_1
## %bb.2:
	movq	_HERMES_DATA0@GOTPCREL(%rip), %rax
	testl	$-2147483647, %ebx              ## imm = 0x80000001
	je	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_1:
	movq	_HERMES_DATA1@GOTPCREL(%rip), %rax
	testl	$-2147483647, %ebx              ## imm = 0x80000001
	jne	LBB0_4
LBB0_5:
	movl	(%rax), %r12d
	movq	%r15, %rdi
	movl	%r8d, %edx
	movl	%r9d, %ecx
	callq	_hermes_bap_seek
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	shrl	%ebx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_hermes_read_words
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HERMES_DATA1,4,2               ## @HERMES_DATA1
	.comm	_HERMES_DATA0,4,2               ## @HERMES_DATA0
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_hermes_bap_pread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hermes_bap_pread
_hermes_bap_pread:                      ; @hermes_bap_pread
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _HERMES_DATA1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HERMES_DATA1@GOTPAGEOFF]
Lloh2:
	adrp	x9, _HERMES_DATA0@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HERMES_DATA0@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x9, x8, eq
	tst	w3, #0x80000001
	b.eq	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
	mov	x20, x3
	mov	x19, x2
	mov	x21, x0
	ldr	w22, [x8]
	mov	x2, x4
	mov	x3, x5
	bl	_hermes_bap_seek
	cbnz	w0, LBB0_4
; %bb.3:
	lsr	w3, w20, #1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	bl	_hermes_read_words
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_HERMES_DATA1,4,2               ; @HERMES_DATA1
	.comm	_HERMES_DATA0,4,2               ; @HERMES_DATA0
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_hermes_bap_pread
.subsections_via_symbols
