	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extract_one_file
_extract_one_file:                      ## @extract_one_file
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_22
## %bb.1:
	movl	$0, -36(%rbp)
	leaq	-36(%rbp), %rsi
	movq	%rax, %rdi
	callq	_extract
	movq	%rax, %r14
	movq	_no_profile@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%r14, %r14
	je	LBB0_19
## %bb.2:
	cmpq	%rax, %r14
	je	LBB0_19
## %bb.3:
	movq	%r12, %rdi
	movl	$46, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rbx
	subq	%r12, %rbx
	jmp	LBB0_6
LBB0_22:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	movq	%r12, %rdx
	callq	_fprintf
	xorl	%ebx, %ebx
	jmp	LBB0_23
LBB0_19:
	movq	_verbose@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	$0, (%rcx)
	je	LBB0_23
## %bb.20:
	cmpq	%rax, %r14
	jne	LBB0_23
## %bb.21:
	leaq	L_.str.8(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_23
LBB0_5:
	movq	%r12, %rdi
	callq	_strlen
	movq	%rax, %rbx
LBB0_6:
	leaq	5(%rbx), %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.7:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	%r15, %rdi
	addq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcpy
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_15
## %bb.8:
	movq	%rax, %rbx
	movl	-36(%rbp), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	movq	%rax, %rcx
	callq	_fwrite
	cmpl	$1, %eax
	jne	LBB0_13
## %bb.9:
	movq	%rbx, %rdi
	callq	_fflush
	testq	%rax, %rax
	jne	LBB0_13
## %bb.10:
	movq	%rbx, %rdi
	callq	_fclose
	testq	%rax, %rax
	je	LBB0_11
LBB0_13:
	movq	_stderr@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdx
	callq	_fprintf
	movq	%r15, %rdi
	callq	_remove
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movl	(%r12), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdx
	callq	_fprintf
	jmp	LBB0_16
LBB0_17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdx
	callq	_fprintf
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_15:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdx
	callq	_fprintf
	xorl	%ebx, %ebx
LBB0_16:
	movq	%r15, %rdi
	callq	_free
LBB0_18:
	movq	%r14, %rdi
	callq	_free
LBB0_23:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	$1, %ebx
	cmpq	$0, (%rax)
	je	LBB0_16
## %bb.12:
	leaq	L_.str.3(%rip), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rb"

	.comm	_no_profile,8,3                 ## @no_profile
L_.str.1:                               ## @.str.1
	.asciz	".icc"

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

	.comm	_verbose,8,3                    ## @verbose
L_.str.3:                               ## @.str.3
	.asciz	"%s -> %s\n"

	.comm	_stderr,4,2                     ## @stderr
L_.str.4:                               ## @.str.4
	.asciz	"%s: error writing profile\n"

L_.str.5:                               ## @.str.5
	.asciz	"%s: could not remove file\n"

L_.str.6:                               ## @.str.6
	.asciz	"%s: failed to open output file\n"

L_.str.7:                               ## @.str.7
	.asciz	"%s: OOM allocating string!\n"

L_.str.8:                               ## @.str.8
	.asciz	"%s has no profile\n"

L_.str.9:                               ## @.str.9
	.asciz	"%s: could not open file\n"

	.no_dead_strip	_extract_one_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extract_one_file
_extract_one_file:                      ; @extract_one_file
	.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	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_4
; %bb.1:
	str	wzr, [sp, #12]
	add	x1, sp, #12
	bl	_extract
	mov	x19, x0
Lloh2:
	adrp	x8, _no_profile@GOTPAGE
Lloh3:
	ldr	x8, [x8, _no_profile@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, #0
	ccmp	x0, x8, #4, ne
	b.ne	LBB0_6
; %bb.2:
Lloh5:
	adrp	x9, _verbose@GOTPAGE
Lloh6:
	ldr	x9, [x9, _verbose@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, #0
	ccmp	x19, x8, #0, ne
	b.ne	LBB0_5
; %bb.3:
Lloh8:
	adrp	x0, l_.str.8@PAGE
Lloh9:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	x1, x20
	bl	_printf
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.9@PAGE
Lloh14:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x2, x20
	bl	_fprintf
LBB0_5:
	mov	w20, #0
	b	LBB0_22
LBB0_6:
	mov	x0, x20
	mov	w1, #46
	bl	_strrchr
	cbz	x0, LBB0_8
; %bb.7:
	sub	x22, x0, x20
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_strlen
	mov	x22, x0
LBB0_9:
	add	x0, x22, #5
	bl	_malloc
	cbz	x0, LBB0_16
; %bb.10:
	mov	x21, x0
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	add	x0, x21, x22
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcpy
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_fopen
	cbz	x0, LBB0_17
; %bb.11:
	mov	x22, x0
	ldr	w1, [sp, #12]
	mov	x0, x19
	mov	w2, #1
	mov	x3, x22
	bl	_fwrite
	cmp	w0, #1
	b.ne	LBB0_14
; %bb.12:
	mov	x0, x22
	bl	_fflush
	cbnz	x0, LBB0_14
; %bb.13:
	mov	x0, x22
	bl	_fclose
	cbz	x0, LBB0_23
LBB0_14:
Lloh19:
	adrp	x20, _stderr@GOTPAGE
Lloh20:
	ldr	x20, [x20, _stderr@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x21
	bl	_fprintf
	mov	x0, x21
	bl	_remove
	cbz	x0, LBB0_19
; %bb.15:
	ldr	w0, [x20]
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_18
LBB0_16:
Lloh25:
	adrp	x8, _stderr@GOTPAGE
Lloh26:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str.7@PAGE
Lloh29:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x2, x20
	bl	_fprintf
	mov	w20, #0
	b	LBB0_21
LBB0_17:
Lloh30:
	adrp	x8, _stderr@GOTPAGE
Lloh31:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x1, l_.str.6@PAGE
Lloh34:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_18:
	mov	x2, x21
	bl	_fprintf
LBB0_19:
	mov	w20, #0
LBB0_20:
	mov	x0, x21
	bl	_free
LBB0_21:
	mov	x0, x19
	bl	_free
LBB0_22:
	mov	x0, x20
	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
LBB0_23:
Lloh35:
	adrp	x8, _verbose@GOTPAGE
Lloh36:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	cbz	x8, LBB0_25
; %bb.24:
	str	x21, [sp]
Lloh38:
	adrp	x0, l_.str.3@PAGE
Lloh39:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_printf
LBB0_25:
	mov	w20, #1
	b	LBB0_20
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rb"

	.comm	_no_profile,8,3                 ; @no_profile
l_.str.1:                               ; @.str.1
	.asciz	".icc"

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

	.comm	_verbose,8,3                    ; @verbose
l_.str.3:                               ; @.str.3
	.asciz	"%s -> %s\n"

	.comm	_stderr,4,2                     ; @stderr
l_.str.4:                               ; @.str.4
	.asciz	"%s: error writing profile\n"

l_.str.5:                               ; @.str.5
	.asciz	"%s: could not remove file\n"

l_.str.6:                               ; @.str.6
	.asciz	"%s: failed to open output file\n"

l_.str.7:                               ; @.str.7
	.asciz	"%s: OOM allocating string!\n"

l_.str.8:                               ; @.str.8
	.asciz	"%s has no profile\n"

l_.str.9:                               ; @.str.9
	.asciz	"%s: could not open file\n"

	.no_dead_strip	_extract_one_file
.subsections_via_symbols
