	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ikev2_parse_transform
_ikev2_parse_transform:                 ## @ikev2_parse_transform
	.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	%rcx, %rbx
	subq	%rdx, %rbx
	cmpq	$95, %rbx
	jg	LBB0_3
## %bb.1:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_2:
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_13
LBB0_3:
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	16(%rdx), %rdi
	callq	_WPA_GET_BE16
	movl	%eax, %r13d
	cmpl	$24, %eax
	jl	LBB0_12
## %bb.4:
	shrq	$2, %rbx
	movslq	%r13d, %rax
	cmpq	%rax, %rbx
	jl	LBB0_12
## %bb.5:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rdi
	callq	_WPA_GET_BE16
	movslq	%eax, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%rbx), %edi
	movl	(%r12), %edx
	movl	4(%r12), %r8d
	leaq	L_.str.3(%rip), %rsi
	movl	%r13d, %ecx
	movq	%r14, %r9
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	cmpl	$3, %eax
	jne	LBB0_15
LBB0_7:
	leaq	24(%r12), %rdx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %ecx
	addl	$-6, %ecx
	leaq	L_.str.5(%rip), %rsi
	callq	_wpa_hexdump
	movl	4(%r12), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_14
## %bb.8:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	movq	%r14, %rdi
	callq	_ikev2_get_prf
	testl	%eax, %eax
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_14
## %bb.10:
	cmpq	%r14, 8(%r15)
	jne	LBB0_14
## %bb.11:
	movq	%r14, 16(%rax)
	jmp	LBB0_14
LBB0_12:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_13:
	movl	$-1, %r13d
LBB0_14:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_2
LBB0_16:
	movq	%r14, %rdi
	callq	_ikev2_get_integ
	testl	%eax, %eax
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_14
## %bb.17:
	cmpq	%r14, 16(%r15)
	jne	LBB0_14
## %bb.18:
	movq	%r14, 8(%rax)
	jmp	LBB0_14
LBB0_19:
	movq	%r14, %rdi
	callq	_ikev2_get_encr
	testl	%eax, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_14
## %bb.20:
	cmpq	%r14, (%r15)
	jne	LBB0_14
## %bb.21:
	movq	_ENCR_AES_CBC@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	je	LBB0_26
## %bb.22:
	movq	%r14, 24(%rcx)
	jmp	LBB0_14
LBB0_23:
	movq	%r14, %rdi
	callq	_dh_groups_get
	testl	%eax, %eax
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_14
## %bb.24:
	cmpq	%r14, 24(%r15)
	jne	LBB0_14
## %bb.25:
	movq	%r14, (%rax)
	jmp	LBB0_14
LBB0_26:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_14
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_16
	.long	L0_0_set_19
	.long	L0_0_set_23
	.end_data_region
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IKEV2: Too short transform"

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

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"IKEV2:   Transform:"

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

L_.str.4:                               ## @.str.4
	.asciz	"IKEV2: Unexpected Transform type"

L_.str.5:                               ## @.str.5
	.asciz	"IKEV2:     Transform Attributes"

	.comm	_ENCR_AES_CBC,8,3               ## @ENCR_AES_CBC
L_.str.6:                               ## @.str.6
	.asciz	"IKEV2: No Transform Attr for AES"

	.no_dead_strip	_ikev2_parse_transform
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ikev2_parse_transform
_ikev2_parse_transform:                 ; @ikev2_parse_transform
	.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, x3, x2
	cmp	x8, #95
	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_12
LBB0_2:
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	lsr	x22, x8, #2
	ldr	x0, [x2, #16]
	bl	_WPA_GET_BE16
	mov	x19, x0
	sxtw	x8, w19
	cmp	w0, #24
	ccmp	x22, x8, #8, ge
	b.ge	LBB0_4
; %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
	b	LBB0_12
LBB0_4:
	ldr	x0, [x23, #8]
	bl	_WPA_GET_BE16
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x22, w0
Lloh10:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh11:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x24]
	ldp	w8, w9, [x23]
	stp	x9, x22, [sp, #16]
	mov	x9, x19
	stp	x8, x9, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	ldr	w8, [x23]
	cbz	w8, LBB0_6
; %bb.5:
	cmp	w8, #3
	b.ne	LBB0_11
LBB0_6:
	add	x2, x23, #24
	ldr	w0, [x24]
	sub	w3, w19, #6
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_hexdump
	ldr	w8, [x23, #4]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_13
; %bb.7:
Lloh18:
	adrp	x9, lJTI0_0@PAGE
Lloh19:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
	mov	x0, x22
	bl	_ikev2_get_prf
	cbz	w0, LBB0_13
; %bb.9:
	ldr	x8, [x21, #8]
	cmp	x8, x22
	b.ne	LBB0_13
; %bb.10:
	str	x22, [x20, #16]
	b	LBB0_13
LBB0_11:
Lloh20:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_12:
	bl	_wpa_printf
	mov	w19, #-1
LBB0_13:
	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_14:
	mov	x0, x22
	bl	_ikev2_get_integ
	cbz	w0, LBB0_13
; %bb.15:
	ldr	x8, [x21, #16]
	cmp	x8, x22
	b.ne	LBB0_13
; %bb.16:
	str	x22, [x20, #8]
	b	LBB0_13
LBB0_17:
	mov	x0, x22
	bl	_ikev2_get_encr
	cbz	w0, LBB0_13
; %bb.18:
	ldr	x8, [x21]
	cmp	x8, x22
	b.ne	LBB0_13
; %bb.19:
Lloh25:
	adrp	x8, _ENCR_AES_CBC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENCR_AES_CBC@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x8, x22
	b.eq	LBB0_24
; %bb.20:
	str	x22, [x20, #24]
	b	LBB0_13
LBB0_21:
	mov	x0, x22
	bl	_dh_groups_get
	cbz	w0, LBB0_13
; %bb.22:
	ldr	x8, [x21, #24]
	cmp	x8, x22
	b.ne	LBB0_13
; %bb.23:
	str	x22, [x20]
	b	LBB0_13
LBB0_24:
	ldr	w0, [x24]
Lloh28:
	adrp	x1, l_.str.6@PAGE
Lloh29:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_printf
	b	LBB0_13
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_17-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IKEV2: Too short transform"

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

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"IKEV2:   Transform:"

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

l_.str.4:                               ; @.str.4
	.asciz	"IKEV2: Unexpected Transform type"

l_.str.5:                               ; @.str.5
	.asciz	"IKEV2:     Transform Attributes"

	.comm	_ENCR_AES_CBC,8,3               ; @ENCR_AES_CBC
l_.str.6:                               ; @.str.6
	.asciz	"IKEV2: No Transform Attr for AES"

	.no_dead_strip	_ikev2_parse_transform
.subsections_via_symbols
