	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ub_ctx_set_stub                ## -- Begin function ub_ctx_set_stub
	.p2align	4, 0x90
_ub_ctx_set_stub:                       ## @ub_ctx_set_stub
	.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
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	leaq	-48(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_parse_dname
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	-48(%rbp), %rdi
	callq	_free
	testq	%r12, %r12
	jne	LBB0_6
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rbx
	testq	%r12, %r12
	je	LBB0_7
LBB0_6:
	leaq	-48(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	callq	_extstrtoaddr
	testl	%eax, %eax
	je	LBB0_3
LBB0_7:
	movq	%r14, %rdi
	callq	_lock_basic_lock
	cmpq	$0, 16(%r14)
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_lock_basic_unlock
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_UB_AFTERFINAL@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_UB_SYNTAX@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_9:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_cfg_stub_find
	movq	%rax, %r13
	testq	%r12, %r12
	jne	LBB0_13
## %bb.10:
	testq	%r13, %r13
	je	LBB0_11
LBB0_13:
	testq	%r12, %r12
	jne	LBB0_16
## %bb.14:
	testq	%r13, %r13
	je	LBB0_16
## %bb.15:
	movq	8(%r13), %rax
	movq	-48(%rbp), %rcx
	movq	%rax, (%rcx)
	movq	%r13, %rdi
	callq	_config_delstub
LBB0_11:
	movq	%r14, %rdi
	callq	_lock_basic_unlock
LBB0_12:
	movq	_UB_NOERROR@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	testq	%r13, %r13
	jne	LBB0_21
## %bb.17:
	movl	$1, %edi
	movl	$24, %esi
	callq	_calloc
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	%rbx, %rdi
	callq	_strdup
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	%rcx, 8(%r13)
	movq	%r13, (%rax)
LBB0_21:
	movl	%r15d, (%r13)
	movq	%r12, %rdi
	callq	_strdup
	testq	%rax, %rax
	je	LBB0_22
## %bb.23:
	addq	$4, %r13
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_cfg_strlist_insert
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_lock_basic_unlock
	testl	%ebx, %ebx
	jne	LBB0_12
	jmp	LBB0_24
LBB0_19:
	movq	%r13, %rdi
	callq	_free
LBB0_22:
	movq	%r14, %rdi
	callq	_lock_basic_unlock
LBB0_24:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_UB_NOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_UB_SYNTAX,4,2                  ## @UB_SYNTAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

	.comm	_UB_AFTERFINAL,4,2              ## @UB_AFTERFINAL
	.comm	_UB_NOERROR,4,2                 ## @UB_NOERROR
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_UB_NOMEM,4,2                   ## @UB_NOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ub_ctx_set_stub                ; -- Begin function ub_ctx_set_stub
	.p2align	2
_ub_ctx_set_stub:                       ; @ub_ctx_set_stub
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x3
	mov	x20, x2
	mov	x19, x0
	cbz	x1, LBB0_3
; %bb.1:
	mov	x22, x1
	add	x1, sp, #24
	add	x2, sp, #8
	add	x3, sp, #20
	mov	x0, x22
	bl	_parse_dname
	cbz	w0, LBB0_7
; %bb.2:
	ldr	x0, [sp, #24]
	bl	_free
	cbnz	x20, LBB0_4
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	cbz	x20, LBB0_5
LBB0_4:
	add	x1, sp, #24
	add	x2, sp, #8
	mov	x0, x20
	bl	_extstrtoaddr
	cbz	w0, LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_lock_basic_lock
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_lock_basic_unlock
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _errno@GOTPAGE
Lloh6:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh7:
	str	w8, [x9]
Lloh8:
	adrp	x8, _UB_AFTERFINAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UB_AFTERFINAL@GOTPAGEOFF]
	b	LBB0_15
LBB0_7:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _errno@GOTPAGE
Lloh14:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh15:
	str	w8, [x9]
Lloh16:
	adrp	x8, _UB_SYNTAX@GOTPAGE
Lloh17:
	ldr	x8, [x8, _UB_SYNTAX@GOTPAGEOFF]
	b	LBB0_15
LBB0_8:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	str	x8, [sp, #24]
	add	x0, sp, #24
	mov	x1, x22
	bl	_cfg_stub_find
	mov	x23, x0
	cbnz	x20, LBB0_10
; %bb.9:
	cbz	x23, LBB0_13
LBB0_10:
	cbnz	x20, LBB0_16
; %bb.11:
	cbz	x23, LBB0_16
; %bb.12:
	ldr	x8, [x23, #8]
	ldr	x9, [sp, #24]
	str	x8, [x9]
	mov	x0, x23
	bl	_config_delstub
LBB0_13:
	mov	x0, x19
	bl	_lock_basic_unlock
LBB0_14:
Lloh18:
	adrp	x8, _UB_NOERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _UB_NOERROR@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
	cbnz	x23, LBB0_20
; %bb.17:
	mov	w0, #1
	mov	w1, #24
	bl	_calloc
	mov	x23, x0
	cbz	x0, LBB0_22
; %bb.18:
	mov	x0, x22
	bl	_strdup
	str	x0, [x23, #16]
	cbz	x0, LBB0_22
; %bb.19:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x9, [x8]
	str	x9, [x23, #8]
	str	x23, [x8]
LBB0_20:
	str	w21, [x23]
	mov	x0, x20
	bl	_strdup
	cbz	x0, LBB0_23
; %bb.21:
	mov	x1, x0
	add	x0, x23, #4
	bl	_cfg_strlist_insert
	mov	x20, x0
	mov	x0, x19
	bl	_lock_basic_unlock
	cbnz	w20, LBB0_14
	b	LBB0_24
LBB0_22:
	mov	x0, x23
	bl	_free
LBB0_23:
	mov	x0, x19
	bl	_lock_basic_unlock
LBB0_24:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _errno@GOTPAGE
Lloh24:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh25:
	str	w8, [x9]
Lloh26:
	adrp	x8, _UB_NOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _UB_NOMEM@GOTPAGEOFF]
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_UB_SYNTAX,4,2                  ; @UB_SYNTAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

	.comm	_UB_AFTERFINAL,4,2              ; @UB_AFTERFINAL
	.comm	_UB_NOERROR,4,2                 ; @UB_NOERROR
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_UB_NOMEM,4,2                   ; @UB_NOMEM
.subsections_via_symbols
