	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___swsetup                      ## -- Begin function __swsetup
	.p2align	4, 0x90
___swsetup:                             ## @__swsetup
	.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
	movq	%rdi, %rbx
	movq	___sdidinit@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	___sinit
LBB0_2:
	movl	(%rbx), %ecx
	movq	___SWR@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%ecx, %eax
	je	LBB0_3
## %bb.10:
	cmpq	$0, 16(%rbx)
	jne	LBB0_12
LBB0_11:
	movq	%rbx, %rdi
	callq	___smakebuf
	movl	(%rbx), %ecx
LBB0_12:
	movq	___SLBF@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_14
## %bb.13:
	movq	$0, 24(%rbx)
	xorl	%eax, %eax
	movq	8(%rbx), %rcx
	xorl	%edx, %edx
	subq	%rcx, %rdx
	movq	%rdx, 32(%rbx)
	jmp	LBB0_18
LBB0_3:
	movq	___SRW@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_4
## %bb.5:
	movq	___SRD@GOTPCREL(%rip), %r15
	testl	%ecx, (%r15)
	je	LBB0_9
## %bb.6:
	movq	%rbx, %rdi
	callq	_HASUB
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_FREEUB
LBB0_8:
	movq	___SEOF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	(%r15), %ecx
	notl	%ecx
	andl	(%rbx), %ecx
	movl	%ecx, (%rbx)
	movq	$0, 48(%rbx)
	movq	16(%rbx), %rax
	movq	%rax, 40(%rbx)
	movl	(%r14), %eax
LBB0_9:
	orl	%eax, %ecx
	movl	%ecx, (%rbx)
	cmpq	$0, 16(%rbx)
	jne	LBB0_12
	jmp	LBB0_11
LBB0_14:
	movq	___SNBF@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	testl	%ecx, (%rdx)
	je	LBB0_16
## %bb.15:
	xorl	%ecx, %ecx
	jmp	LBB0_17
LBB0_4:
	movq	_EBADF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	___SERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_18
LBB0_16:
	movq	8(%rbx), %rcx
LBB0_17:
	movq	%rcx, 24(%rbx)
LBB0_18:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___sdidinit,4,2                 ## @__sdidinit
	.comm	___SWR,4,2                      ## @__SWR
	.comm	___SRW,4,2                      ## @__SRW
	.comm	_EBADF,4,2                      ## @EBADF
	.comm	_errno,4,2                      ## @errno
	.comm	___SERR,4,2                     ## @__SERR
	.comm	_EOF,4,2                        ## @EOF
	.comm	___SRD,4,2                      ## @__SRD
	.comm	___SEOF,4,2                     ## @__SEOF
	.comm	___SLBF,4,2                     ## @__SLBF
	.comm	___SNBF,4,2                     ## @__SNBF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___swsetup                      ; -- Begin function __swsetup
	.p2align	2
___swsetup:                             ; @__swsetup
	.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, x0
Lloh0:
	adrp	x8, ___sdidinit@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___sdidinit@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
	bl	___sinit
LBB0_2:
	ldr	w8, [x19]
Lloh3:
	adrp	x20, ___SWR@GOTPAGE
Lloh4:
	ldr	x20, [x20, ___SWR@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.3:
	ldr	x9, [x19, #16]
	cbnz	x9, LBB0_5
LBB0_4:
	mov	x0, x19
	bl	___smakebuf
	ldr	w8, [x19]
LBB0_5:
Lloh5:
	adrp	x9, ___SLBF@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___SLBF@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.6:
	mov	w0, #0
	ldr	x8, [x19, #8]
	neg	x8, x8
	stp	xzr, x8, [x19, #24]
	b	LBB0_18
LBB0_7:
Lloh8:
	adrp	x10, ___SRW@GOTPAGE
Lloh9:
	ldr	x10, [x10, ___SRW@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_15
; %bb.8:
Lloh11:
	adrp	x21, ___SRD@GOTPAGE
Lloh12:
	ldr	x21, [x21, ___SRD@GOTPAGEOFF]
	ldr	w10, [x21]
	tst	w10, w8
	b.eq	LBB0_12
; %bb.9:
	mov	x0, x19
	bl	_HASUB
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_FREEUB
LBB0_11:
	ldr	w8, [x21]
Lloh13:
	adrp	x9, ___SEOF@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___SEOF@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	ldr	x9, [x19, #16]
	stp	x9, xzr, [x19, #40]
	ldr	w9, [x20]
LBB0_12:
	orr	w8, w8, w9
	str	w8, [x19]
	ldr	x9, [x19, #16]
	cbnz	x9, LBB0_5
	b	LBB0_4
LBB0_13:
Lloh16:
	adrp	x9, ___SNBF@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___SNBF@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.14:
	mov	x8, #0
	b	LBB0_17
LBB0_15:
Lloh19:
	adrp	x8, _EBADF@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _errno@GOTPAGE
Lloh23:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh24:
	str	w8, [x9]
Lloh25:
	adrp	x8, ___SERR@GOTPAGE
Lloh26:
	ldr	x8, [x8, ___SERR@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh28:
	adrp	x8, _EOF@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	b	LBB0_18
LBB0_16:
	ldr	x8, [x19, #8]
LBB0_17:
	mov	w0, #0
	str	x8, [x19, #24]
LBB0_18:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	___sdidinit,4,2                 ; @__sdidinit
	.comm	___SWR,4,2                      ; @__SWR
	.comm	___SRW,4,2                      ; @__SRW
	.comm	_EBADF,4,2                      ; @EBADF
	.comm	_errno,4,2                      ; @errno
	.comm	___SERR,4,2                     ; @__SERR
	.comm	_EOF,4,2                        ; @EOF
	.comm	___SRD,4,2                      ; @__SRD
	.comm	___SEOF,4,2                     ; @__SEOF
	.comm	___SLBF,4,2                     ; @__SLBF
	.comm	___SNBF,4,2                     ; @__SNBF
.subsections_via_symbols
