	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__sread                         ## -- Begin function _sread
	.p2align	4, 0x90
__sread:                                ## @_sread
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	callq	*(%rbx)
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movl	8(%rbx), %ecx
	movq	___SOFF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, %edx
	je	LBB0_7
## %bb.2:
	movl	12(%rbx), %esi
	movq	_OFF_MAX@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	subl	%eax, %edi
	cmpl	%edi, %esi
	jle	LBB0_3
## %bb.4:
	notl	%edx
	andl	%edx, %ecx
	movl	%ecx, 8(%rbx)
	jmp	LBB0_7
LBB0_5:
	jns	LBB0_7
## %bb.6:
	movq	___SOFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, 8(%rbx)
	jmp	LBB0_7
LBB0_3:
	addl	%eax, %esi
	movl	%esi, 12(%rbx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___SOFF,4,2                     ## @__SOFF
	.comm	_OFF_MAX,4,2                    ## @OFF_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__sread                         ; -- Begin function _sread
	.p2align	2
__sread:                                ; @_sread
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w0, [x0, #16]
	blr	x8
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	w8, [x19, #8]
Lloh0:
	adrp	x9, ___SOFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___SOFF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.2:
	ldr	w10, [x19, #12]
Lloh3:
	adrp	x11, _OFF_MAX@GOTPAGE
Lloh4:
	ldr	x11, [x11, _OFF_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	sub	w11, w11, w0
	cmp	w10, w11
	b.le	LBB0_7
; %bb.3:
	bic	w8, w8, w9
	b	LBB0_6
LBB0_4:
	tbz	w0, #31, LBB0_8
; %bb.5:
Lloh6:
	adrp	x8, ___SOFF@GOTPAGE
Lloh7:
	ldr	x8, [x8, ___SOFF@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
LBB0_6:
	str	w8, [x19, #8]
	b	LBB0_8
LBB0_7:
	add	w8, w10, w0
	str	w8, [x19, #12]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	___SOFF,4,2                     ; @__SOFF
	.comm	_OFF_MAX,4,2                    ; @OFF_MAX
.subsections_via_symbols
