	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_comm_point_udp_callback        ## -- Begin function comm_point_udp_callback
	.p2align	4, 0x90
_comm_point_udp_callback:               ## @comm_point_udp_callback
	.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	%rdx, %r14
	movl	%esi, %ebx
	movl	%edi, %r13d
	movq	%rdx, -72(%rbp)
	movq	(%rdx), %rax
	movq	_comm_udp@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_log_assert
	movq	_UB_EV_READ@GOTPCREL(%rip), %rax
	testw	%bx, (%rax)
	je	LBB0_15
## %bb.1:
	cmpq	$0, 16(%r14)
	je	LBB0_2
## %bb.3:
	xorl	%edi, %edi
	cmpl	%r13d, 8(%r14)
	sete	%dil
	jmp	LBB0_4
LBB0_2:
	xorl	%edi, %edi
LBB0_4:
	callq	_log_assert
	movq	48(%r14), %rax
	movl	(%rax), %edi
	callq	_ub_comm_base_now
	movq	_NUM_UDP_PER_SELECT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_15
## %bb.5:
	xorl	%r15d, %r15d
	cmpl	$-1, %r13d
	setne	%r15b
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rdi
	callq	_sldns_buffer_clear
	movq	$4, -64(%rbp)
	movl	%r15d, %edi
	callq	_log_assert
	movq	-72(%rbp), %rax
	movq	16(%rax), %rdi
	callq	_sldns_buffer_remaining
	xorl	%edi, %edi
	testq	%rax, %rax
	setg	%dil
	callq	_log_assert
	movq	-72(%rbp), %rax
	movq	16(%rax), %rdi
	callq	_sldns_buffer_begin
	movq	%rax, %rbx
	movq	-72(%rbp), %rax
	movq	16(%rax), %rdi
	callq	_sldns_buffer_remaining
	movl	%r13d, %edi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	leaq	-56(%rbp), %r8
	leaq	-64(%rbp), %r9
	callq	_recvfrom
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-72(%rbp), %rcx
	movq	16(%rcx), %rdi
	movl	%eax, %esi
	callq	_sldns_buffer_skip
	movq	-72(%rbp), %rax
	movq	16(%rax), %rdi
	callq	_sldns_buffer_flip
	movq	$0, -48(%rbp)
	movq	-72(%rbp), %rax
	movq	40(%rax), %rdi
	callq	_fptr_whitelist_comm_point
	movl	%eax, %edi
	callq	_fptr_ok
	movq	-72(%rbp), %rdi
	movl	32(%rdi), %esi
	movq	_NETEVENT_NOERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rcx
	callq	*40(%rdi)
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-72(%rbp), %rdi
	movq	-64(%rbp), %rcx
	movq	16(%rdi), %rsi
	leaq	-56(%rbp), %rdx
	callq	_comm_point_send_udp_msg
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-72(%rbp), %r14
	testq	%r14, %r14
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%r13d, 8(%r14)
	jne	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incl	%r12d
	movq	_NUM_UDP_PER_SELECT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jl	LBB0_7
	jmp	LBB0_15
LBB0_8:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_15
## %bb.9:
	movq	_EINTR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_15
## %bb.10:
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_log_err
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_comm_udp,8,3                   ## @comm_udp
	.comm	_UB_EV_READ,2,1                 ## @UB_EV_READ
	.comm	_NUM_UDP_PER_SELECT,4,2         ## @NUM_UDP_PER_SELECT
	.comm	_errno,8,3                      ## @errno
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_EINTR,8,3                      ## @EINTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"recvfrom %d failed: %s"

	.comm	_NETEVENT_NOERROR,4,2           ## @NETEVENT_NOERROR
	.comm	_WSAECONNRESET,8,3              ## @WSAECONNRESET
	.comm	_WSAEINPROGRESS,8,3             ## @WSAEINPROGRESS
	.comm	_WSAEWOULDBLOCK,8,3             ## @WSAEWOULDBLOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_comm_point_udp_callback        ; -- Begin function comm_point_udp_callback
	.p2align	2
