	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_attack_parse                   ## -- Begin function attack_parse
	.p2align	4, 0x90
_attack_parse:                          ## @attack_parse
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$4, %esi
	jb	LBB0_25
## %bb.1:
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_ntohl
	cmpl	$4, %r12d
	je	LBB0_25
## %bb.2:
	cmpl	$8, %r12d
	je	LBB0_25
## %bb.3:
	movsbl	5(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_25
## %bb.4:
	movl	%eax, %r14d
	addl	$-12, %r12d
	movslq	%edi, %rax
	movslq	%r12d, %rcx
	shlq	$3, %rax
	cmpq	%rcx, %rax
	ja	LBB0_25
## %bb.5:
	movsbq	4(%rbx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	addq	$6, %rbx
	movl	$16, %esi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_calloc
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, %r15
	testb	%dl, %dl
	jle	LBB0_9
## %bb.6:
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leal	(,%rdx,8), %r8d
	negl	%r8d
	movl	%edx, %ecx
	shlq	$4, %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movl	%edi, 4(%r15,%rsi)
	movsbl	4(%rbx), %eax
	addq	$5, %rbx
	movl	%eax, (%r15,%rsi)
	movl	%r9d, 12(%r15,%rsi)
	movl	%edi, 8(%r15,%rsi)
	addq	$16, %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_7
## %bb.8:
	addl	%r8d, %r12d
LBB0_9:
	cmpl	$4, %r12d
	jae	LBB0_11
## %bb.10:
	xorl	%r13d, %r13d
                                        ## implicit-def: $ebx
	jmp	LBB0_22
LBB0_11:
	movsbl	(%rbx), %r13d
	testl	%r13d, %r13d
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	jle	LBB0_12
## %bb.13:
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	movl	$16, %esi
	callq	_calloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	incq	%rbx
	addl	$-4, %r12d
	movl	%r13d, %eax
	shlq	$4, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$4, %r12d
	jb	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movsbl	(%rbx), %eax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, (%r13,%r14)
	movl	%r12d, %eax
	andl	$-4, %eax
	cmpl	$4, %eax
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	movsbl	1(%rbx), %r13d
	addl	$-8, %r12d
	subl	%r13d, %r12d
	jl	LBB0_15
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	leaq	2(%rbx), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leal	1(%r13), %edi
	movl	$1, %esi
	callq	_calloc
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx,%r14)
	movq	%rax, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_util_memcpy
	movslq	%r13d, %rax
	addq	%rax, %rbx
	addq	$2, %rbx
	addq	$16, %r14
	cmpq	%r14, -88(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_14
## %bb.20:
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_12:
	xorl	%r13d, %r13d
LBB0_21:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movl	%r14d, %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%r15, %rcx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r8d
	movq	%r13, %r9
	callq	_attack_start
	jmp	LBB0_22
LBB0_15:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_22
LBB0_17:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_22:
	testq	%r15, %r15
	je	LBB0_24
## %bb.23:
	movq	%r15, %rdi
	callq	_free
LBB0_24:
	testq	%r13, %r13
	je	LBB0_25
## %bb.26:
	movq	%r13, %rdi
	movl	%ebx, %esi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free_opts                      ## TAILCALL
LBB0_25:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_errno,8,3                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_attack_parse                   ; -- Begin function attack_parse
	.p2align	2
_attack_parse:                          ; @attack_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	cmp	w1, #4
	b.lo	LBB0_24
; %bb.1:
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_ntohl
	cmp	w22, #4
	b.eq	LBB0_24
; %bb.2:
	cmp	w22, #8
	b.eq	LBB0_24
; %bb.3:
	ldrsb	w21, [x19, #5]
	cbz	w21, LBB0_24
; %bb.4:
	mov	x8, x21
	sxtw	x8, w8
	sub	w23, w22, #12
	sxtw	x9, w23
	cmp	x9, x8, lsl #3
	b.lo	LBB0_24
; %bb.5:
	mov	x20, x0
	ldrsb	x26, [x19, #4]
	add	x25, x19, #6
	mov	x0, x21
	mov	w1, #16
	bl	_calloc
	mov	x19, x0
	cmp	w21, #1
	b.lt	LBB0_9
; %bb.6:
Lloh0:
	adrp	x8, _AF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w9, w21, lsl #3
	add	x10, x19, #8
	mov	x11, x21
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x25]
	add	x12, x25, #5
	ldrsb	w14, [x25, #4]
	stp	w14, w13, [x10, #-8]
	stp	w13, w8, [x10], #16
	mov	x25, x12
	subs	x11, x11, #1
	b.ne	LBB0_7
; %bb.8:
	add	w23, w9, w23
	mov	x25, x12
LBB0_9:
	subs	w27, w23, #4
	b.hs	LBB0_11
; %bb.10:
	mov	x24, #0
                                        ; implicit-def: $w22
	b	LBB0_20
LBB0_11:
	ldrsb	w22, [x25]
	cmp	w22, #1
	b.lt	LBB0_18
; %bb.12:
	str	x26, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x22
	mov	w1, #16
	bl	_calloc
	mov	x24, x0
	add	x8, x25, #1
	add	x28, x0, #8
	mov	x23, x22
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	cmp	w27, #4
	b.lo	LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldrsb	w9, [x8]
	stur	w9, [x28, #-8]
	and	w9, w27, #0xfffffffc
	cmp	w9, #4
	b.eq	LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldrsb	w25, [x8, #1]
	sub	w9, w27, #8
	subs	w27, w9, w25
	b.lt	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x26, x8, #2
	add	w0, w25, #1
	mov	w1, #1
	bl	_calloc
	str	x0, [x28], #16
	mov	x1, x26
	mov	x2, x25
	bl	_util_memcpy
	add	x8, x26, w25, sxtw
	subs	x23, x23, #1
	b.ne	LBB0_13
; %bb.17:
	ldr	x26, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_19
LBB0_18:
	mov	x24, #0
LBB0_19:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	str	xzr, [x8]
	mov	x0, x20
	mov	x1, x26
	mov	x2, x21
	mov	x3, x19
	mov	x4, x22
	mov	x5, x24
	bl	_attack_start
LBB0_20:
	cbz	x19, LBB0_22
; %bb.21:
	mov	x0, x19
	bl	_free
LBB0_22:
	cbz	x24, LBB0_24
; %bb.23:
	mov	x0, x24
	mov	x1, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_free_opts
LBB0_24:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_errno,8,3                      ; @errno
.subsections_via_symbols
