	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radius_msg_finish              ## -- Begin function radius_msg_finish
	.p2align	4, 0x90
_radius_msg_finish:                     ## @radius_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_MD5_MAC_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	(%r13), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_os_memset
	movq	_RADIUS_ATTR_MESSAGE_AUTHENTICATOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %ecx
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_radius_msg_add_attr
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %rbx
	movl	(%r12), %edi
	callq	_wpabuf_len
	movl	%eax, %edi
	callq	_host_to_be16
	movq	8(%r12), %rcx
	movq	%rax, (%rcx)
	movl	(%r12), %edi
	callq	_wpabuf_head
	movl	%eax, %r13d
	movl	(%r12), %edi
	callq	_wpabuf_len
	addq	$4, %rbx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	movl	%eax, %ecx
	movq	%rbx, %r8
	callq	_hmac_md5
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_4:
	movl	(%r12), %edi
	callq	_wpabuf_len
	movl	%eax, %edi
	callq	_host_to_be16
	movq	8(%r12), %rcx
	movq	%rax, (%rcx)
LBB0_5:
	movl	(%r12), %edi
	callq	_wpabuf_len
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$65536, %ecx                    ## imm = 0x10000
	jl	LBB0_7
## %bb.6:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r12), %edi
	callq	_wpabuf_len
	movslq	%eax, %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %eax
	jmp	LBB0_7
LBB0_3:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %eax
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MD5_MAC_LEN,4,2                ## @MD5_MAC_LEN
	.comm	_RADIUS_ATTR_MESSAGE_AUTHENTICATOR,4,2 ## @RADIUS_ATTR_MESSAGE_AUTHENTICATOR
	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RADIUS: Could not add Message-Authenticator"

L_.str.1:                               ## @.str.1
	.asciz	"RADIUS: Too long message (%lu)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radius_msg_finish              ; -- Begin function radius_msg_finish
	.p2align	2
_radius_msg_finish:                     ; @radius_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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cbz	x1, LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x24, sp
Lloh3:
	adrp	x23, _MD5_MAC_LEN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MD5_MAC_LEN@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	w2, [x23]
	mov	x0, x22
	mov	w1, #0
	bl	_os_memset
Lloh7:
	adrp	x8, _RADIUS_ATTR_MESSAGE_AUTHENTICATOR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RADIUS_ATTR_MESSAGE_AUTHENTICATOR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w3, [x23]
	mov	x0, x19
	mov	x2, x22
	bl	_radius_msg_add_attr
	cbz	x0, LBB0_7
; %bb.2:
	mov	x22, x0
	ldr	w0, [x19]
	bl	_wpabuf_len
	bl	_host_to_be16
	ldr	x8, [x19, #8]
	str	x0, [x8]
	ldr	w0, [x19]
	bl	_wpabuf_head
	mov	x23, x0
	ldr	w0, [x19]
	bl	_wpabuf_len
	mov	x3, x0
	add	x4, x22, #4
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_hmac_md5
	mov	sp, x24
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19]
	bl	_wpabuf_len
	bl	_host_to_be16
	ldr	x8, [x19, #8]
	str	x0, [x8]
LBB0_4:
	ldr	w0, [x19]
	bl	_wpabuf_len
	cmp	w0, #16, lsl #12                ; =65536
	b.lt	LBB0_6
; %bb.5:
Lloh10:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
	ldr	w0, [x19]
	bl	_wpabuf_len
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [sp, #-16]!
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_wpa_printf
	add	sp, sp, #16
	mov	w0, #-1
	b	LBB0_8
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w0, #-1
	mov	sp, x24
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #48
	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
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MD5_MAC_LEN,4,2                ; @MD5_MAC_LEN
	.comm	_RADIUS_ATTR_MESSAGE_AUTHENTICATOR,4,2 ; @RADIUS_ATTR_MESSAGE_AUTHENTICATOR
	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RADIUS: Could not add Message-Authenticator"

l_.str.1:                               ; @.str.1
	.asciz	"RADIUS: Too long message (%lu)"

.subsections_via_symbols