_comm_point_udp_callback:               ; @comm_point_udp_callback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	str	x2, [sp, #16]
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _comm_udp@GOTPAGE
Lloh1:
	ldr	x9, [x9, _comm_udp@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_log_assert
Lloh3:
	adrp	x8, _UB_EV_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UB_EV_READ@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w20, w8
	b.eq	LBB0_14
; %bb.1:
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x23, #8]
	cmp	w8, w19
	cset	w0, eq
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	bl	_log_assert
	ldr	x8, [x23, #48]
	ldr	w0, [x8]
	bl	_ub_comm_base_now
Lloh5:
	adrp	x24, _NUM_UDP_PER_SELECT@GOTPAGE
Lloh6:
	ldr	x24, [x24, _NUM_UDP_PER_SELECT@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.5:
	mov	w25, #0
	add	x8, sp, #16
	add	x20, x8, #8
	cmn	w19, #1
	cset	w21, ne
	add	x22, x8, #16
	mov	w26, #4
Lloh7:
	adrp	x27, _NETEVENT_NOERROR@GOTPAGE
Lloh8:
	ldr	x27, [x27, _NETEVENT_NOERROR@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23, #16]
	bl	_sldns_buffer_clear
	str	x26, [sp, #24]
	mov	x0, x21
	bl	_log_assert
	ldr	x8, [sp, #16]
	ldr	x0, [x8, #16]
	bl	_sldns_buffer_remaining
	cmp	x0, #0
	cset	w0, gt
	bl	_log_assert
	ldr	x8, [sp, #16]
	ldr	x0, [x8, #16]
	bl	_sldns_buffer_begin
	mov	x23, x0
	ldr	x8, [sp, #16]
	ldr	x0, [x8, #16]
	bl	_sldns_buffer_remaining
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	mov	w3, #0
	mov	x4, x22
	mov	x5, x20
	bl	_recvfrom
	cmn	w0, #1
	b.eq	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x0
	ldr	x8, [sp, #16]
	ldr	x0, [x8, #16]
	bl	_sldns_buffer_skip
	ldr	x8, [sp, #16]
	ldr	x0, [x8, #16]
	bl	_sldns_buffer_flip
	str	xzr, [sp, #40]
	ldr	x8, [sp, #16]
	ldr	x0, [x8, #40]
	bl	_fptr_whitelist_comm_point
	bl	_fptr_ok
	ldr	x0, [sp, #16]
	ldr	x8, [x0, #40]
	ldr	w1, [x0, #32]
	ldr	w2, [x27]
	add	x3, sp, #16
	blr	x8
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	x0, x3, [sp, #16]
	ldr	x1, [x0, #16]
	mov	x2, x22
	bl	_comm_point_send_udp_msg
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x23, [sp, #16]
	cbz	x23, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x23, #8]
	cmp	w8, w19
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	add	w25, w25, #1
	ldr	w8, [x24]
	cmp	w25, w8
	b.lt	LBB0_6
	b	LBB0_14
LBB0_12:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	x0, [x8]
Lloh12:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _EINTR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EINTR@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.eq	LBB0_14
; %bb.13:
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_log_err
LBB0_14:
	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
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_comm_udp,8,3                   ; @comm_udp
	.comm	_UB_EV_READ,2,1                 ; @UB_EV_READ
	.comm	_NUM_UDP_PER_SELECT,4,2         ; @NUM_UDP_PER_SELECT
	.comm	_errno,8,3                      ; @errno
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_EINTR,8,3                      ; @EINTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"recvfrom %d failed: %s"

	.comm	_NETEVENT_NOERROR,4,2           ; @NETEVENT_NOERROR
	.comm	_WSAECONNRESET,8,3              ; @WSAECONNRESET
	.comm	_WSAEINPROGRESS,8,3             ; @WSAEINPROGRESS
	.comm	_WSAEWOULDBLOCK,8,3             ; @WSAEWOULDBLOCK
.subsections_via_symbols
