	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_binary_header
_read_binary_header:                    ## @read_binary_header
	.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
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	movq	_RITE_BINARY_IDENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movl	8(%rbx), %edi
	movq	_RITE_BINARY_IDENT_LIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_MRB_DUMP_INVALID_FILE_HEADER@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_1:
	xorl	%eax, %eax
	callq	_bigendian_p
	testq	%rax, %rax
	jne	LBB0_7
## %bb.2:
	movq	_FLAG_BYTEORDER_BIG@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	xorl	%eax, %eax
	callq	_bigendian_p
	testq	%rax, %rax
	jne	LBB0_6
LBB0_7:
	movq	_FLAG_BYTEORDER_NATIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_FLAG_BYTEORDER_LIL@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	orl	%eax, (%r12)
	testq	%r15, %r15
	je	LBB0_10
## %bb.9:
	movl	4(%rbx), %edi
	callq	_bin_to_uint16
	movl	%eax, (%r15)
LBB0_10:
	movl	(%rbx), %edi
	callq	_bin_to_uint32
	movq	%rax, (%r14)
	movq	_MRB_DUMP_OK@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RITE_BINARY_IDENT,4,2          ## @RITE_BINARY_IDENT
	.comm	_FLAG_BYTEORDER_NATIVE,4,2      ## @FLAG_BYTEORDER_NATIVE
	.comm	_FLAG_BYTEORDER_BIG,4,2         ## @FLAG_BYTEORDER_BIG
	.comm	_RITE_BINARY_IDENT_LIL,4,2      ## @RITE_BINARY_IDENT_LIL
	.comm	_FLAG_BYTEORDER_LIL,4,2         ## @FLAG_BYTEORDER_LIL
	.comm	_MRB_DUMP_INVALID_FILE_HEADER,4,2 ## @MRB_DUMP_INVALID_FILE_HEADER
	.comm	_MRB_DUMP_OK,4,2                ## @MRB_DUMP_OK
	.no_dead_strip	_read_binary_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_binary_header
_read_binary_header:                    ; @read_binary_header
	.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	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _RITE_BINARY_IDENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RITE_BINARY_IDENT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_memcmp
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x20, #8]
Lloh3:
	adrp	x8, _RITE_BINARY_IDENT_LIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RITE_BINARY_IDENT_LIL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_memcmp
	cbz	x0, LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _MRB_DUMP_INVALID_FILE_HEADER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MRB_DUMP_INVALID_FILE_HEADER@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
	bl	_bigendian_p
Lloh8:
	adrp	x8, _FLAG_BYTEORDER_NATIVE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FLAG_BYTEORDER_NATIVE@GOTPAGEOFF]
Lloh10:
	adrp	x9, _FLAG_BYTEORDER_BIG@GOTPAGE
Lloh11:
	ldr	x9, [x9, _FLAG_BYTEORDER_BIG@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	bl	_bigendian_p
Lloh12:
	adrp	x8, _FLAG_BYTEORDER_LIL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FLAG_BYTEORDER_LIL@GOTPAGEOFF]
Lloh14:
	adrp	x9, _FLAG_BYTEORDER_NATIVE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FLAG_BYTEORDER_NATIVE@GOTPAGEOFF]
LBB0_5:
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
	cbz	x21, LBB0_7
; %bb.6:
	ldr	w0, [x20, #4]
	bl	_bin_to_uint16
	str	w0, [x21]
LBB0_7:
	ldr	w0, [x20]
	bl	_bin_to_uint32
	str	x0, [x19]
Lloh16:
	adrp	x8, _MRB_DUMP_OK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MRB_DUMP_OK@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_RITE_BINARY_IDENT,4,2          ; @RITE_BINARY_IDENT
	.comm	_FLAG_BYTEORDER_NATIVE,4,2      ; @FLAG_BYTEORDER_NATIVE
	.comm	_FLAG_BYTEORDER_BIG,4,2         ; @FLAG_BYTEORDER_BIG
	.comm	_RITE_BINARY_IDENT_LIL,4,2      ; @RITE_BINARY_IDENT_LIL
	.comm	_FLAG_BYTEORDER_LIL,4,2         ; @FLAG_BYTEORDER_LIL
	.comm	_MRB_DUMP_INVALID_FILE_HEADER,4,2 ; @MRB_DUMP_INVALID_FILE_HEADER
	.comm	_MRB_DUMP_OK,4,2                ; @MRB_DUMP_OK
	.no_dead_strip	_read_binary_header
.subsections_via_symbols
