	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swconfig_load_uci
_swconfig_load_uci:                     ## @swconfig_load_uci
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	$0, -32(%rbp)
	xorl	%eax, %eax
	callq	_uci_alloc_context
	testq	%rax, %rax
	jne	LBB0_1
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rax, %rbx
	leaq	-32(%rbp), %rdx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_uci_load
	movq	-32(%rbp), %rsi
	testq	%rsi, %rsi
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_uci_perror
	movl	$-1, %r15d
	jmp	LBB0_5
LBB0_3:
	movq	%r14, %rdi
	callq	_swlib_apply_from_uci
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_5
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
LBB0_5:
	movq	%rbx, %rdi
	callq	_uci_free_context
	movl	%r15d, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to load config file: "

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Failed to apply configuration for switch '%s'\n"

	.no_dead_strip	_swconfig_load_uci
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swconfig_load_uci
_swconfig_load_uci:                     ; @swconfig_load_uci
	.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
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	bl	_uci_alloc_context
	cbnz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	add	x2, sp, #8
	str	x0, [sp]                        ; 8-byte Folded Spill
	mov	x1, x20
	bl	_uci_load
	ldr	x1, [sp, #8]
	cbnz	x1, LBB0_4
; %bb.3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_uci_perror
	mov	w20, #-1
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_swlib_apply_from_uci
	mov	x20, x0
	tbz	w0, #31, LBB0_6
; %bb.5:
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	x2, [x19]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_6:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_uci_free_context
	mov	x0, x20
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to load config file: "

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Failed to apply configuration for switch '%s'\n"

	.no_dead_strip	_swconfig_load_uci
.subsections_via_symbols
