	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ntpd_dialog
_ntpd_dialog:                           ## @ntpd_dialog
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_ntpd_request
	movl	$-1, %r12d
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.1:
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdx
	movq	%r13, %rcx
	callq	_ntpd_read
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.2:
	movq	-48(%rbp), %rdx
	cmpq	%rbx, %rdx
	jne	LBB0_3
## %bb.4:
	xorl	%r12d, %r12d
	cmpq	%r15, -56(%rbp)
	je	LBB0_7
## %bb.5:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	jmp	LBB0_6
LBB0_3:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
LBB0_6:
	movq	%r14, %rdi
	callq	_free
	movl	$-1, %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad response op 0x%x"

L_.str.1:                               ## @.str.1
	.asciz	"response for wrong associd"

	.no_dead_strip	_ntpd_dialog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ntpd_dialog
_ntpd_dialog:                           ; @ntpd_dialog
	.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	x22, x4
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	bl	_ntpd_request
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.1:
	add	x0, sp, #16
	add	x1, sp, #24
	mov	x2, x19
	mov	x3, x22
	bl	_ntpd_read
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.2:
	ldr	x8, [sp, #16]
	cmp	x8, x21
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [sp, #24]
	cmp	x8, x20
	b.ne	LBB0_6
; %bb.4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
Lloh0:
	adrp	x9, _LOG_ERR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LOG_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	bl	_syslog
	mov	x0, x19
	bl	_free
	mov	w0, #-1
LBB0_8:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad response op 0x%x"

l_.str.1:                               ; @.str.1
	.asciz	"response for wrong associd"

	.no_dead_strip	_ntpd_dialog
.subsections_via_symbols
