	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ikev2_parse_proposal
_ikev2_parse_proposal:                  ## @ikev2_parse_proposal
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	subq	%rsi, %rbx
	cmpq	$159, %rbx
	jg	LBB0_2
## %bb.1:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_24:
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_25
LBB0_2:
	movq	%rsi, %r13
	movq	%rdi, %r15
	movl	32(%rsi), %edi
	callq	_WPA_GET_BE16
	movl	%eax, %r14d
	cmpl	$40, %eax
	jl	LBB0_4
## %bb.3:
	sarq	$2, %rbx
	movl	%r14d, %r12d
	cmpq	%r12, %rbx
	jge	LBB0_5
LBB0_4:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_25:
	movl	$-1, %r14d
LBB0_26:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	(%r13), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%rbx), %edi
	movl	4(%r13), %edx
	movq	8(%r13), %r8
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%rbx), %edi
	movl	16(%r13), %edx
	movq	24(%r13), %rcx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	testl	$-3, 4(%r13)
	jne	LBB0_6
## %bb.7:
	movq	8(%r13), %rax
	movq	_IKEV2_PROTOCOL_IKE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.9:
	movl	(%r13), %eax
	movl	(%r15), %ecx
	cmpl	%ecx, %eax
	je	LBB0_12
## %bb.10:
	incl	%ecx
	cmpl	%ecx, %eax
	jne	LBB0_27
## %bb.11:
	movl	%eax, (%r15)
LBB0_12:
	movslq	16(%r13), %rcx
	movabsq	$4611686018427387894, %rax      ## imm = 0x3FFFFFFFFFFFFFF6
	leaq	(%r12,%rax), %rdx
	orq	$9, %rax
	andq	%rdx, %rax
	cmpq	%rcx, %rax
	jge	LBB0_14
