	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fix_header                     ## -- Begin function fix_header
	.p2align	4, 0x90
_fix_header:                            ## @fix_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	12(%rdi), %edi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movl	12(%r15), %r14d
	movq	_IMAGETAG_MAGIC1_TCOM@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_memcpy
	movl	8(%r15), %edi
	xorl	%esi, %esi
	movl	$74, %edx
	callq	_memset
	movl	4(%r15), %edi
	callq	_ntohl
	movq	_fake_data@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	%eax, %edi
	movl	$64, %edx
	callq	_crc32
	movl	%eax, %edi
	callq	_htonl
	movl	%eax, -28(%rbp)
	movl	4(%r15), %edi
	leaq	-28(%rbp), %rbx
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	_IMAGETAG_CRC_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	$236, %edx
	callq	_crc32
	movl	%eax, %edi
	callq	_htonl
	movl	%eax, -28(%rbp)
	movl	(%r15), %edi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcpy
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMAGETAG_MAGIC1_TCOM,8,3       ## @IMAGETAG_MAGIC1_TCOM
	.comm	_fake_data,8,3                  ## @fake_data
	.comm	_IMAGETAG_CRC_START,4,2         ## @IMAGETAG_CRC_START
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fix_header                     ; -- Begin function fix_header
	.p2align	2
_fix_header:                            ; @fix_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	w0, [x0, #12]
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	ldr	w20, [x19, #12]
Lloh0:
	adrp	x8, _IMAGETAG_MAGIC1_TCOM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IMAGETAG_MAGIC1_TCOM@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_memcpy
	ldr	w0, [x19, #8]
	mov	w1, #0
	mov	w2, #74
	bl	_memset
	ldr	w0, [x19, #4]
	bl	_ntohl
Lloh3:
	adrp	x8, _fake_data@GOTPAGE
Lloh4:
	ldr	x8, [x8, _fake_data@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	mov	w2, #64
	bl	_crc32
	bl	_htonl
	str	w0, [sp, #12]
	ldr	w0, [x19, #4]
	add	x1, sp, #12
	mov	w2, #4
	bl	_memcpy
Lloh6:
	adrp	x8, _IMAGETAG_CRC_START@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IMAGETAG_CRC_START@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x19
	mov	w2, #236
	bl	_crc32
	bl	_htonl
	str	w0, [sp, #12]
	ldr	w0, [x19]
	add	x1, sp, #12
	mov	w2, #4
	bl	_memcpy
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IMAGETAG_MAGIC1_TCOM,8,3       ; @IMAGETAG_MAGIC1_TCOM
	.comm	_fake_data,8,3                  ; @fake_data
	.comm	_IMAGETAG_CRC_START,4,2         ; @IMAGETAG_CRC_START
.subsections_via_symbols
