	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_sim_msg_finish             ## -- Begin function eap_sim_msg_finish
	.p2align	4, 0x90
_eap_sim_msg_finish:                    ## @eap_sim_msg_finish
	.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_1
## %bb.2:
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	callq	_wpabuf_mhead
	movq	%rax, %r13
	movq	8(%rbx), %rdi
	callq	_wpabuf_len
	movl	%eax, %edi
	callq	_host_to_be16
	movl	%eax, (%r13)
	testq	%r12, %r12
	je	LBB0_5
## %bb.3:
	cmpl	$0, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	8(%rbx), %rdi
	callq	_wpabuf_head
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rdi
	callq	_wpabuf_len
	movl	%eax, %r13d
	movq	8(%rbx), %rdi
	callq	_wpabuf_mhead
	movslq	(%rbx), %rcx
	leaq	(%rax,%rcx,4), %rcx
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	movq	%r15, %r8
	movq	%r14, %r9
	callq	_eap_sim_add_mac
LBB0_5:
	movq	8(%rbx), %r14
	movq	%rbx, %rdi
	callq	_os_free
	jmp	LBB0_6
LBB0_1:
	xorl	%r14d, %r14d
LBB0_6:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_TYPE_AKA_PRIME,4,2         ## @EAP_TYPE_AKA_PRIME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_sim_msg_finish             ; -- Begin function eap_sim_msg_finish
	.p2align	2
_eap_sim_msg_finish:                    ; @eap_sim_msg_finish
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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_5
; %bb.1:
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_wpabuf_mhead
	mov	x23, x0
	ldr	x0, [x19, #8]
	bl	_wpabuf_len
	bl	_host_to_be16
	str	w0, [x23]
	cbz	x22, LBB0_4
; %bb.2:
	ldr	w8, [x19]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_wpabuf_head
	mov	x23, x0
	ldr	x0, [x19, #8]
	bl	_wpabuf_len
	mov	x24, x0
	ldr	x0, [x19, #8]
	bl	_wpabuf_mhead
	ldrsw	x8, [x19]
	add	x3, x0, x8, lsl #2
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	mov	x4, x21
	mov	x5, x20
	bl	_eap_sim_add_mac
LBB0_4:
	ldr	x20, [x19, #8]
	mov	x0, x19
	bl	_os_free
	b	LBB0_6
LBB0_5:
	mov	x20, #0
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_TYPE_AKA_PRIME,4,2         ; @EAP_TYPE_AKA_PRIME
.subsections_via_symbols
