	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udp_queue_message              ## -- Begin function udp_queue_message
	.p2align	4, 0x90
_udp_queue_message:                     ## @udp_queue_message
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rsi), %rax
	movq	_RM_INIT_MAGIC@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	sete	%dil
	callq	_assert
	movq	8(%rbx), %rax
	xorl	%r15d, %r15d
	cmpq	(%r12), %rax
	jne	LBB0_9
## %bb.1:
	movq	16(%rbx), %rcx
	movq	_MAX_UDP_SEND_DATAGRAM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jg	LBB0_9
## %bb.2:
	movq	32(%r14), %rax
	leaq	24(%r14), %rdx
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%rdx), %rsi
	jmp	LBB0_5
LBB0_3:
	movq	%rdx, %rsi
	leaq	32(%r14), %rdx
LBB0_5:
	movq	%rbx, (%rsi)
	movq	%rbx, (%rdx)
	addl	%ecx, 20(%r14)
	incl	16(%r14)
	movq	$0, (%rbx)
	movq	_U_WORKING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$1, %r15d
	testl	%ecx, (%r14)
	jne	LBB0_9
## %bb.6:
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movq	8(%r14), %rdi
	cmpl	$0, (%rdi)
	jne	LBB0_9
## %bb.8:
	callq	_put_event_into_heap
LBB0_9:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RM_INIT_MAGIC,8,3              ## @RM_INIT_MAGIC
	.comm	_MAX_UDP_SEND_DATAGRAM,8,3      ## @MAX_UDP_SEND_DATAGRAM
	.comm	_U_WORKING,4,2                  ## @U_WORKING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udp_queue_message              ; -- Begin function udp_queue_message
	.p2align	2
_udp_queue_message:                     ; @udp_queue_message
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x21, _RM_INIT_MAGIC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RM_INIT_MAGIC@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x9, [x20, #16]
Lloh2:
	adrp	x8, _MAX_UDP_SEND_DATAGRAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_UDP_SEND_DATAGRAM@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x9, x8
	b.le	LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_10
LBB0_3:
	mov	x12, x19
	ldr	x8, [x12, #32]!
	sub	x10, x12, #8
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x11, [x10]
	b	LBB0_6
LBB0_5:
	mov	x11, x10
	mov	x10, x12
LBB0_6:
	str	x20, [x11]
	str	x20, [x10]
	ldp	w11, w10, [x19, #16]
	add	w9, w10, w9
	add	w10, w11, #1
	stp	w10, w9, [x19, #16]
	str	xzr, [x20]
	ldr	w9, [x19]
Lloh5:
	adrp	x10, _U_WORKING@GOTPAGE
Lloh6:
	ldr	x10, [x10, _U_WORKING@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	and	w9, w10, w9
	cmp	w9, #0
	ccmp	x8, #0, #0, eq
	b.ne	LBB0_9
; %bb.7:
	ldr	x0, [x19, #8]
	ldr	w8, [x0]
	cbnz	w8, LBB0_9
; %bb.8:
	bl	_put_event_into_heap
LBB0_9:
	mov	w0, #1
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RM_INIT_MAGIC,8,3              ; @RM_INIT_MAGIC
	.comm	_MAX_UDP_SEND_DATAGRAM,8,3      ; @MAX_UDP_SEND_DATAGRAM
	.comm	_U_WORKING,4,2                  ; @U_WORKING
.subsections_via_symbols
