	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fixHeaderIndexEndian
_fixHeaderIndexEndian:                  ## @fixHeaderIndexEndian
	.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
	movq	_H_TRANSFER_ENCODING@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rcx
	movq	(%rcx), %rdx
	cmpq	$0, (%rdx,%rbx,8)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rcx), %rax
	movzbl	(%rax,%rbx,4), %ecx
	movzbl	1(%rax,%rbx,4), %edx
	movb	%dl, (%rax,%rbx,4)
	movb	%cl, 1(%rax,%rbx,4)
	movq	16(%r15), %rax
	leaq	(,%rbx,8), %rdi
	addq	(%rax), %rdi
	callq	_swapIntEndian
	movl	(%r14), %eax
	jmp	LBB0_4
LBB0_5:
	movq	(%r15), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	jle	LBB0_8
## %bb.6:
	movq	8(%r15), %rbx
	shlq	$5, %r14
	addq	%rbx, %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leaq	24(%rbx), %rdi
	callq	_swapIntEndian
	leaq	16(%rbx), %rdi
	callq	_swapIntEndian
	leaq	8(%rbx), %rdi
	callq	_swapIntEndian
	movq	%rbx, %rdi
	callq	_swapIntEndian
	addq	$32, %rbx
	cmpq	%r14, %rbx
	jb	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H_TRANSFER_ENCODING,4,2        ## @H_TRANSFER_ENCODING
	.no_dead_strip	_fixHeaderIndexEndian
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fixHeaderIndexEndian
_fixHeaderIndexEndian:                  ; @fixHeaderIndexEndian
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x20, _H_TRANSFER_ENCODING@GOTPAGE
Lloh1:
	ldr	x20, [x20, _H_TRANSFER_ENCODING@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x21, #0
	mov	x22, #0
	mov	x23, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	add	x22, x22, #8
	add	x21, x21, #4
	cmp	x23, w8, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	ldr	x10, [x9]
	ldr	x10, [x10, x22]
	cbz	x10, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x9, #8]
	add	x8, x8, x21
	ldrb	w9, [x8]
	ldrb	w10, [x8, #1]
	strb	w10, [x8]
	strb	w9, [x8, #1]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	add	x0, x8, x22
	bl	_swapIntEndian
	ldr	w8, [x20]
	b	LBB0_2
LBB0_5:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.6:
	ldr	x19, [x19, #8]
	add	x20, x19, x8, lsl #5
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x19, #24
	bl	_swapIntEndian
	add	x0, x19, #16
	bl	_swapIntEndian
	add	x0, x19, #8
	bl	_swapIntEndian
	mov	x0, x19
	bl	_swapIntEndian
	add	x19, x19, #32
	cmp	x19, x20
	b.lo	LBB0_7
LBB0_8:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_H_TRANSFER_ENCODING,4,2        ; @H_TRANSFER_ENCODING
	.no_dead_strip	_fixHeaderIndexEndian
.subsections_via_symbols
