	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ub_ctx_set_fwd                 ## -- Begin function ub_ctx_set_fwd
	.p2align	4, 0x90
_ub_ctx_set_fwd:                        ## @ub_ctx_set_fwd
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_lock_basic_lock
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %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_21
LBB0_2:
	testq	%r14, %r14
	je	LBB0_3
## %bb.7:
	movq	%rbx, %rdi
	callq	_lock_basic_unlock
	leaq	-32(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_extstrtoaddr
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	%rbx, %rdi
	callq	_lock_basic_lock
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	16(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_17
LBB0_11:
	movl	$1, %edi
	movl	$24, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.14:
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdi
	callq	_strdup
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	%rcx, 8(%r15)
	movq	%r15, (%rax)
	jmp	LBB0_18
LBB0_3:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	16(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movq	8(%rdi), %rcx
	movq	%rcx, (%rax)
	movq	$0, 8(%rdi)
	callq	_config_delstubs
LBB0_6:
	movq	%rbx, %rdi
	callq	_lock_basic_unlock
LBB0_20:
	movq	_UB_NOERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_UB_SYNTAX@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_17:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	callq	_log_assert
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
LBB0_18:
	movq	%r14, %rdi
	callq	_strdup
	testq	%rax, %rax
	je	LBB0_12
## %bb.19:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_cfg_strlist_insert
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_lock_basic_unlock
	testl	%r14d, %r14d
	jne	LBB0_20
	jmp	LBB0_13
LBB0_15:
	movq	%r15, %rdi
	callq	_free
LBB0_12:
	movq	%rbx, %rdi
	callq	_lock_basic_unlock
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_UB_NOMEM@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_UB_AFTERFINAL,4,2              ## @UB_AFTERFINAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

	.comm	_UB_NOERROR,4,2                 ## @UB_NOERROR
	.comm	_UB_SYNTAX,4,2                  ## @UB_SYNTAX
	.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_fwd                 ; -- Begin function ub_ctx_set_fwd
	.p2align	2
_ub_ctx_set_fwd:                        ; @ub_ctx_set_fwd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_lock_basic_lock
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_lock_basic_unlock
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _errno@GOTPAGE
Lloh4:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
Lloh6:
	adrp	x8, _UB_AFTERFINAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UB_AFTERFINAL@GOTPAGEOFF]
	b	LBB0_21
LBB0_2:
	cbz	x20, LBB0_9
; %bb.3:
	mov	x0, x19
	bl	_lock_basic_unlock
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x20
	bl	_extstrtoaddr
	cbz	w0, LBB0_14
; %bb.4:
	mov	x0, x19
	bl	_lock_basic_lock
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x0, [x8, #16]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_15
LBB0_6:
	mov	w0, #1
	mov	w1, #24
	bl	_calloc
	cbz	x0, LBB0_19
; %bb.7:
	mov	x21, x0
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strdup
	str	x0, [x21, #16]
	cbz	x0, LBB0_18
; %bb.8:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x9, [x8]
	str	x9, [x21, #8]
	str	x21, [x8]
	b	LBB0_16
LBB0_9:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.10:
	ldr	x0, [x8, #16]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_12
; %bb.11:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x0, [x8]
	ldr	x9, [x0, #8]
	str	x9, [x8]
	str	xzr, [x0, #8]
	bl	_config_delstubs
LBB0_12:
	mov	x0, x19
	bl	_lock_basic_unlock
LBB0_13:
Lloh14:
	adrp	x8, _UB_NOERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UB_NOERROR@GOTPAGEOFF]
	b	LBB0_21
LBB0_14:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _errno@GOTPAGE
Lloh20:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh21:
	str	w8, [x9]
Lloh22:
	adrp	x8, _UB_SYNTAX@GOTPAGE
Lloh23:
	ldr	x8, [x8, _UB_SYNTAX@GOTPAGEOFF]
	b	LBB0_21
LBB0_15:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x0, [x8]
	bl	_log_assert
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x21, [x8]
LBB0_16:
	mov	x0, x20
	bl	_strdup
	cbz	x0, LBB0_19
; %bb.17:
	mov	x1, x0
	mov	x0, x21
	bl	_cfg_strlist_insert
	mov	x20, x0
	mov	x0, x19
	bl	_lock_basic_unlock
	cbnz	w20, LBB0_13
	b	LBB0_20
LBB0_18:
	mov	x0, x21
	bl	_free
LBB0_19:
	mov	x0, x19
	bl	_lock_basic_unlock
LBB0_20:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _errno@GOTPAGE
Lloh28:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh29:
	str	w8, [x9]
Lloh30:
	adrp	x8, _UB_NOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _UB_NOMEM@GOTPAGEOFF]
LBB0_21:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_UB_AFTERFINAL,4,2              ; @UB_AFTERFINAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

	.comm	_UB_NOERROR,4,2                 ; @UB_NOERROR
	.comm	_UB_SYNTAX,4,2                  ; @UB_SYNTAX
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_UB_NOMEM,4,2                   ; @UB_NOMEM
.subsections_via_symbols
