	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ub_ctx_create                  ## -- Begin function ub_ctx_create
	.p2align	4, 0x90
_ub_ctx_create:                         ## @ub_ctx_create
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	callq	_ub_ctx_create_nopipe
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_tube_create
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	xorl	%eax, %eax
	callq	_tube_create
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	24(%rbx), %rdi
	callq	_tube_delete
	jmp	LBB0_5
LBB0_2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_5:
	movl	16(%rbx), %edi
	callq	_ub_randfree
	movq	(%rbx), %rax
	movl	12(%rax), %edi
	callq	_config_delete
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	(%rbx), %rsi
	callq	_modstack_desetup
	movq	(%rbx), %rdi
	callq	_edns_known_options_delete
	movq	(%rbx), %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_free
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ub_ctx_create                  ; -- Begin function ub_ctx_create
	.p2align	2
_ub_ctx_create:                         ; @ub_ctx_create
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_ub_ctx_create_nopipe
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	bl	_tube_create
	str	x0, [x19, #24]
	cbz	x0, LBB0_4
; %bb.2:
	bl	_tube_create
	str	x0, [x19, #32]
	cbnz	x0, LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	x0, [x19, #24]
	bl	_tube_delete
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
LBB0_5:
	ldr	w0, [x19, #16]
	bl	_ub_randfree
	ldr	x8, [x19]
	ldr	w0, [x8, #12]
	bl	_config_delete
	add	x0, x19, #8
	ldr	x1, [x19]
	bl	_modstack_desetup
	ldr	x0, [x19]
	bl	_edns_known_options_delete
	ldr	x0, [x19]
	bl	_free
	mov	x0, x19
	bl	_free
	mov	x19, #0
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	str	w20, [x8]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
