	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thr_pwrite
_thr_pwrite:                            ## @thr_pwrite
	.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_18
LBB0_2:
	movl	%ecx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	cmpl	$128, %r8d
	je	LBB0_9
## %bb.3:
	cmpl	$129, %r8d
	jne	LBB0_14
## %bb.4:
	leal	-1(%rbx), %eax
	cmpl	$7, %eax
	ja	LBB0_14
## %bb.5:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	leaq	-48(%rbp), %rdi
	movl	%edx, %esi
	callq	_be16enc
	jmp	LBB0_16
LBB0_9:
	leal	-1(%rbx), %eax
	cmpl	$7, %eax
	ja	LBB0_14
## %bb.10:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_15:
	movl	%edx, -48(%rbp)
	jmp	LBB0_16
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_7:
	leaq	-48(%rbp), %rdi
	movl	%edx, %esi
	callq	_be32enc
	jmp	LBB0_16
LBB0_8:
	leaq	-48(%rbp), %rdi
	movl	%edx, %esi
	callq	_be64enc
	jmp	LBB0_16
LBB0_11:
	leaq	-48(%rbp), %rdi
	movl	%edx, %esi
	callq	_le16enc
	jmp	LBB0_16
LBB0_12:
	leaq	-48(%rbp), %rdi
	movl	%edx, %esi
	callq	_le32enc
	jmp	LBB0_16
LBB0_13:
	leaq	-48(%rbp), %rdi
	movl	%edx, %esi
	callq	_le64enc
LBB0_16:
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %ecx
	callq	_ps_pwrite
	movq	%rax, %rcx
	movq	_PS_OK@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_19
## %bb.17:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_21
## %bb.20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_11
	.long	L0_0_set_14
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_13
.set L0_1_set_15, LBB0_15-LJTI0_1
.set L0_1_set_6, LBB0_6-LJTI0_1
.set L0_1_set_14, LBB0_14-LJTI0_1
.set L0_1_set_7, LBB0_7-LJTI0_1
.set L0_1_set_8, LBB0_8-LJTI0_1
LJTI0_1:
	.long	L0_1_set_15
	.long	L0_1_set_6
	.long	L0_1_set_14
	.long	L0_1_set_7
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_14
	.long	L0_1_set_8
	.end_data_region
                                        ## -- End function
	.comm	_EOVERFLOW,4,2                  ## @EOVERFLOW
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PS_OK,8,3                      ## @PS_OK
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_thr_pwrite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thr_pwrite
_thr_pwrite:                            ; @thr_pwrite
	.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]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_17
LBB0_2:
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	cmp	w4, #128
	b.eq	LBB0_7
; %bb.3:
	cmp	w4, #129
	b.ne	LBB0_10
; %bb.4:
	sub	w8, w19, #1
	cmp	w8, #7
	b.hi	LBB0_10
; %bb.5:
Lloh6:
	adrp	x9, lJTI0_1@PAGE
Lloh7:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	add	x0, sp, #8
	mov	x1, x2
	bl	_be16enc
	b	LBB0_16
LBB0_7:
	sub	w8, w19, #1
	cmp	w8, #7
	b.hi	LBB0_10
; %bb.8:
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_9
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_9:
	str	w2, [sp, #8]
	b	LBB0_16
LBB0_10:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_17
LBB0_11:
	add	x0, sp, #8
	mov	x1, x2
	bl	_be32enc
	b	LBB0_16
LBB0_12:
	add	x0, sp, #8
	mov	x1, x2
	bl	_be64enc
	b	LBB0_16
LBB0_13:
	add	x0, sp, #8
	mov	x1, x2
	bl	_le16enc
	b	LBB0_16
LBB0_14:
	add	x0, sp, #8
	mov	x1, x2
	bl	_le32enc
	b	LBB0_16
LBB0_15:
	add	x0, sp, #8
	mov	x1, x2
	bl	_le64enc
LBB0_16:
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	bl	_ps_pwrite
Lloh13:
	adrp	x8, _PS_OK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PS_OK@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _EFAULT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _EFAULT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	x0, x8
	csel	w0, wzr, w9, eq
LBB0_17:
	ldr	x8, [sp, #24]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	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_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_13-LBB0_9)>>2
	.byte	(LBB0_10-LBB0_9)>>2
	.byte	(LBB0_14-LBB0_9)>>2
	.byte	(LBB0_10-LBB0_9)>>2
	.byte	(LBB0_10-LBB0_9)>>2
	.byte	(LBB0_10-LBB0_9)>>2
	.byte	(LBB0_15-LBB0_9)>>2
lJTI0_1:
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
                                        ; -- End function
	.comm	_EOVERFLOW,4,2                  ; @EOVERFLOW
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PS_OK,8,3                      ; @PS_OK
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_thr_pwrite
.subsections_via_symbols
