	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_tbl
_get_tbl:                               ## @get_tbl
	.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
	cmpq	$0, 8(%rdi)
	jne	LBB0_9
## %bb.1:
	movq	%rdi, %r15
	cmpq	$0, 56(%rdi)
	je	LBB0_2
## %bb.5:
	leaq	16(%r15), %r14
	movq	%r14, %rdi
	callq	_zero_tbl
	movq	56(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_get_tbl
	leaq	16(%rbx), %rsi
	movq	%r14, %rdi
	callq	_sum_tbl
	movq	48(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_6
	jmp	LBB0_8
LBB0_2:
	movl	64(%r15), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_10
## %bb.3:
	movl	%eax, %r14d
	leaq	16(%r15), %rsi
	movl	%eax, %edi
	movl	$32, %edx
	callq	_read
	cmpl	$32, %eax
	jne	LBB0_11
## %bb.4:
	movq	40(%r15), %rdi
	callq	_be32toh
	movq	%rax, 40(%r15)
	movq	32(%r15), %rdi
	callq	_be32toh
	movq	%rax, 32(%r15)
	movq	24(%r15), %rdi
	callq	_be32toh
	movq	%rax, 24(%r15)
	movq	16(%r15), %rdi
	callq	_be32toh
	movq	%rax, 16(%r15)
	movl	%r14d, %edi
	callq	_close
LBB0_8:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	64(%r15), %edi
	callq	_perror
	movl	$1, %edi
	callq	_exit
LBB0_11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fortune: %s corrupted\n"

	.comm	_TRUE,8,3                       ## @TRUE
	.no_dead_strip	_get_tbl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_tbl
_get_tbl:                               ; @get_tbl
	.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
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #56]
	cbz	x8, LBB0_4
; %bb.2:
	add	x20, x19, #16
	mov	x0, x20
	bl	_zero_tbl
	ldr	x21, [x19, #56]
	cbz	x21, LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_get_tbl
	add	x1, x21, #16
	mov	x0, x20
	bl	_sum_tbl
	ldr	x21, [x21, #48]
	cbnz	x21, LBB0_3
	b	LBB0_7
LBB0_4:
	ldr	w0, [x19, #64]
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_open
	tbnz	w0, #31, LBB0_9
; %bb.5:
	mov	x20, x0
	add	x1, x19, #16
	mov	w2, #32
	bl	_read
	cmp	w0, #32
	b.ne	LBB0_10
; %bb.6:
	ldr	x0, [x19, #40]
	bl	_be32toh
	str	x0, [x19, #40]
	ldr	x0, [x19, #32]
	bl	_be32toh
	str	x0, [x19, #32]
	ldr	x0, [x19, #24]
	bl	_be32toh
	str	x0, [x19, #24]
	ldr	x0, [x19, #16]
	bl	_be32toh
	str	x0, [x19, #16]
	mov	x0, x20
	bl	_close
LBB0_7:
Lloh3:
	adrp	x8, _TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_8:
	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
LBB0_9:
	ldr	w0, [x19, #64]
	bl	_perror
	mov	w0, #1
	bl	_exit
LBB0_10:
Lloh6:
	adrp	x8, _stderr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x2, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fortune: %s corrupted\n"

	.comm	_TRUE,8,3                       ; @TRUE
	.no_dead_strip	_get_tbl
.subsections_via_symbols
