	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apply_specfile                 ## -- Begin function apply_specfile
	.p2align	4, 0x90
_apply_specfile:                        ## @apply_specfile
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r13
	xorl	%edi, %edi
	testq	%r13, %r13
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%r12, %r12
	setne	%dil
	callq	_assert
	movq	_debug@GOTPCREL(%rip), %rax
	movq	_DEBUG_APPLY_SPECFILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_printf
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_fopen
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movq	%r13, %rdx
	callq	_err
LBB0_4:
	callq	_TIMER_START
	movq	%r14, %rdi
	callq	_spec
	movq	%rax, %rbx
	leaq	L_.str.3(%rip), %rsi
	callq	_TIMER_RESULTS
	movq	%r14, %rdi
	callq	_fclose
	movq	_EOF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	movq	%r13, %rdx
	callq	_err
LBB0_6:
	testq	%rbx, %rbx
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	movq	%r13, %rdx
	callq	_errx
LBB0_8:
	movl	8(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movq	(%rbx), %rax
	movq	_F_DIR@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_apply_specdir
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free_nodes                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.comm	_DEBUG_APPLY_SPECFILE,4,2       ## @DEBUG_APPLY_SPECFILE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"apply_specfile: %s, %s %p\n"

L_.str.1:                               ## @.str.1
	.asciz	"r"

L_.str.2:                               ## @.str.2
	.asciz	"Can't open `%s'"

L_.str.3:                               ## @.str.3
	.asciz	"spec"

	.comm	_EOF,8,3                        ## @EOF
L_.str.4:                               ## @.str.4
	.asciz	"Can't close `%s'"

L_.str.5:                               ## @.str.5
	.asciz	"Specfile `%s' did not contain a tree"

L_.str.6:                               ## @.str.6
	.asciz	"."

	.comm	_F_DIR,8,3                      ## @F_DIR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apply_specfile                 ; -- Begin function apply_specfile
	.p2align	2
_apply_specfile:                        ; @apply_specfile
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	cmp	x20, #0
	cset	w0, ne
	bl	_assert
Lloh0:
	adrp	x8, _debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DEBUG_APPLY_SPECFILE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DEBUG_APPLY_SPECFILE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_printf
LBB0_2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_fopen
	mov	x24, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x22
	bl	_err
LBB0_4:
	mov	x0, #0
	bl	_TIMER_START
	mov	x0, x24
	bl	_spec
	mov	x23, x0
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, #0
	bl	_TIMER_RESULTS
	mov	x0, x24
	bl	_fclose
Lloh14:
	adrp	x8, _EOF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.5:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	mov	x2, x22
	bl	_err
LBB0_6:
	cbnz	x23, LBB0_8
; %bb.7:
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	mov	x2, x22
	bl	_errx
LBB0_8:
	ldr	w0, [x23, #8]
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_strcmp
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x23]
Lloh23:
	adrp	x9, _F_DIR@GOTPAGE
Lloh24:
	ldr	x9, [x9, _F_DIR@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	mov	x3, x19
	bl	_apply_specdir
	mov	x0, x23
	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
	b	_free_nodes
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.comm	_DEBUG_APPLY_SPECFILE,4,2       ; @DEBUG_APPLY_SPECFILE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"apply_specfile: %s, %s %p\n"

l_.str.1:                               ; @.str.1
	.asciz	"r"

l_.str.2:                               ; @.str.2
	.asciz	"Can't open `%s'"

l_.str.3:                               ; @.str.3
	.asciz	"spec"

	.comm	_EOF,8,3                        ; @EOF
l_.str.4:                               ; @.str.4
	.asciz	"Can't close `%s'"

l_.str.5:                               ; @.str.5
	.asciz	"Specfile `%s' did not contain a tree"

l_.str.6:                               ; @.str.6
	.asciz	"."

	.comm	_F_DIR,8,3                      ; @F_DIR
.subsections_via_symbols
