	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_compact
_do_compact:                            ## @do_compact
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$3, %edi
	jl	LBB0_9
## %bb.1:
	movq	%rsi, %rbx
	movq	16(%rsi), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	16(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	16(%rbx), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	_MMAL_VC_COMPACT_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-12(%rbp), %rsi
	callq	_mmal_vc_compact
	movl	-12(%rbp), %esi
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_3
LBB0_2:
	movq	_MMAL_VC_COMPACT_AGGRESSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-12(%rbp), %rsi
	callq	_mmal_vc_compact
	movl	-12(%rbp), %esi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_3
LBB0_5:
	movq	_MMAL_VC_COMPACT_DISCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-12(%rbp), %rsi
	callq	_mmal_vc_compact
	movl	-12(%rbp), %esi
	leaq	L_.str.3(%rip), %rdi
LBB0_3:
	xorl	%eax, %eax
	callq	_printf
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_9:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	$1, %edi
	callq	_exit
LBB0_8:
	movq	16(%rbx), %rsi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"a"

	.comm	_MMAL_VC_COMPACT_AGGRESSIVE,4,2 ## @MMAL_VC_COMPACT_AGGRESSIVE
L_.str.1:                               ## @.str.1
	.asciz	"Triggered aggressive compaction on VC - duration %u us.\n"

L_.str.2:                               ## @.str.2
	.asciz	"d"

	.comm	_MMAL_VC_COMPACT_DISCARD,4,2    ## @MMAL_VC_COMPACT_DISCARD
L_.str.3:                               ## @.str.3
	.asciz	"Triggered discard compaction on VC - duration %u us.\n"

L_.str.4:                               ## @.str.4
	.asciz	"n"

	.comm	_MMAL_VC_COMPACT_NORMAL,4,2     ## @MMAL_VC_COMPACT_NORMAL
L_.str.5:                               ## @.str.5
	.asciz	"Triggered normal compaction on VC - duration %u us.\n"

L_.str.6:                               ## @.str.6
	.asciz	"Invalid memory compaction option %s\n."

L_str:                                  ## @str
	.asciz	"Invalid memory compaction arguments.  Need to specify 'a', 'n' or 't'."

	.no_dead_strip	_do_compact
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_compact
_do_compact:                            ; @do_compact
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cmp	w0, #3
	b.lt	LBB0_8
; %bb.1:
	mov	x19, x1
	ldr	x0, [x1, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x19, #16]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x0, [x19, #16]
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_9
; %bb.4:
Lloh6:
	adrp	x8, _MMAL_VC_COMPACT_NORMAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMAL_VC_COMPACT_NORMAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, sp, #12
	bl	_mmal_vc_compact
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh9:
	adrp	x0, l_.str.5@PAGE
Lloh10:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x8, _MMAL_VC_COMPACT_AGGRESSIVE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MMAL_VC_COMPACT_AGGRESSIVE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	add	x1, sp, #12
	bl	_mmal_vc_compact
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh16:
	adrp	x8, _MMAL_VC_COMPACT_DISCARD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MMAL_VC_COMPACT_DISCARD@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	add	x1, sp, #12
	bl	_mmal_vc_compact
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_7:
	bl	_printf
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_8:
Lloh21:
	adrp	x0, l_str@PAGE
Lloh22:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #1
	bl	_exit
LBB0_9:
	ldr	x8, [x19, #16]
	str	x8, [sp]
Lloh23:
	adrp	x0, l_.str.6@PAGE
Lloh24:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"a"

	.comm	_MMAL_VC_COMPACT_AGGRESSIVE,4,2 ; @MMAL_VC_COMPACT_AGGRESSIVE
l_.str.1:                               ; @.str.1
	.asciz	"Triggered aggressive compaction on VC - duration %u us.\n"

l_.str.2:                               ; @.str.2
	.asciz	"d"

	.comm	_MMAL_VC_COMPACT_DISCARD,4,2    ; @MMAL_VC_COMPACT_DISCARD
l_.str.3:                               ; @.str.3
	.asciz	"Triggered discard compaction on VC - duration %u us.\n"

l_.str.4:                               ; @.str.4
	.asciz	"n"

	.comm	_MMAL_VC_COMPACT_NORMAL,4,2     ; @MMAL_VC_COMPACT_NORMAL
l_.str.5:                               ; @.str.5
	.asciz	"Triggered normal compaction on VC - duration %u us.\n"

l_.str.6:                               ; @.str.6
	.asciz	"Invalid memory compaction option %s\n."

l_str:                                  ; @str
	.asciz	"Invalid memory compaction arguments.  Need to specify 'a', 'n' or 't'."

	.no_dead_strip	_do_compact
.subsections_via_symbols