## %bb.13:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_24
LBB0_6:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_24
LBB0_8:
	movl	(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_24
LBB0_14:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	leaq	40(%r13), %r12
	testl	%ecx, %ecx
	je	LBB0_17
## %bb.15:
	movl	(%rbx), %edi
	leaq	L_.str.9(%rip), %rsi
	movq	%r12, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_wpa_hexdump
	movslq	16(%r13), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.28:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_24
LBB0_27:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_24
LBB0_16:
	leaq	(%r12,%rax,4), %r12
LBB0_17:
	movq	24(%r13), %rax
	testq	%rax, %rax
	je	LBB0_29
## %bb.18:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(,%rcx,4), %rcx
	addq	%r13, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jle	LBB0_22
## %bb.19:
	xorl	%ebx, %ebx
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_ikev2_parse_transform
	testl	%eax, %eax
	js	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	%eax, %eax
	leaq	(%r12,%rax,4), %r12
	incl	%ebx
	cmpl	24(%r13), %ebx
	jl	LBB0_20
LBB0_22:
	cmpq	-48(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_26
## %bb.23:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.12(%rip), %rsi
	jmp	LBB0_24
LBB0_29:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IKEV2: Too short proposal"

L_.str.1:                               ## @.str.1
	.asciz	"IKEV2: Invalid proposal length %d"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"IKEV2: SAi1 Proposal # %d"

L_.str.3:                               ## @.str.3
	.asciz	"IKEV2:   Type: %d  Proposal Length: %d  Protocol ID: %d"

L_.str.4:                               ## @.str.4
	.asciz	"IKEV2:   SPI Size: %d  Transforms: %d"

L_.str.5:                               ## @.str.5
	.asciz	"IKEV2: Unexpected Proposal type"

	.comm	_IKEV2_PROTOCOL_IKE,8,3         ## @IKEV2_PROTOCOL_IKE
L_.str.6:                               ## @.str.6
	.asciz	"IKEV2: Unexpected Protocol ID (only IKE allowed for EAP-IKEv2)"

L_.str.7:                               ## @.str.7
	.asciz	"IKEV2: Unexpected Proposal #"

L_.str.8:                               ## @.str.8
	.asciz	"IKEV2: Not enough room for SPI in proposal"

L_.str.9:                               ## @.str.9
	.asciz	"IKEV2:    SPI"

L_.str.10:                              ## @.str.10
	.asciz	"IKEV2: Unexpected SPI Size"

L_.str.11:                              ## @.str.11
	.asciz	"IKEV2: At least one transform required"

L_.str.12:                              ## @.str.12
	.asciz	"IKEV2: Unexpected data after transforms"

	.no_dead_strip	_ikev2_parse_proposal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ikev2_parse_proposal
_ikev2_parse_proposal:                  ; @ikev2_parse_proposal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	x8, x2, x1
	cmp	x8, #159
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	x20, x1
	mov	x21, x0
	asr	x22, x8, #2
	ldr	w0, [x1, #32]
	bl	_WPA_GET_BE16
	mov	x19, x0
	cmp	w0, #40
	mov	w23, w0
	ccmp	x22, x23, #8, ge
	b.ge	LBB0_7
; %bb.3:
Lloh5:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	str	x19, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	bl	_wpa_printf
LBB0_5:
	mov	w19, #-1
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
Lloh10:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh11:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x24]
	ldr	x8, [x20, #8]
	ldr	w9, [x20, #4]
	stp	x19, x8, [sp, #8]
	str	x9, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x24]
	ldr	x8, [x20, #24]
	ldr	w9, [x20, #16]
	stp	x9, x8, [sp]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	ldr	w8, [x20, #4]
	orr	w8, w8, #0x2
	cmp	w8, #2
	b.ne	LBB0_14
; %bb.8:
	ldr	x8, [x20, #8]
Lloh18:
	adrp	x9, _IKEV2_PROTOCOL_IKE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IKEV2_PROTOCOL_IKE@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.9:
	ldr	w8, [x20]
	ldr	w9, [x21]
	cmp	w8, w9
	b.eq	LBB0_12
; %bb.10:
	add	w9, w9, #1
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.11:
	str	w8, [x21]
LBB0_12:
	ldrsw	x3, [x20, #16]
	mov	x8, #-10
	movk	x8, #16383, lsl #48
	add	x8, x23, x8
	and	x8, x8, #0x3fffffffffffffff
	cmp	x8, x3
	b.ge	LBB0_16
; %bb.13:
Lloh21:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.8@PAGE
Lloh25:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_4
LBB0_14:
Lloh26:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_4
LBB0_15:
	ldr	w0, [x24]
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_4
LBB0_16:
	add	x22, x20, #40
	cbz	w3, LBB0_21
; %bb.17:
	ldr	w0, [x24]
Lloh33:
	adrp	x1, l_.str.9@PAGE
Lloh34:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x2, x22
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_wpa_hexdump
	ldrsw	x8, [x20, #16]
	cbz	w8, LBB0_20
; %bb.18:
Lloh35:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x1, l_.str.10@PAGE
Lloh39:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_4
LBB0_19:
Lloh40:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x1, l_.str.7@PAGE
Lloh44:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_4
LBB0_20:
	add	x22, x22, x8, lsl #2
LBB0_21:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_28
; %bb.22:
	add	x23, x20, x23, lsl #2
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.23:
	mov	w24, #0
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_ikev2_parse_transform
	tbnz	w0, #31, LBB0_5
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x22, x22, w0, uxtw #2
	add	w24, w24, #1
	ldr	w8, [x20, #24]
	cmp	w24, w8
	b.lt	LBB0_24
LBB0_26:
	cmp	x22, x23
	b.eq	LBB0_6
; %bb.27:
Lloh45:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
Lloh48:
	adrp	x1, l_.str.12@PAGE
Lloh49:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_4
LBB0_28:
Lloh50:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh51:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
Lloh53:
	adrp	x1, l_.str.11@PAGE
Lloh54:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_4
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IKEV2: Too short proposal"

l_.str.1:                               ; @.str.1
	.asciz	"IKEV2: Invalid proposal length %d"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"IKEV2: SAi1 Proposal # %d"

l_.str.3:                               ; @.str.3
	.asciz	"IKEV2:   Type: %d  Proposal Length: %d  Protocol ID: %d"

l_.str.4:                               ; @.str.4
	.asciz	"IKEV2:   SPI Size: %d  Transforms: %d"

l_.str.5:                               ; @.str.5
	.asciz	"IKEV2: Unexpected Proposal type"

	.comm	_IKEV2_PROTOCOL_IKE,8,3         ; @IKEV2_PROTOCOL_IKE
l_.str.6:                               ; @.str.6
	.asciz	"IKEV2: Unexpected Protocol ID (only IKE allowed for EAP-IKEv2)"

l_.str.7:                               ; @.str.7
	.asciz	"IKEV2: Unexpected Proposal #"

l_.str.8:                               ; @.str.8
	.asciz	"IKEV2: Not enough room for SPI in proposal"

l_.str.9:                               ; @.str.9
	.asciz	"IKEV2:    SPI"

l_.str.10:                              ; @.str.10
	.asciz	"IKEV2: Unexpected SPI Size"

l_.str.11:                              ; @.str.11
	.asciz	"IKEV2: At least one transform required"

l_.str.12:                              ; @.str.12
	.asciz	"IKEV2: Unexpected data after transforms"

	.no_dead_strip	_ikev2_parse_proposal
.subsections_via_symbols
