	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function res_append_resource
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_res_append_resource:                   ## @res_append_resource
	.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
	movl	%r8d, -68(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r13
	movl	%edx, %ebx
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	testl	%edx, %edx
	setg	%dil
	callq	_assert
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	16(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %r14
	cmpq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_20
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, _res_append_resource.timeval(%rip)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edi, %edi
	callq	_time
	movq	%rax, _res_append_resource.timeval(%rip)
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$40, %edi
	callq	_res_alloc
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx)
	movq	$0, 32(%rax)
	movq	_res_append_resource.timeval(%rip), %rcx
	movq	%rcx, (%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	movq	$0, 24(%rax)
	movq	(%rdx), %rbx
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rbx), %rax
	addq	$8, %rbx
	testq	%rax, %rax
	je	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	24(%rax), %edi
	movl	(%r13,%r14,4), %esi
	callq	_res_id_cmp
	movq	(%rbx), %r15
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	32(%r15), %rax
	addq	$32, %r15
	movq	%r15, %rbx
	testq	%rax, %rax
	jne	LBB0_7
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$40, %edi
	callq	_res_alloc
	movq	%rax, %r15
	movq	$0, 32(%rax)
	movl	(%r13,%r14,4), %eax
	movl	%eax, 24(%r15)
	leaq	1(%r14), %r12
	cmpq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	jae	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	$0, 16(%r15)
	movl	$1, %eax
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	$0, 8(%r15)
	xorl	%eax, %eax
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, (%r15)
	movq	%r15, (%rbx)
	cmpq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	jae	LBB0_19
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, (%r15)
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_program_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%rbx), %edi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_res_ids_print
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_xexit
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	testq	%r15, %r15
	je	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	1(%r14), %r12
	cmpq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	jae	LBB0_19
	jmp	LBB0_16
LBB0_20:
	cmpl	$0, (%r15)
	je	LBB0_22
## %bb.21:
	movq	_stderr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_program_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%rbx), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	callq	_res_ids_print
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_xexit
LBB0_22:
	cmpq	$0, 8(%r15)
	je	LBB0_25
## %bb.23:
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_26
## %bb.24:
	movq	_stderr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_program_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%rbx), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	callq	_res_ids_print
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_25:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r15)
LBB0_26:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_res_append_resource.timeval,8,3 ## @res_append_resource.timeval
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: "

	.comm	_program_name,8,3               ## @program_name
L_.str.1:                               ## @.str.1
	.asciz	": expected to be a directory\n"

L_.str.2:                               ## @.str.2
	.asciz	": expected to be a leaf\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s: warning: "

L_.str.4:                               ## @.str.4
	.asciz	": duplicate value\n"

	.no_dead_strip	_res_append_resource
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function res_append_resource
_res_append_resource:                   ; @res_append_resource
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	w4, [sp, #24]                   ; 4-byte Folded Spill
	mov	x20, x3
	mov	x19, x2
	str	x1, [sp, #16]                   ; 8-byte Folded Spill
	mov	x27, x0
	cmp	w2, #0
	cset	w0, gt
	bl	_assert
	mov	x26, #0
	str	w19, [sp, #28]                  ; 4-byte Folded Spill
	mov	w22, w19
	adrp	x21, _res_append_resource.timeval@PAGE
Lloh0:
	adrp	x28, _stderr@GOTPAGE
Lloh1:
	ldr	x28, [x28, _stderr@GOTPAGEOFF]
Lloh2:
	adrp	x24, l_.str.1@PAGE
Lloh3:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x27, x19, #16
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x23
	cmp	x23, x22
	b.eq	LBB0_18
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x25, [x27]
	cbz	x25, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25, #8]!
	cbnz	x8, LBB0_8
	b	LBB0_12
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, _res_append_resource.timeval@PAGEOFF]
	cbnz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, #0
	bl	_time
	str	x0, [x21, _res_append_resource.timeval@PAGEOFF]
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #40
	bl	_res_alloc
	str	x0, [x27]
	ldr	x8, [x21, _res_append_resource.timeval@PAGEOFF]
	stp	xzr, xzr, [x0, #24]
	stp	xzr, xzr, [x0, #8]
	str	x8, [x0]
	ldr	x25, [x27]
	ldr	x8, [x25, #8]!
	cbz	x8, LBB0_12
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x8, #24]
	ldr	w1, [x20, x26, lsl #2]
	bl	_res_id_cmp
	ldr	x19, [x25]
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x19, #32]!
	mov	x25, x19
	cbnz	x8, LBB0_8
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x19, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x26, #1
	cmp	x23, x22
	b.hs	LBB0_2
	b	LBB0_16
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #40
	bl	_res_alloc
	mov	x19, x0
	str	xzr, [x0, #32]
	ldr	w8, [x20, x26, lsl #2]
	str	w8, [x0, #24]
	add	x23, x26, #1
	cmp	x23, x22
	b.hs	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x19, #16]
	mov	w8, #1
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #0
	str	xzr, [x19, #8]
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w8, [x19]
	str	x19, [x25]
	cmp	x23, x22
	b.hs	LBB0_2
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
	cbnz	w8, LBB0_1
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x28]
Lloh4:
	adrp	x8, _program_name@GOTPAGE
Lloh5:
	ldr	x8, [x8, _program_name@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	w0, [x28]
	mov	x1, x26
	mov	x2, x20
	bl	_res_ids_print
	ldr	w0, [x28]
	mov	x1, x24
	bl	_fprintf
	mov	w0, #1
	bl	_xexit
	b	LBB0_1
LBB0_18:
	ldr	w8, [x19]
	cbz	w8, LBB0_20
; %bb.19:
	ldr	w0, [x28]
Lloh9:
	adrp	x8, _program_name@GOTPAGE
Lloh10:
	ldr	x8, [x8, _program_name@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	w0, [x28]
	ldr	w1, [sp, #28]                   ; 4-byte Folded Reload
	mov	x2, x20
	bl	_res_ids_print
	ldr	w0, [x28]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_xexit
LBB0_20:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_23
; %bb.21:
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	cbnz	w8, LBB0_24
; %bb.22:
	ldr	w0, [x28]
Lloh16:
	adrp	x8, _program_name@GOTPAGE
Lloh17:
	ldr	x8, [x8, _program_name@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	ldr	w0, [x28]
	ldr	w1, [sp, #28]                   ; 4-byte Folded Reload
	mov	x2, x20
	bl	_res_ids_print
	ldr	w0, [x28]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
LBB0_23:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	str	x8, [x19, #8]
LBB0_24:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_res_append_resource.timeval,8,3 ; @res_append_resource.timeval
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: "

	.comm	_program_name,8,3               ; @program_name
l_.str.1:                               ; @.str.1
	.asciz	": expected to be a directory\n"

l_.str.2:                               ; @.str.2
	.asciz	": expected to be a leaf\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s: warning: "

l_.str.4:                               ; @.str.4
	.asciz	": duplicate value\n"

	.no_dead_strip	_res_append_resource
.subsections_via_symbols
