	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function outputs_end_map_cb
_outputs_end_map_cb:                    ## @outputs_end_map_cb
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movl	$0, (%rdi)
	jmp	LBB0_13
LBB0_2:
	movq	_config@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %r12
	testl	%r13d, %r13d
	jle	LBB0_9
## %bb.3:
	movq	8(%rax), %r15
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	cmpq	%r14, %r13
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%r14,8), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 16(%rax)
	je	LBB0_7
LBB0_9:
	movq	%r12, %rdi
	callq	_get_output_by_name
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rdi
	movl	24(%rdi), %ecx
	movl	%ecx, 16(%rax)
	movq	16(%rdi), %rcx
	movq	%rcx, 8(%rax)
	movl	12(%rdi), %ecx
	movl	%ecx, 4(%rax)
	movl	8(%rdi), %ecx
	movl	%ecx, (%rax)
	callq	_clear_output
	movq	8(%rbx), %rdi
	jmp	LBB0_12
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	callq	_DLOG
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rdi
	callq	_clear_output
	movq	8(%rbx), %rdi
	callq	_FREE
	movq	16(%rbx), %rdi
LBB0_12:
	callq	_FREE
	jmp	LBB0_13
LBB0_10:
	movq	_outputs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rsi
	movq	_slist@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_SLIST_INSERT_HEAD
LBB0_13:
	movl	$1, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_config,16,3                    ## @config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"primary"

L_.str.1:                               ## @.str.1
	.asciz	"Ignoring output \"%s\", not configured to handle it.\n"

	.comm	_outputs,4,2                    ## @outputs
	.comm	_slist,4,2                      ## @slist
	.no_dead_strip	_outputs_end_map_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function outputs_end_map_cb
_outputs_end_map_cb:                    ; @outputs_end_map_cb
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	str	wzr, [x19]
	b	LBB0_13
LBB0_2:
Lloh0:
	adrp	x8, _config@GOTPAGE
Lloh1:
	ldr	x8, [x8, _config@GOTPAGEOFF]
	ldr	w23, [x8]
	ldr	x24, [x19, #8]
	ldr	x20, [x24]
	cmp	w23, #1
	b.lt	LBB0_8
; %bb.3:
	ldr	x25, [x8, #8]
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #8
	subs	x23, x23, #1
	b.eq	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x25]
	mov	x0, x20
	mov	x1, x22
	bl	_strcasecmp
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_strcasecmp
	cbnz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_4
LBB0_8:
	mov	x0, x20
	bl	_get_output_by_name
	cbz	x0, LBB0_12
; %bb.9:
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #24]
	str	w9, [x0, #16]
	ldr	x9, [x8, #16]
	str	x9, [x0, #8]
	ldr	d0, [x8, #8]
	str	d0, [x0]
	mov	x0, x8
	bl	_clear_output
	ldr	x0, [x19, #8]
	b	LBB0_11
LBB0_10:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_DLOG
	ldr	x0, [x19, #8]
	bl	_clear_output
	ldr	x0, [x19, #8]
	bl	_FREE
	ldr	x0, [x19, #16]
LBB0_11:
	bl	_FREE
	b	LBB0_13
LBB0_12:
Lloh6:
	adrp	x8, _outputs@GOTPAGE
Lloh7:
	ldr	x8, [x8, _outputs@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x1, [x19, #8]
Lloh9:
	adrp	x8, _slist@GOTPAGE
Lloh10:
	ldr	x8, [x8, _slist@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_SLIST_INSERT_HEAD
LBB0_13:
	mov	w0, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_config,16,3                    ; @config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"primary"

l_.str.1:                               ; @.str.1
	.asciz	"Ignoring output \"%s\", not configured to handle it.\n"

	.comm	_outputs,4,2                    ; @outputs
	.comm	_slist,4,2                      ; @slist
	.no_dead_strip	_outputs_end_map_cb
.subsections_via_symbols
