	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_sm_build_expanded_nak
_eap_sm_build_expanded_nak:             ## @eap_sm_build_expanded_nak
	.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, %r14
	movq	%rdx, %rbx
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movq	_EAP_TYPE_EXPANDED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	16(,%r14,8), %edx
	movq	_EAP_CODE_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %r8d
	callq	_eap_msg_alloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	(%r13), %rsi
	movq	%r14, %rdi
	callq	_wpabuf_put_be24
	movq	_EAP_TYPE_NAK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_wpabuf_put_be32
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.2:
	leaq	L_.str.1(%rip), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	cmpq	%rsi, (%r15)
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rdx
	cmpq	%rdx, 8(%r15)
	je	LBB0_8
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rdx
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_eap_allowed_method
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	movq	8(%rbx), %rcx
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_EAP_TYPE_EXPANDED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_u8
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_wpabuf_put_be24
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_wpabuf_put_be32
	incl	%r13d
	jmp	LBB0_8
LBB0_9:
	testl	%r13d, %r13d
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %r13
	jne	LBB0_11
LBB0_10:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_EAP_TYPE_EXPANDED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_u8
	movq	(%r13), %rsi
	movq	%r14, %rdi
	callq	_wpabuf_put_be24
	movq	_EAP_TYPE_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_wpabuf_put_be32
LBB0_11:
	movq	%r14, %rdi
	callq	_eap_update_len
LBB0_12:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP: Building expanded EAP-Nak"

	.comm	_EAP_VENDOR_IETF,8,3            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_EXPANDED,4,2          ## @EAP_TYPE_EXPANDED
	.comm	_EAP_CODE_RESPONSE,4,2          ## @EAP_CODE_RESPONSE
	.comm	_EAP_TYPE_NAK,8,3               ## @EAP_TYPE_NAK
L_.str.1:                               ## @.str.1
	.asciz	"EAP: allowed type: vendor=%u method=%u"

L_.str.2:                               ## @.str.2
	.asciz	"EAP: no more allowed methods"

	.comm	_EAP_TYPE_NONE,8,3              ## @EAP_TYPE_NONE
	.no_dead_strip	_eap_sm_build_expanded_nak
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_sm_build_expanded_nak
_eap_sm_build_expanded_nak:             ; @eap_sm_build_expanded_nak
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
Lloh4:
	adrp	x23, _EAP_VENDOR_IETF@GOTPAGE
Lloh5:
	ldr	x23, [x23, _EAP_VENDOR_IETF@GOTPAGEOFF]
	ldr	x0, [x23]
Lloh6:
	adrp	x25, _EAP_TYPE_EXPANDED@GOTPAGE
Lloh7:
	ldr	x25, [x25, _EAP_TYPE_EXPANDED@GOTPAGEOFF]
	ldr	w1, [x25]
	lsl	w8, w19, #3
	add	w2, w8, #16
Lloh8:
	adrp	x8, _EAP_CODE_RESPONSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAP_CODE_RESPONSE@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x4, x22
	bl	_eap_msg_alloc
	mov	x19, x0
	cbz	x0, LBB0_12
; %bb.1:
	ldr	x1, [x23]
	mov	x0, x19
	bl	_wpabuf_put_be24
Lloh11:
	adrp	x8, _EAP_TYPE_NAK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAP_TYPE_NAK@GOTPAGEOFF]
Lloh13:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_be32
	cbz	x20, LBB0_10
; %bb.2:
	mov	w26, #0
Lloh14:
	adrp	x22, l_.str.1@PAGE
Lloh15:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x20, [x20, #16]
	cbz	x20, LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x1, [x20]
	cmp	x8, x1
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #8]
	ldr	x2, [x20, #8]
	cmp	x8, x2
	b.eq	LBB0_3
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x2, [x20, #8]
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_eap_allowed_method
	cbz	x0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	ldp	x8, x9, [x20]
	stp	x8, x9, [sp]
	mov	x1, x22
	bl	_wpa_printf
	ldr	w1, [x25]
	mov	x0, x19
	bl	_wpabuf_put_u8
	ldr	x1, [x20]
	mov	x0, x19
	bl	_wpabuf_put_be24
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	_wpabuf_put_be32
	add	w26, w26, #1
	b	LBB0_3
LBB0_9:
	cbnz	w26, LBB0_11
LBB0_10:
	ldr	w0, [x24]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	ldr	w1, [x25]
	mov	x0, x19
	bl	_wpabuf_put_u8
	ldr	x1, [x23]
	mov	x0, x19
	bl	_wpabuf_put_be24
Lloh18:
	adrp	x8, _EAP_TYPE_NONE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EAP_TYPE_NONE@GOTPAGEOFF]
Lloh20:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_be32
LBB0_11:
	mov	x0, x19
	bl	_eap_update_len
LBB0_12:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP: Building expanded EAP-Nak"

	.comm	_EAP_VENDOR_IETF,8,3            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_EXPANDED,4,2          ; @EAP_TYPE_EXPANDED
	.comm	_EAP_CODE_RESPONSE,4,2          ; @EAP_CODE_RESPONSE
	.comm	_EAP_TYPE_NAK,8,3               ; @EAP_TYPE_NAK
l_.str.1:                               ; @.str.1
	.asciz	"EAP: allowed type: vendor=%u method=%u"

l_.str.2:                               ; @.str.2
	.asciz	"EAP: no more allowed methods"

	.comm	_EAP_TYPE_NONE,8,3              ; @EAP_TYPE_NONE
	.no_dead_strip	_eap_sm_build_expanded_nak
.subsections_via_symbols
