	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_midx_header
_write_midx_header:                     ## @write_midx_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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_MIDX_SIGNATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hashwrite_be32
	movq	_MIDX_VERSION@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -28(%rbp)
	movq	_MIDX_HASH_VERSION@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -27(%rbp)
	movb	%r15b, -26(%rbp)
	movb	$0, -25(%rbp)
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_hashwrite
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_hashwrite_be32
	movq	_MIDX_HEADER_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIDX_SIGNATURE,4,2             ## @MIDX_SIGNATURE
	.comm	_MIDX_VERSION,1,0               ## @MIDX_VERSION
	.comm	_MIDX_HASH_VERSION,1,0          ## @MIDX_HASH_VERSION
	.comm	_MIDX_HEADER_SIZE,8,3           ## @MIDX_HEADER_SIZE
	.no_dead_strip	_write_midx_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_midx_header
_write_midx_header:                     ; @write_midx_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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _MIDX_SIGNATURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIDX_SIGNATURE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_hashwrite_be32
Lloh3:
	adrp	x8, _MIDX_VERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIDX_VERSION@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #12]
Lloh5:
	adrp	x8, _MIDX_HASH_VERSION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MIDX_HASH_VERSION@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #13]
	strb	w20, [sp, #14]
	strb	wzr, [sp, #15]
	add	x1, sp, #12
	mov	x0, x21
	mov	w2, #4
	bl	_hashwrite
	mov	x0, x21
	mov	x1, x19
	bl	_hashwrite_be32
Lloh7:
	adrp	x8, _MIDX_HEADER_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MIDX_HEADER_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	x0, [x8]
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MIDX_SIGNATURE,4,2             ; @MIDX_SIGNATURE
	.comm	_MIDX_VERSION,1,0               ; @MIDX_VERSION
	.comm	_MIDX_HASH_VERSION,1,0          ; @MIDX_HASH_VERSION
	.comm	_MIDX_HEADER_SIZE,8,3           ; @MIDX_HEADER_SIZE
	.no_dead_strip	_write_midx_header
.subsections_via_symbols
