	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libworker_attach_mesh          ## -- Begin function libworker_attach_mesh
	.p2align	4, 0x90
_libworker_attach_mesh:                 ## @libworker_attach_mesh
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r13
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_setup_qinfo_edns
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_BIT_RD@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%rbx, 8(%r14)
	movq	(%rbx), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_sldns_buffer_write_u16_at
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movl	$2, %esi
	movq	%r12, %rdx
	callq	_sldns_buffer_write_u16_at
	movl	8(%r13), %edi
	movq	(%rbx), %rax
	movq	8(%rbx), %rsi
	movl	(%rax), %r8d
	movl	4(%rsi), %r9d
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movq	$0, 72(%rsp)
	movl	$0, 64(%rsp)
	movq	$0, 56(%rsp)
	movl	$0, 48(%rsp)
	movq	$0, 40(%rsp)
	movl	$0, 32(%rsp)
	movq	$0, 24(%rsp)
	movl	$0, 16(%rsp)
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	callq	_local_zones_answer
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	8(%rbx), %rax
	movl	4(%rax), %edi
	callq	_regional_free_all
	movl	-48(%rbp), %edi
	callq	_free
	movq	_LDNS_RCODE_NOERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movl	(%rax), %edx
	movq	_sec_status_insecure@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_libworker_event_done_cb
	movq	_UB_NOERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_1:
	movq	_UB_INITFAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_3:
	movq	_UB_SYNTAX@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r13), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	movq	(%rbx), %rax
	movq	8(%rbx), %rsi
	movl	(%rax), %r9d
	movl	4(%rsi), %eax
	movl	%eax, (%rsp)
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	xorl	%r8d, %r8d
	callq	_auth_zones_answer
	testq	%rax, %rax
	jne	LBB0_5
LBB0_8:
	testq	%r15, %r15
	je	LBB0_10
## %bb.9:
	movl	(%r14), %eax
	movl	%eax, (%r15)
LBB0_10:
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %r8d
	movq	%r14, 8(%rsp)
	movq	_libworker_event_done_cb@GOTPCREL(%rip), %rax
	movq	%rax, (%rsp)
	leaq	-48(%rbp), %rsi
	leaq	-56(%rbp), %rcx
	movq	%r12, %rdx
	xorl	%r9d, %r9d
	callq	_mesh_new_callback
	movl	%eax, %ebx
	movl	-48(%rbp), %edi
	callq	_free
	testl	%ebx, %ebx
	jne	LBB0_11
## %bb.12:
	movq	_UB_NOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_UB_NOERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_UB_INITFAIL,4,2                ## @UB_INITFAIL
	.comm	_UB_SYNTAX,4,2                  ## @UB_SYNTAX
	.comm	_BIT_RD,8,3                     ## @BIT_RD
	.comm	_LDNS_RCODE_NOERROR,4,2         ## @LDNS_RCODE_NOERROR
	.comm	_sec_status_insecure,4,2        ## @sec_status_insecure
	.comm	_UB_NOERROR,4,2                 ## @UB_NOERROR
	.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	_libworker_attach_mesh          ; -- Begin function libworker_attach_mesh
	.p2align	2
_libworker_attach_mesh:                 ; @libworker_attach_mesh
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	ldr	x20, [x0, #16]
	cbz	x20, LBB0_4
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x23, x0
	sub	x2, x29, #56
	add	x3, sp, #64
	mov	x0, x20
	bl	_setup_qinfo_edns
	cbz	w0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _BIT_RD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIT_RD@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	str	x20, [x19, #8]
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	w1, #0
	mov	x2, #0
	bl	_sldns_buffer_write_u16_at
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	w1, #2
	mov	x2, x22
	bl	_sldns_buffer_write_u16_at
	ldr	w0, [x23, #8]
	ldp	x8, x1, [x20]
	ldr	w4, [x8]
	ldr	w5, [x1, #4]
	str	xzr, [sp, #56]
	str	wzr, [sp, #48]
	str	xzr, [sp, #40]
	str	wzr, [sp, #32]
	sub	x2, x29, #56
	add	x3, sp, #64
	str	xzr, [sp, #24]
	str	wzr, [sp, #16]
	str	xzr, [sp, #8]
	str	wzr, [sp]
	mov	x6, #0
	mov	x7, #0
	bl	_local_zones_answer
	cbz	x0, LBB0_6
LBB0_3:
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #4]
	bl	_regional_free_all
	ldur	w0, [x29, #-56]
	bl	_free
Lloh3:
	adrp	x8, _LDNS_RCODE_NOERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_RCODE_NOERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x8, [x20]
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _sec_status_insecure@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sec_status_insecure@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x4, #0
	mov	w5, #0
	bl	_libworker_event_done_cb
Lloh9:
	adrp	x8, _UB_NOERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UB_NOERROR@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
Lloh11:
	adrp	x8, _UB_INITFAIL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _UB_INITFAIL@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
Lloh13:
	adrp	x8, _UB_SYNTAX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _UB_SYNTAX@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
	ldr	x8, [x23]
	ldr	x0, [x8]
	cbz	x0, LBB0_8
; %bb.7:
	ldp	x8, x1, [x20]
	ldr	w5, [x8]
	ldr	w6, [x1, #4]
	sub	x2, x29, #56
	add	x3, sp, #64
	mov	x4, #0
	bl	_auth_zones_answer
	cbnz	x0, LBB0_3
LBB0_8:
	cbz	x21, LBB0_10
; %bb.9:
	ldr	w8, [x19]
	str	w8, [x21]
LBB0_10:
	ldp	x9, x8, [x20]
	ldr	w0, [x8]
	ldr	w4, [x9]
Lloh15:
	adrp	x6, _libworker_event_done_cb@GOTPAGE
Lloh16:
	ldr	x6, [x6, _libworker_event_done_cb@GOTPAGEOFF]
	sub	x1, x29, #56
	add	x3, sp, #64
	mov	x2, x22
	mov	x5, #0
	mov	x7, x19
	bl	_mesh_new_callback
	mov	x19, x0
	ldur	w0, [x29, #-56]
	bl	_free
Lloh17:
	adrp	x8, _UB_NOERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _UB_NOERROR@GOTPAGEOFF]
Lloh19:
	adrp	x9, _UB_NOMEM@GOTPAGE
Lloh20:
	ldr	x9, [x9, _UB_NOMEM@GOTPAGEOFF]
	cmp	w19, #0
	csel	x8, x9, x8, eq
LBB0_11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_UB_INITFAIL,4,2                ; @UB_INITFAIL
	.comm	_UB_SYNTAX,4,2                  ; @UB_SYNTAX
	.comm	_BIT_RD,8,3                     ; @BIT_RD
	.comm	_LDNS_RCODE_NOERROR,4,2         ; @LDNS_RCODE_NOERROR
	.comm	_sec_status_insecure,4,2        ; @sec_status_insecure
	.comm	_UB_NOERROR,4,2                 ; @UB_NOERROR
	.comm	_UB_NOMEM,4,2                   ; @UB_NOMEM
.subsections_via_symbols
