	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ypldap_dns                     ## -- Begin function ypldap_dns
	.p2align	4, 0x90
_ypldap_dns:                            ## @ypldap_dns
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_fork
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %r12d
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_fatal
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_setproctitle
	movl	(%r14), %edi
	callq	_close
	leaq	4(%r15), %rbx
	movl	$1, %edi
	movq	%rbx, %rsi
	callq	_setgroups
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movl	(%rbx), %edi
	movl	%edi, %esi
	movl	%edi, %edx
	callq	_setresgid
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	(%r15), %edi
	movl	%edi, %esi
	movl	%edi, %edx
	callq	_setresuid
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	callq	_fatal
LBB0_7:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_endservent
	xorl	%eax, %eax
	callq	_event_init
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_dns_sig_handler@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-72(%rbp), %r15
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_signal_set
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	leaq	-64(%rbp), %r13
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	_signal_set
	movq	_SIGHUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_signal_set
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_signal_add
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_signal_add
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_signal_add
	movl	$1, %edi
	movl	$24, %esi
	callq	_calloc
	movq	%rax, %rbx
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	xorl	%edi, %edi
	callq	_fatal
LBB0_9:
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	leaq	-48(%rbp), %r15
	movq	%r15, 16(%rbx)
	addq	$12, %rbx
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	callq	_imsg_init
	movq	_dns_dispatch_imsg@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi
	movl	%ecx, 4(%rdi)
	movl	8(%rdi), %edx
	movl	12(%rdi), %esi
	movq	%r15, %r8
	callq	_event_set
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_event_add
	xorl	%eax, %eax
	callq	_event_dispatch
	xorl	%eax, %eax
	callq	_dns_shutdown
LBB0_10:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot fork"

L_.str.1:                               ## @.str.1
	.asciz	"dns engine"

L_.str.2:                               ## @.str.2
	.asciz	"can't drop privileges"

	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_dns_sig_handler,4,2            ## @dns_sig_handler
	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.comm	_SIGHUP,4,2                     ## @SIGHUP
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_dns_dispatch_imsg,4,2          ## @dns_dispatch_imsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ypldap_dns                     ; -- Begin function ypldap_dns
	.p2align	2
_ypldap_dns:                            ; @ypldap_dns
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	_fork
	cbz	w0, LBB0_3
; %bb.1:
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal
LBB0_3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_setproctitle
	ldr	w0, [x19]
	bl	_close
	add	x21, x20, #4
	mov	w0, #1
	mov	x1, x21
	bl	_setgroups
	cbnz	x0, LBB0_6
; %bb.4:
	ldr	w0, [x21]
	mov	x1, x0
	mov	x2, x0
	bl	_setresgid
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x20]
	mov	x1, x0
	mov	x2, x0
	bl	_setresuid
	cbz	x0, LBB0_7
LBB0_6:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fatal
LBB0_7:
	bl	_endservent
	bl	_event_init
Lloh6:
	adrp	x8, _SIGINT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x20, _dns_sig_handler@GOTPAGE
Lloh10:
	ldr	x20, [x20, _dns_sig_handler@GOTPAGEOFF]
	ldr	w2, [x20]
	add	x0, sp, #24
	mov	x3, #0
	bl	_signal_set
Lloh11:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x20]
	add	x0, sp, #16
	mov	x3, #0
	bl	_signal_set
Lloh14:
	adrp	x8, _SIGHUP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SIGHUP@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w2, [x20]
	add	x0, sp, #8
	mov	x3, #0
	bl	_signal_set
	add	x0, sp, #24
	mov	x1, #0
	bl	_signal_add
	add	x0, sp, #16
	mov	x1, #0
	bl	_signal_add
	add	x0, sp, #8
	mov	x1, #0
	bl	_signal_add
	mov	w0, #1
	mov	w1, #24
	bl	_calloc
	mov	x20, x0
	str	x0, [sp]
	cbnz	x0, LBB0_9
; %bb.8:
	bl	_fatal
LBB0_9:
Lloh17:
	adrp	x8, _EV_READ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	mov	x8, sp
	str	x8, [x20, #16]
	add	x0, x20, #12
	ldr	w1, [x19, #4]
	bl	_imsg_init
Lloh20:
	adrp	x8, _dns_dispatch_imsg@GOTPAGE
Lloh21:
	ldr	x8, [x8, _dns_dispatch_imsg@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	ldr	x0, [sp]
	str	w3, [x0, #4]
	ldp	w2, w1, [x0, #8]
	mov	x4, sp
	bl	_event_set
	ldr	x0, [sp]
	mov	x1, #0
	bl	_event_add
	bl	_event_dispatch
	bl	_dns_shutdown
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot fork"

l_.str.1:                               ; @.str.1
	.asciz	"dns engine"

l_.str.2:                               ; @.str.2
	.asciz	"can't drop privileges"

	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_dns_sig_handler,4,2            ; @dns_sig_handler
	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.comm	_SIGHUP,4,2                     ; @SIGHUP
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_dns_dispatch_imsg,4,2          ; @dns_dispatch_imsg
.subsections_via_symbols
