	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function monitor_wait_srec_ack
_monitor_wait_srec_ack:                 ## @monitor_wait_srec_ack
	.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	_current_monitor@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movq	_MO_SREC_ACK_PLUS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_readchar
	xorl	%ebx, %ebx
	cmpb	$43, %al
	sete	%bl
	jmp	LBB0_8
LBB0_2:
	movq	_MO_SREC_ACK_ROTATE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.3:
	movl	$1, %edi
	callq	_readchar
	xorl	%ebx, %ebx
	testb	%al, %al
	js	LBB0_8
## %bb.4:
	movl	$1, %edi
	callq	_readchar
	testb	%al, %al
	js	LBB0_8
## %bb.5:
	movl	$1, %edi
	callq	_readchar
	testb	%al, %al
	js	LBB0_8
## %bb.6:
	movl	$1, %edi
	callq	_readchar
	testb	%al, %al
	js	LBB0_8
LBB0_7:
	movl	$1, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current_monitor,8,3            ## @current_monitor
	.comm	_MO_SREC_ACK_PLUS,4,2           ## @MO_SREC_ACK_PLUS
	.comm	_timeout,4,2                    ## @timeout
	.comm	_MO_SREC_ACK_ROTATE,4,2         ## @MO_SREC_ACK_ROTATE
	.no_dead_strip	_monitor_wait_srec_ack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function monitor_wait_srec_ack
_monitor_wait_srec_ack:                 ; @monitor_wait_srec_ack
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _current_monitor@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current_monitor@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MO_SREC_ACK_PLUS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MO_SREC_ACK_PLUS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _timeout@GOTPAGE
Lloh7:
	ldr	x8, [x8, _timeout@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_readchar
	cmp	w0, #43
	cset	w0, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh9:
	adrp	x9, _MO_SREC_ACK_ROTATE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MO_SREC_ACK_ROTATE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.3:
	mov	w0, #1
	bl	_readchar
	tbnz	w0, #31, LBB0_8
; %bb.4:
	mov	w0, #1
	bl	_readchar
	tbnz	w0, #31, LBB0_8
; %bb.5:
	mov	w0, #1
	bl	_readchar
	tbnz	w0, #31, LBB0_8
; %bb.6:
	mov	w0, #1
	bl	_readchar
	tbnz	w0, #31, LBB0_8
LBB0_7:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	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	_current_monitor,8,3            ; @current_monitor
	.comm	_MO_SREC_ACK_PLUS,4,2           ; @MO_SREC_ACK_PLUS
	.comm	_timeout,4,2                    ; @timeout
	.comm	_MO_SREC_ACK_ROTATE,4,2         ; @MO_SREC_ACK_ROTATE
	.no_dead_strip	_monitor_wait_srec_ack
.subsections_via_symbols
