	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thr_pread
_thr_pread:                             ## @thr_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	cmpl	$17, %ecx
	jb	LBB0_2
## %bb.1:
	movq	_EOVERFLOW@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_2:
	movl	%r8d, %r15d
	movl	%ecx, %ebx
	movq	%rdx, %r14
	leaq	-48(%rbp), %rdx
	callq	_ps_pread
	movq	_PS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	cmpl	$128, %r15d
	je	LBB0_13
## %bb.5:
	cmpl	$129, %r15d
	jne	LBB0_18
## %bb.6:
	decl	%ebx
	cmpl	$7, %ebx
	ja	LBB0_18
## %bb.7:
	leaq	LJTI0_1(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_10:
	leaq	-48(%rbp), %rdi
	callq	_be16dec
	jmp	LBB0_9
LBB0_3:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_13:
	decl	%ebx
	cmpl	$7, %ebx
	ja	LBB0_18
## %bb.14:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_8:
	movl	-48(%rbp), %eax
	jmp	LBB0_9
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_22
## %bb.21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	-48(%rbp), %rdi
	callq	_be32dec
	jmp	LBB0_9
LBB0_12:
	leaq	-48(%rbp), %rdi
	callq	_be64dec
	jmp	LBB0_9
LBB0_15:
	leaq	-48(%rbp), %rdi
	callq	_le16dec
	jmp	LBB0_9
LBB0_16:
	leaq	-48(%rbp), %rdi
	callq	_le32dec
	jmp	LBB0_9
LBB0_17:
	leaq	-48(%rbp), %rdi
	callq	_le64dec
LBB0_9:
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_15
	.long	L0_0_set_18
	.long	L0_0_set_16
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_17
.set L0_1_set_8, LBB0_8-LJTI0_1
.set L0_1_set_10, LBB0_10-LJTI0_1
.set L0_1_set_18, LBB0_18-LJTI0_1
.set L0_1_set_11, LBB0_11-LJTI0_1
.set L0_1_set_12, LBB0_12-LJTI0_1
LJTI0_1:
	.long	L0_1_set_8
	.long	L0_1_set_10
	.long	L0_1_set_18
	.long	L0_1_set_11
	.long	L0_1_set_18
	.long	L0_1_set_18
	.long	L0_1_set_18
	.long	L0_1_set_12
	.end_data_region
                                        ## -- End function
	.comm	_EOVERFLOW,4,2                  ## @EOVERFLOW
	.comm	_PS_OK,8,3                      ## @PS_OK
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_thr_pread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thr_pread
_thr_pread:                             ; @thr_pread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cmp	w3, #17
	b.lo	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EOVERFLOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOVERFLOW@GOTPAGEOFF]
	b	LBB0_13
LBB0_2:
	mov	x21, x4
	mov	x20, x3
	mov	x19, x2
	add	x2, sp, #8
	bl	_ps_pread
Lloh5:
	adrp	x8, _PS_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PS_OK@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.3:
	cmp	w21, #128
	b.eq	LBB0_9
; %bb.4:
	cmp	w21, #129
	b.ne	LBB0_12
; %bb.5:
	sub	w8, w20, #1
	cmp	w8, #7
	b.hi	LBB0_12
; %bb.6:
Lloh8:
	adrp	x9, lJTI0_1@PAGE
Lloh9:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	add	x0, sp, #8
	bl	_be16dec
	b	LBB0_21
LBB0_8:
Lloh10:
	adrp	x8, _EFAULT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
	sub	w8, w20, #1
	cmp	w8, #7
	b.hi	LBB0_12
; %bb.10:
Lloh12:
	adrp	x9, lJTI0_0@PAGE
Lloh13:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_11
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_11:
	mov	w0, #0
	ldr	w8, [sp, #8]
	str	w8, [x19]
	b	LBB0_14
LBB0_12:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
LBB0_14:
	ldr	x8, [sp, #24]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.15:
	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
	add	sp, sp, #80
	ret
LBB0_16:
	add	x0, sp, #8
	bl	_be32dec
	b	LBB0_21
LBB0_17:
	add	x0, sp, #8
	bl	_be64dec
	b	LBB0_21
LBB0_18:
	add	x0, sp, #8
	bl	_le16dec
	b	LBB0_21
LBB0_19:
	add	x0, sp, #8
	bl	_le32dec
	b	LBB0_21
LBB0_20:
	add	x0, sp, #8
	bl	_le64dec
LBB0_21:
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_14
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_18-LBB0_11)>>2
	.byte	(LBB0_12-LBB0_11)>>2
	.byte	(LBB0_19-LBB0_11)>>2
	.byte	(LBB0_12-LBB0_11)>>2
	.byte	(LBB0_12-LBB0_11)>>2
	.byte	(LBB0_12-LBB0_11)>>2
	.byte	(LBB0_20-LBB0_11)>>2
lJTI0_1:
	.byte	(LBB0_11-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_16-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_17-LBB0_7)>>2
                                        ; -- End function
	.comm	_EOVERFLOW,4,2                  ; @EOVERFLOW
	.comm	_PS_OK,8,3                      ; @PS_OK
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_thr_pread
.subsections_via_symbols
