	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libworker_fg                   ## -- Begin function libworker_fg
	.p2align	4, 0x90
_libworker_fg:                          ## @libworker_fg
	.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	%r12
	pushq	%rbx
	subq	$96, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_libworker_setup
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_setup_qinfo_edns
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_BIT_RD@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%rbx, (%r14)
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_sldns_buffer_write_u16_at
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	$2, %esi
	movq	%r15, %rdx
	callq	_sldns_buffer_write_u16_at
	movl	8(%r12), %edi
	movq	8(%rbx), %rax
	movq	16(%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	-40(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_local_zones_answer
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	16(%rbx), %rax
	movl	4(%rax), %edi
	callq	_regional_free_all
	movq	_LDNS_RCODE_NOERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%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_fillup_fg
	movq	%rbx, %rdi
	callq	_libworker_delete
	movl	-40(%rbp), %edi
	callq	_free
LBB0_11:
	movq	_UB_NOERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_1:
	movq	_UB_INITFAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_3:
	movq	%rbx, %rdi
	callq	_libworker_delete
	movq	_UB_SYNTAX@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	addq	$96, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r12), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	movq	8(%rbx), %rax
	movq	16(%rbx), %rsi
	movl	(%rax), %r9d
	movl	4(%rsi), %eax
	movl	%eax, (%rsp)
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	xorl	%r8d, %r8d
	callq	_auth_zones_answer
	testq	%rax, %rax
	jne	LBB0_5
LBB0_8:
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %r8d
	movq	_libworker_fg_done_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r14, 8(%rsp)
	movl	%eax, (%rsp)
	leaq	-40(%rbp), %rsi
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdx
	xorl	%r9d, %r9d
	callq	_mesh_new_callback
	movl	%eax, %r14d
	movl	-40(%rbp), %edi
	callq	_free
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.10:
	movl	(%rbx), %edi
	callq	_comm_base_dispatch
	movq	%rbx, %rdi
	callq	_libworker_delete
	jmp	LBB0_11
LBB0_9:
	movq	_UB_NOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.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	_libworker_fg_done_cb,4,2       ## @libworker_fg_done_cb
	.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_fg                   ; -- Begin function libworker_fg
	.p2align	2
_libworker_fg:                          ; @libworker_fg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x0
	mov	w1, #0
	mov	x2, #0
	bl	_libworker_setup
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	sub	x2, x29, #40
	sub	x3, x29, #48
	mov	x1, x20
	bl	_setup_qinfo_edns
	cbz	w0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _BIT_RD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIT_RD@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	str	x19, [x20]
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	w1, #0
	mov	x2, #0
	bl	_sldns_buffer_write_u16_at
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	w1, #2
	mov	x2, x21
	bl	_sldns_buffer_write_u16_at
	ldr	w0, [x22, #8]
	ldp	x8, x1, [x19, #8]
	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, #40
	sub	x3, x29, #48
	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_8
LBB0_3:
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
	bl	_regional_free_all
Lloh3:
	adrp	x8, _LDNS_RCODE_NOERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_RCODE_NOERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _sec_status_insecure@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sec_status_insecure@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x4, #0
	mov	w5, #0
	bl	_libworker_fillup_fg
	mov	x0, x19
	bl	_libworker_delete
	ldur	w0, [x29, #-40]
	bl	_free
LBB0_4:
Lloh9:
	adrp	x8, _UB_NOERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UB_NOERROR@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x8, _UB_INITFAIL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _UB_INITFAIL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_libworker_delete
Lloh13:
	adrp	x8, _UB_SYNTAX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _UB_SYNTAX@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_8:
	ldr	x8, [x22]
	ldr	x0, [x8]
	cbz	x0, LBB0_10
; %bb.9:
	ldp	x8, x1, [x19, #8]
	ldr	w5, [x8]
	ldr	w6, [x1, #4]
	sub	x2, x29, #40
	sub	x3, x29, #48
	mov	x4, #0
	bl	_auth_zones_answer
	cbnz	x0, LBB0_3
LBB0_10:
	ldp	x9, x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w4, [x9]
Lloh15:
	adrp	x8, _libworker_fg_done_cb@GOTPAGE
Lloh16:
	ldr	x8, [x8, _libworker_fg_done_cb@GOTPAGEOFF]
Lloh17:
	ldr	w6, [x8]
	sub	x1, x29, #40
	sub	x3, x29, #48
	mov	x2, x21
	mov	x5, #0
	mov	x7, x20
	bl	_mesh_new_callback
	mov	x20, x0
	ldur	w0, [x29, #-40]
	bl	_free
	cbz	w20, LBB0_12
; %bb.11:
	ldr	w0, [x19]
	bl	_comm_base_dispatch
	mov	x0, x19
	bl	_libworker_delete
	b	LBB0_4
LBB0_12:
Lloh18:
	adrp	x8, _UB_NOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _UB_NOMEM@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.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	_libworker_fg_done_cb,4,2       ; @libworker_fg_done_cb
	.comm	_UB_NOMEM,4,2                   ; @UB_NOMEM
.subsections_via_symbols
