	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function r_bin_fatmach0_init
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_r_bin_fatmach0_init:                   ## @r_bin_fatmach0_init
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	16(%rdi), %edi
	xorl	%r14d, %r14d
	leaq	-64(%rbp), %rdx
	xorl	%esi, %esi
	movl	$4, %ecx
	callq	_r_buf_read_at
	cmpl	$4, %eax
	jne	LBB0_1
## %bb.2:
	leaq	-64(%rbp), %rdi
	callq	_r_read_be32
	movq	%rax, 32(%rbx)
	leaq	-48(%rbp), %rdi
	callq	_r_read_be32
	movl	%eax, 24(%rbx)
	movl	%eax, (%rbx)
	movslq	%eax, %rcx
	leaq	4(,%rcx,4), %rdx
	movslq	4(%rbx), %rsi
	cmpq	%rsi, %rdx
	ja	LBB0_15
## %bb.3:
	movq	32(%rbx), %rdx
	movq	_FAT_MAGIC@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_6
## %bb.4:
	leaq	(,%rcx,4), %rdi
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.5:
	jle	LBB0_6
## %bb.7:
	cmpl	%eax, %edi
	jl	LBB0_15
## %bb.8:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_malloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_17
## %bb.9:
	movl	$1, %r14d
	cmpl	$0, (%rbx)
	jle	LBB0_15
## %bb.10:
	movl	$8, %r14d
	xorl	%r13d, %r13d
	leaq	-80(%rbp), %r12
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movl	16(%rbx), %edi
	movl	%r14d, %esi
	movq	%r12, %rdx
	movl	$4, %ecx
	callq	_r_buf_read_at
	cmpl	$4, %eax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r12, %rdi
	callq	_r_read_be32
	movq	8(%rbx), %rcx
	movq	%rax, 32(%rcx,%r13)
	leaq	-64(%rbp), %rdi
	callq	_r_read_be32
	movq	8(%rbx), %rcx
	movq	%rax, 24(%rcx,%r13)
	leaq	-48(%rbp), %rdi
	callq	_r_read_be32
	movq	8(%rbx), %rcx
	movq	%rax, 16(%rcx,%r13)
	leaq	-32(%rbp), %rdi
	callq	_r_read_be32
	movq	8(%rbx), %rcx
	movq	%rax, 8(%rcx,%r13)
	leaq	-16(%rbp), %rdi
	callq	_r_read_be32
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx,%r13)
	incq	%r15
	movslq	(%rbx), %rax
	addl	$4, %r14d
	addq	$40, %r13
	cmpq	%rax, %r15
	jl	LBB0_11
## %bb.14:
	movl	$1, %r14d
	jmp	LBB0_15
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_eprintf
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.16:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	jmp	LBB0_15
LBB0_17:
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	jmp	LBB0_15
LBB0_12:
	leaq	L_.str.3(%rip), %rdi
	callq	_perror
	movq	8(%rbx), %rdi
	callq	_R_FREE
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read (fat_header)"

	.comm	_FAT_MAGIC,8,3                  ## @FAT_MAGIC
L_.str.1:                               ## @.str.1
	.asciz	"Endian FAT_MAGIC failed (?)\n"

L_.str.2:                               ## @.str.2
	.asciz	"malloc (fat_arch)"

L_.str.3:                               ## @.str.3
	.asciz	"read (fat_arch)"

	.no_dead_strip	_r_bin_fatmach0_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_bin_fatmach0_init
_r_bin_fatmach0_init:                   ; @r_bin_fatmach0_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	stp	xzr, xzr, [sp, #24]
	ldr	w0, [x0, #16]
	add	x20, sp, #24
	add	x2, sp, #24
	mov	w1, #0
	mov	w3, #4
	bl	_r_buf_read_at
	cmp	w0, #4
	b.ne	LBB0_11
; %bb.1:
	add	x0, sp, #24
	bl	_r_read_be32
	str	x0, [x19, #32]
	add	x0, x20, #16
	bl	_r_read_be32
	str	w0, [x19, #24]
	str	w0, [x19]
	sbfiz	x8, x0, #2, #32
	add	x8, x8, #4
	ldrsw	x9, [x19, #4]
	cmp	x8, x9
	b.hi	LBB0_13
; %bb.2:
	ldr	x8, [x19, #32]
Lloh3:
	adrp	x9, _FAT_MAGIC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FAT_MAGIC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w0, #0, #4, eq
	ccmp	w0, #0, #4, ne
	b.gt	LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_eprintf
	b	LBB0_13
LBB0_4:
	lsl	x8, x0, #32
	lsr	x8, x8, #30
	cmp	w8, w0
	b.lt	LBB0_13
; %bb.5:
	mov	x0, x8
	bl	_malloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_16
; %bb.6:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x25, #0
	mov	x26, #0
	add	x8, sp, #8
	add	x20, x8, #16
	add	x21, x8, #32
	add	x22, x8, #48
	add	x23, x8, #64
	mov	w24, #8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	stp	xzr, xzr, [sp, #8]
	ldr	w0, [x19, #16]
	add	x2, sp, #8
	mov	x1, x24
	mov	w3, #4
	bl	_r_buf_read_at
	cmp	w0, #4
	b.ne	LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x0, sp, #8
	bl	_r_read_be32
	ldr	x8, [x19, #8]
	add	x8, x8, x25
	str	x0, [x8, #32]
	mov	x0, x20
	bl	_r_read_be32
	ldr	x8, [x19, #8]
	add	x8, x8, x25
	str	x0, [x8, #24]
	mov	x0, x21
	bl	_r_read_be32
	ldr	x8, [x19, #8]
	add	x8, x8, x25
	str	x0, [x8, #16]
	mov	x0, x22
	bl	_r_read_be32
	ldr	x8, [x19, #8]
	add	x8, x8, x25
	str	x0, [x8, #8]
	mov	x0, x23
	bl	_r_read_be32
	ldr	x8, [x19, #8]
	str	x0, [x8, x25]
	add	x26, x26, #1
	ldrsw	x8, [x19]
	add	w24, w24, #4
	add	x25, x25, #40
	cmp	x26, x8
	b.lt	LBB0_8
LBB0_10:
	mov	w0, #1
	b	LBB0_14
LBB0_11:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
LBB0_12:
	bl	_perror
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldr	x8, [sp, #40]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.15:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_16:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_17:
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_perror
	ldr	x0, [x19, #8]
	bl	_R_FREE
	b	LBB0_13
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read (fat_header)"

	.comm	_FAT_MAGIC,8,3                  ; @FAT_MAGIC
l_.str.1:                               ; @.str.1
	.asciz	"Endian FAT_MAGIC failed (?)\n"

l_.str.2:                               ; @.str.2
	.asciz	"malloc (fat_arch)"

l_.str.3:                               ; @.str.3
	.asciz	"read (fat_arch)"

	.no_dead_strip	_r_bin_fatmach0_init
.subsections_via_symbols
