	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ffs_cg_swap                    ## -- Begin function ffs_cg_swap
	.p2align	4, 0x90
_ffs_cg_swap:                           ## @ffs_cg_swap
	.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	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r15
	movl	(%rdi), %edi
	callq	_bswap32
	movl	%eax, (%r13)
	movl	4(%r15), %edi
	callq	_bswap32
	movl	%eax, 4(%r13)
	movl	8(%r15), %edi
	callq	_bswap32
	movl	%eax, 8(%r13)
	movl	12(%r15), %edi
	callq	_bswap32
	movl	%eax, 12(%r13)
	movq	112(%r15), %rdi
	callq	_bswap16
	movq	%rax, 112(%r13)
	movq	104(%r15), %rdi
	callq	_bswap16
	movq	%rax, 104(%r13)
	movl	16(%r15), %edi
	callq	_bswap32
	movl	%eax, 16(%r13)
	movl	84(%r15), %edi
	callq	_bswap32
	movl	%eax, 84(%r13)
	movl	88(%r15), %edi
	callq	_bswap32
	movl	%eax, 88(%r13)
	movl	92(%r15), %edi
	callq	_bswap32
	movl	%eax, 92(%r13)
	movl	96(%r15), %edi
	callq	_bswap32
	movl	%eax, 96(%r13)
	movl	20(%r15), %edi
	callq	_bswap32
	movl	%eax, 20(%r13)
	movl	24(%r15), %edi
	callq	_bswap32
	movl	%eax, 24(%r13)
	movl	28(%r15), %edi
	callq	_bswap32
	movl	%eax, 28(%r13)
	movq	_MAXFRAG@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_bswap32
	movq	32(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movl	40(%r15), %edi
	callq	_bswap32
	movl	%eax, 40(%r13)
	movl	44(%r15), %edi
	callq	_bswap32
	movl	%eax, 44(%r13)
	movl	48(%r15), %edi
	callq	_bswap32
	movl	%eax, 48(%r13)
	movl	52(%r15), %edi
	callq	_bswap32
	movl	%eax, 52(%r13)
	movl	56(%r15), %edi
	callq	_bswap32
	movl	%eax, 56(%r13)
	movl	60(%r15), %edi
	callq	_bswap32
	movl	%eax, 60(%r13)
	movl	64(%r15), %edi
	callq	_bswap32
	movl	%eax, 64(%r13)
	movl	68(%r15), %edi
	callq	_bswap32
	movl	%eax, 68(%r13)
	movl	72(%r15), %edi
	callq	_bswap32
	movl	%eax, 72(%r13)
	movl	76(%r15), %edi
	callq	_bswap32
	movl	%eax, 76(%r13)
	movl	80(%r15), %edi
	callq	_bswap64
	movl	%eax, 80(%r13)
	movq	(%r12), %rax
	movq	_FS_UFS2_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.4:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movslq	4(%r13), %rax
	movq	_CG_MAGIC@GOTPCREL(%rip), %rcx
	movl	40(%r13), %r12d
	cmpq	%rax, (%rcx)
	jne	LBB0_6
## %bb.5:
	movl	44(%r13), %ebx
	movl	60(%r13), %eax
	jmp	LBB0_7
LBB0_6:
	movl	%r12d, %edi
	callq	_bswap32
	movq	%rax, %r12
	movl	44(%r13), %edi
	callq	_bswap32
	movq	%rax, %rbx
	movl	60(%r13), %edi
	callq	_bswap32
LBB0_7:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.8:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movslq	%r12d, %rax
	leaq	(,%rax,4), %r12
	addq	%r13, %r12
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r15
	xorl	%r14d, %r14d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%r14,4), %edi
	callq	_bswap32
	movl	%eax, (%r12,%r14,4)
	incq	%r14
	movslq	8(%rbx), %rax
	cmpq	%rax, %r14
	jl	LBB0_9
## %bb.10:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_11:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	imull	12(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_14
## %bb.12:
	movslq	%ebx, %rax
	leaq	(,%rax,4), %r12
	addq	%r13, %r12
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%r14,8), %rdi
	callq	_bswap16
	movq	%rax, (%r12,%r14,8)
	incq	%r14
	movslq	8(%r15), %rax
	movslq	12(%r15), %rcx
	imulq	%rax, %rcx
	cmpq	%rcx, %r14
	jl	LBB0_13
LBB0_14:
	cmpl	$0, 16(%r15)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jle	LBB0_17
## %bb.15:
	movq	%r15, %r12
	movslq	-64(%rbp), %rax                 ## 4-byte Folded Reload
	leaq	4(,%rax,4), %r14
	addq	%r13, %r14
	leaq	(%rcx,%rax,4), %r15
	addq	$4, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rbx,4), %edi
	callq	_bswap32
	movl	%eax, (%r14,%rbx,4)
	movslq	16(%r12), %rax
	incq	%rbx
	cmpq	%rax, %rbx
	jl	LBB0_16
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXFRAG,4,2                    ## @MAXFRAG
	.comm	_FS_UFS2_MAGIC,8,3              ## @FS_UFS2_MAGIC
	.comm	_CG_MAGIC,8,3                   ## @CG_MAGIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ffs_cg_swap                    ; -- Begin function ffs_cg_swap
	.p2align	2
