	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ckdist
_ckdist:                                ## @ckdist
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_isstdin
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_stdin@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	leaq	L_.str(%rip), %r14
	testl	%ebx, %ebx
	jne	LBB0_9
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_20
## %bb.3:
	movq	%rax, %r15
	testl	%ebx, %ebx
	jne	LBB0_9
LBB0_5:
	movq	_stdin@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_distfile
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
LBB0_7:
	movq	%r15, %rdi
	callq	_fgetc
	movl	%eax, %r12d
	movq	_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_13
## %bb.8:
	xorl	%eax, %eax
	cmpl	$80, %r12d
	movl	$129, %ebx
	cmovnel	%eax, %ebx
	movl	%r12d, %edi
	movq	%r15, %rsi
	callq	_ungetc
	cmpl	$77, %r12d
	je	LBB0_11
LBB0_9:
	cmpl	$129, %ebx
	je	LBB0_12
## %bb.10:
	cmpl	$128, %ebx
	jne	LBB0_13
LBB0_11:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_chkmd5
	jmp	LBB0_14
LBB0_13:
	movq	_E_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_report
	jmp	LBB0_14
LBB0_12:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_chkinf
LBB0_14:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_warn
LBB0_16:
	movq	_stdin@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_19
## %bb.17:
	movq	%r15, %rdi
	callq	_fclose
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	leaq	L_.str.2(%rip), %rsi
	movl	$2, %edi
	movq	%r14, %rdx
	callq	_err
LBB0_19:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	%r14, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fail                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(stdin)"

	.comm	_stdin,8,3                      ## @stdin
L_.str.1:                               ## @.str.1
	.asciz	"r"

	.comm	_EOF,4,2                        ## @EOF
	.comm	_E_UNKNOWN,4,2                  ## @E_UNKNOWN
L_.str.2:                               ## @.str.2
	.asciz	"%s"

	.no_dead_strip	_ckdist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ckdist
_ckdist:                                ; @ckdist
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	bl	_isstdin
Lloh0:
	adrp	x23, _stdin@GOTPAGE
Lloh1:
	ldr	x23, [x23, _stdin@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x20, [x23]
Lloh2:
	adrp	x19, l_.str@PAGE
Lloh3:
	add	x19, x19, l_.str@PAGEOFF
	cbnz	w21, LBB0_8
	b	LBB0_4
LBB0_2:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_fopen
	cbz	x0, LBB0_19
; %bb.3:
	mov	x20, x0
	cbnz	w21, LBB0_8
LBB0_4:
	ldr	x8, [x23]
	cmp	x20, x8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_distfile
	mov	x21, x0
	cbnz	w0, LBB0_8
LBB0_6:
	mov	x0, x20
	bl	_fgetc
Lloh6:
	adrp	x8, _EOF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_11
; %bb.7:
	mov	x22, x0
	mov	w8, #129
	cmp	w0, #80
	csel	w21, w8, wzr, eq
	mov	x1, x20
	bl	_ungetc
	cmp	w22, #77
	b.eq	LBB0_10
LBB0_8:
	cmp	w21, #129
	b.eq	LBB0_12
; %bb.9:
	cmp	w21, #128
	b.ne	LBB0_11
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_chkmd5
	b	LBB0_13
LBB0_11:
Lloh9:
	adrp	x8, _E_UNKNOWN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E_UNKNOWN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	bl	_report
	b	LBB0_13
LBB0_12:
	mov	x0, x20
	mov	x1, x19
	bl	_chkinf
LBB0_13:
	mov	x21, x0
	mov	x0, x20
	bl	_ferror
	cbz	x0, LBB0_15
; %bb.14:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_warn
LBB0_15:
	ldr	x8, [x23]
	cmp	x20, x8
	b.eq	LBB0_18
; %bb.16:
	mov	x0, x20
	bl	_fclose
	cbz	x0, LBB0_18
; %bb.17:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #2
	mov	x2, x19
	bl	_err
LBB0_18:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_19:
	mov	x0, x19
	mov	x1, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_fail
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(stdin)"

	.comm	_stdin,8,3                      ; @stdin
l_.str.1:                               ; @.str.1
	.asciz	"r"

	.comm	_EOF,4,2                        ; @EOF
	.comm	_E_UNKNOWN,4,2                  ; @E_UNKNOWN
l_.str.2:                               ; @.str.2
	.asciz	"%s"

	.no_dead_strip	_ckdist
.subsections_via_symbols
