	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_sim_msg_add_encr_end       ## -- Begin function eap_sim_msg_add_encr_end
	.p2align	4, 0x90
_eap_sim_msg_add_encr_end:              ## @eap_sim_msg_add_encr_end
	.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
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.2:
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_7
## %bb.3:
	cmpl	$0, 8(%rbx)
	je	LBB0_7
## %bb.4:
	movl	%edx, %r12d
	movl	12(%rbx), %edi
	callq	_wpabuf_len
                                        ## kill: def $eax killed $eax def $rax
	movl	8(%rbx), %ecx
	negl	%ecx
	addl	%ecx, %eax
	addl	$-4, %eax
	movslq	%eax, %r13
	movq	%r13, %r15
	andq	$15, %r15
	je	LBB0_10
## %bb.5:
	movl	$16, %edx
	subl	%r15d, %edx
	cmpl	$13, %r15d
	jb	LBB0_8
## %bb.6:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_7
LBB0_8:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$12, %eax
	subl	%r15d, %eax
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	callq	_eap_sim_msg_add
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	addq	$16, %rax
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_os_memset
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	%rax, %r13
LBB0_10:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r13, %r15
	shrq	$2, %r15
	incq	%r15
	movl	12(%rbx), %edi
	callq	_wpabuf_mhead_u8
	movslq	8(%rbx), %rcx
	movq	%r15, 8(%rax,%rcx,8)
	movl	12(%rbx), %edi
	callq	_wpabuf_head_u8
	movq	%rax, %r12
	addq	(%rbx), %r12
	movl	12(%rbx), %edi
	callq	_wpabuf_mhead_u8
	movslq	8(%rbx), %rcx
	leaq	(%rax,%rcx,8), %rdx
	addq	$32, %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_aes_128_cbc_encrypt            ## TAILCALL
LBB0_7:
	movl	$-1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-SIM: eap_sim_msg_add_encr_end - invalid pad_len %d"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"   *AT_PADDING"

L_.str.2:                               ## @.str.2
	.asciz	"   (AT_ENCR_DATA data len %lu)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_sim_msg_add_encr_end       ; -- Begin function eap_sim_msg_add_encr_end
	.p2align	2
_eap_sim_msg_add_encr_end:              ; @eap_sim_msg_add_encr_end
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_10
; %bb.2:
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.3:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_10
; %bb.4:
	mov	x22, x2
	ldr	w0, [x20, #12]
	bl	_wpabuf_len
	ldr	w8, [x20, #8]
	sub	w8, w0, w8
	sub	w8, w8, #4
	sxtw	x21, w8
	ands	x23, x21, #0xf
	b.eq	LBB0_9
; %bb.5:
	mov	w8, #16
	sub	w24, w8, w23
	cmp	w23, #13
	b.lo	LBB0_7
; %bb.6:
Lloh0:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	x24, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	b	LBB0_10
LBB0_7:
Lloh5:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	w8, #12
	sub	w23, w8, w23
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	mov	x3, #0
	mov	x4, x23
	bl	_eap_sim_msg_add
	cbz	x0, LBB0_10
; %bb.8:
	add	x0, x0, #16
	mov	w1, #0
	mov	x2, x23
	bl	_os_memset
	add	x21, x21, w24, uxtw
LBB0_9:
Lloh10:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	lsr	x8, x21, #2
	add	x22, x8, #1
	ldr	w0, [x20, #12]
	bl	_wpabuf_mhead_u8
	ldp	w9, w8, [x20, #8]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x9, x0, x9, lsl #3
	str	x22, [x9, #8]
	mov	x0, x8
	bl	_wpabuf_head_u8
	ldr	x8, [x20]
	add	x22, x8, x0
	ldr	w0, [x20, #12]
	bl	_wpabuf_mhead_u8
	ldrsw	x8, [x20, #8]
	add	x8, x0, x8, lsl #3
	add	x2, x8, #32
	mov	x0, x19
	mov	x1, x22
	mov	x3, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_aes_128_cbc_encrypt
LBB0_10:
	mov	w0, #-1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-SIM: eap_sim_msg_add_encr_end - invalid pad_len %d"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"   *AT_PADDING"

l_.str.2:                               ; @.str.2
	.asciz	"   (AT_ENCR_DATA data len %lu)"

.subsections_via_symbols