_ffs_cg_swap:                           ; @ffs_cg_swap
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_bswap32
	str	w0, [x21]
	ldr	w0, [x20, #4]
	bl	_bswap32
	str	w0, [x21, #4]
	ldr	w0, [x20, #8]
	bl	_bswap32
	str	w0, [x21, #8]
	ldr	w0, [x20, #12]
	bl	_bswap32
	str	w0, [x21, #12]
	ldr	x0, [x20, #112]
	bl	_bswap16
	str	x0, [x21, #112]
	ldr	x0, [x20, #104]
	bl	_bswap16
	str	x0, [x21, #104]
	ldr	w0, [x20, #16]
	bl	_bswap32
	str	w0, [x21, #16]
	ldr	w0, [x20, #84]
	bl	_bswap32
	str	w0, [x21, #84]
	ldr	w0, [x20, #88]
	bl	_bswap32
	str	w0, [x21, #88]
	ldr	w0, [x20, #92]
	bl	_bswap32
	str	w0, [x21, #92]
	ldr	w0, [x20, #96]
	bl	_bswap32
	str	w0, [x21, #96]
	ldr	w0, [x20, #20]
	bl	_bswap32
	str	w0, [x21, #20]
	ldr	w0, [x20, #24]
	bl	_bswap32
	str	w0, [x21, #24]
	ldr	w0, [x20, #28]
	bl	_bswap32
	str	w0, [x21, #28]
Lloh0:
	adrp	x22, _MAXFRAG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAXFRAG@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #32]
	lsl	x24, x23, #2
	ldr	w0, [x8, x24]
	bl	_bswap32
	ldr	x8, [x21, #32]
	str	w0, [x8, x24]
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	w0, [x20, #40]
	bl	_bswap32
	str	w0, [x21, #40]
	ldr	w0, [x20, #44]
	bl	_bswap32
	str	w0, [x21, #44]
	ldr	w0, [x20, #48]
	bl	_bswap32
	str	w0, [x21, #48]
	ldr	w0, [x20, #52]
	bl	_bswap32
	str	w0, [x21, #52]
	ldr	w0, [x20, #56]
	bl	_bswap32
	str	w0, [x21, #56]
	ldr	w0, [x20, #60]
	bl	_bswap32
	str	w0, [x21, #60]
	ldr	w0, [x20, #64]
	bl	_bswap32
	str	w0, [x21, #64]
	ldr	w0, [x20, #68]
	bl	_bswap32
	str	w0, [x21, #68]
	ldr	w0, [x20, #72]
	bl	_bswap32
	str	w0, [x21, #72]
	ldr	w0, [x20, #76]
	bl	_bswap32
	str	w0, [x21, #76]
	ldr	w0, [x20, #80]
	bl	_bswap64
	str	w0, [x21, #80]
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _FS_UFS2_MAGIC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FS_UFS2_MAGIC@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.4:
	ldrsw	x8, [x21, #4]
Lloh5:
	adrp	x9, _CG_MAGIC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CG_MAGIC@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	w24, [x21, #40]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldr	w23, [x21, #44]
	ldr	w22, [x21, #60]
	b	LBB0_7
LBB0_6:
	mov	x0, x24
	bl	_bswap32
	mov	x24, x0
	ldr	w0, [x21, #44]
	bl	_bswap32
	mov	x23, x0
	ldr	w0, [x21, #60]
	bl	_bswap32
	mov	x22, x0
LBB0_7:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x25, #0
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	sxtw	x8, w24
	lsl	x8, x8, #2
	add	x24, x21, x8
	add	x26, x20, x8
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x27, x25, #2
	ldr	w0, [x26, x27]
	bl	_bswap32
	str	w0, [x24, x27]
	add	x25, x25, #1
	ldrsw	x8, [x19, #8]
	cmp	x25, x8
	b.lt	LBB0_9
LBB0_10:
	ldr	w9, [x19, #12]
	mul	w8, w9, w8
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.11:
	mov	x24, #0
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	sxtw	x8, w23
	lsl	x8, x8, #2
	add	x23, x21, x8
	add	x25, x20, x8
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	lsl	x26, x24, #3
	ldr	x0, [x25, x26]
	bl	_bswap16
	str	x0, [x23, x26]
	add	x24, x24, #1
	ldpsw	x8, x9, [x19, #8]
	mul	x8, x9, x8
	cmp	x24, x8
	b.lt	LBB0_12
LBB0_13:
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.14:
	mov	x23, #0
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	sxtw	x8, w22
	lsl	x8, x8, #2
	add	x8, x8, #4
	add	x21, x21, x8
	add	x20, x20, x8
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	lsl	x22, x23, #2
	ldr	w0, [x20, x22]
	bl	_bswap32
	str	w0, [x21, x22]
	ldrsw	x8, [x19, #16]
	add	x23, x23, #1
	cmp	x23, x8
	b.lt	LBB0_15
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXFRAG,4,2                    ; @MAXFRAG
	.comm	_FS_UFS2_MAGIC,8,3              ; @FS_UFS2_MAGIC
	.comm	_CG_MAGIC,8,3                   ; @CG_MAGIC
.subsections_via_symbols
