	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_stream
_setup_stream:                          ## @setup_stream
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_BPRI_MED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_allocb
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_SO_READOPT@GOTPCREL(%rip), %rcx
	movq	_SO_HIWAT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	16(%rax), %rcx
	movq	_SO_LOWAT@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	movl	%edx, (%rcx)
	movq	_M_PARSE@GOTPCREL(%rip), %r15
	cmpl	%r14d, (%r15)
	movq	_RNORM@GOTPCREL(%rip), %rdx
	cmoveq	_RMSGD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 16(%rcx)
	movl	$4, %edx
	movl	$256, %esi                      ## imm = 0x100
	cmovel	%edx, %esi
	movl	%esi, 4(%rcx)
	movq	$0, 8(%rcx)
	movq	_M_SETOPTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	8(%rax), %rdx
	movl	%ecx, (%rdx)
	addl	$24, (%rax)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_putnext
	movq	%rbx, %rdi
	callq	_WR
	movl	(%rax), %edi
	movq	_M_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	%r14d, (%r15)
	jne	LBB0_2
## %bb.3:
	movq	_MC_SERVICEIMM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movq	_DD_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_parseprintf
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_MC_SERVICEDEF@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_putctl1                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BPRI_MED,4,2                   ## @BPRI_MED
	.comm	_SO_READOPT,4,2                 ## @SO_READOPT
	.comm	_SO_HIWAT,4,2                   ## @SO_HIWAT
	.comm	_SO_LOWAT,4,2                   ## @SO_LOWAT
	.comm	_M_PARSE,4,2                    ## @M_PARSE
	.comm	_RMSGD,4,2                      ## @RMSGD
	.comm	_RNORM,4,2                      ## @RNORM
	.comm	_M_SETOPTS,4,2                  ## @M_SETOPTS
	.comm	_M_CTL,4,2                      ## @M_CTL
	.comm	_MC_SERVICEIMM,4,2              ## @MC_SERVICEIMM
	.comm	_MC_SERVICEDEF,4,2              ## @MC_SERVICEDEF
	.comm	_DD_OPEN,4,2                    ## @DD_OPEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"parse: setup_stream - FAILED - no MEMORY for allocb\n"

	.no_dead_strip	_setup_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_stream
_setup_stream:                          ; @setup_stream
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _BPRI_MED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BPRI_MED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_allocb
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, x0
Lloh3:
	adrp	x8, _SO_READOPT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SO_READOPT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _SO_HIWAT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SO_HIWAT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _SO_LOWAT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SO_LOWAT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldp	x10, x9, [x0, #8]
	str	w8, [x9]
Lloh12:
	adrp	x21, _M_PARSE@GOTPAGE
Lloh13:
	ldr	x21, [x21, _M_PARSE@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh14:
	adrp	x11, _RMSGD@GOTPAGE
Lloh15:
	ldr	x11, [x11, _RMSGD@GOTPAGEOFF]
	mov	w12, #256
	mov	w13, #4
	cmp	w8, w19
	csel	w8, w13, w12, eq
Lloh16:
	adrp	x12, _RNORM@GOTPAGE
Lloh17:
	ldr	x12, [x12, _RNORM@GOTPAGEOFF]
	csel	x11, x11, x12, eq
	ldr	w11, [x11]
	str	w11, [x9, #16]
	str	w8, [x9, #4]
Lloh18:
	adrp	x8, _M_SETOPTS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _M_SETOPTS@GOTPAGEOFF]
	str	xzr, [x9, #8]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x10]
	ldr	w8, [x0]
	add	w8, w8, #24
	str	w8, [x0]
	mov	x0, x20
	bl	_putnext
	mov	x0, x20
	bl	_WR
	ldr	w0, [x0]
Lloh21:
	adrp	x8, _M_CTL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _M_CTL@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w8, [x21]
Lloh24:
	adrp	x9, _MC_SERVICEIMM@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MC_SERVICEIMM@GOTPAGEOFF]
Lloh26:
	adrp	x10, _MC_SERVICEDEF@GOTPAGE
Lloh27:
	ldr	x10, [x10, _MC_SERVICEDEF@GOTPAGEOFF]
	cmp	w8, w19
	csel	x8, x9, x10, eq
	ldr	w2, [x8]
	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
	b	_putctl1
LBB0_2:
Lloh28:
	adrp	x8, _DD_OPEN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DD_OPEN@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	bl	_parseprintf
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_BPRI_MED,4,2                   ; @BPRI_MED
	.comm	_SO_READOPT,4,2                 ; @SO_READOPT
	.comm	_SO_HIWAT,4,2                   ; @SO_HIWAT
	.comm	_SO_LOWAT,4,2                   ; @SO_LOWAT
	.comm	_M_PARSE,4,2                    ; @M_PARSE
	.comm	_RMSGD,4,2                      ; @RMSGD
	.comm	_RNORM,4,2                      ; @RNORM
	.comm	_M_SETOPTS,4,2                  ; @M_SETOPTS
	.comm	_M_CTL,4,2                      ; @M_CTL
	.comm	_MC_SERVICEIMM,4,2              ; @MC_SERVICEIMM
	.comm	_MC_SERVICEDEF,4,2              ; @MC_SERVICEDEF
	.comm	_DD_OPEN,4,2                    ; @DD_OPEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"parse: setup_stream - FAILED - no MEMORY for allocb\n"

	.no_dead_strip	_setup_stream
.subsections_via_symbols
