	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_sm_buildNak
_eap_sm_buildNak:                       ## @eap_sm_buildNak
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rdx
	movl	12(%r15), %ecx
	movl	8(%r15), %r8d
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	leaq	-56(%rbp), %rdi
	callq	_eap_peer_get_methods
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	movq	%rax, %rbx
	movq	(%r15), %rax
	movq	_EAP_TYPE_EXPANDED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	-56(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	callq	_eap_sm_build_expanded_nak
	movq	%rax, %rbx
	jmp	LBB0_20
LBB0_4:
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	_EAP_TYPE_NAK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-56(%rbp), %edx
	addl	$6, %edx
	movq	_EAP_CODE_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %r8d
	callq	_eap_msg_alloc
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_19
## %bb.5:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_10 Depth=1
	leaq	8(%rbx), %rax
	movl	%r14d, %r12d
LBB0_7:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	(%rax), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_wpabuf_put_u8
	incl	%r13d
	movl	%r12d, %r14d
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %r12
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_16
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdx
	cmpq	(%r12), %rsi
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	(%r15), %rdx
	je	LBB0_9
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rdi
	callq	_eap_allowed_method
	testq	%rax, %rax
	je	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	je	LBB0_6
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$1, %r12d
	movq	_EAP_TYPE_EXPANDED@GOTPCREL(%rip), %rax
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$1, %r14d
	jmp	LBB0_8
LBB0_19:
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_16:
	testl	%r13d, %r13d
	jne	LBB0_18
## %bb.17:
	movq	_EAP_TYPE_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_wpabuf_put_u8
LBB0_18:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %ecx
	callq	_wpa_hexdump
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_eap_update_len
LBB0_20:
	movq	%rbx, %rax
	addq	$24, %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 EAP-Nak (requested type %u vendor=%u method=%u not allowed)"

	.comm	_EAP_TYPE_EXPANDED,8,3          ## @EAP_TYPE_EXPANDED
	.comm	_EAP_VENDOR_IETF,8,3            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_NAK,4,2               ## @EAP_TYPE_NAK
	.comm	_EAP_CODE_RESPONSE,4,2          ## @EAP_CODE_RESPONSE
	.comm	_EAP_TYPE_NONE,8,3              ## @EAP_TYPE_NONE
L_.str.1:                               ## @.str.1
	.asciz	"EAP: allowed methods"

	.no_dead_strip	_eap_sm_buildNak
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_sm_buildNak
_eap_sm_buildNak:                       ; @eap_sm_buildNak
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	x2, [x19]
	ldp	w4, w3, [x19, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	add	x0, sp, #8
	bl	_eap_peer_get_methods
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _EAP_TYPE_EXPANDED@GOTPAGE
Lloh5:
	ldr	x9, [x9, _EAP_TYPE_EXPANDED@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x3, [sp, #8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_eap_sm_build_expanded_nak
	mov	x20, x0
	b	LBB0_18
LBB0_3:
	mov	x20, #0
	b	LBB0_18
LBB0_4:
Lloh7:
	adrp	x25, _EAP_VENDOR_IETF@GOTPAGE
Lloh8:
	ldr	x25, [x25, _EAP_VENDOR_IETF@GOTPAGEOFF]
	ldr	x0, [x25]
Lloh9:
	adrp	x8, _EAP_TYPE_NAK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EAP_TYPE_NAK@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w8, [sp, #8]
	add	w2, w8, #6
Lloh12:
	adrp	x8, _EAP_CODE_RESPONSE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EAP_CODE_RESPONSE@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x4, x20
	bl	_eap_msg_alloc
	mov	x20, x0
	cbz	x0, LBB0_18
; %bb.5:
	mov	x0, x20
	mov	w1, #0
	bl	_wpabuf_put
	mov	x23, x0
	mov	w27, #0
	mov	w22, #0
Lloh15:
	adrp	x26, _EAP_TYPE_EXPANDED@GOTPAGE
Lloh16:
	ldr	x26, [x26, _EAP_TYPE_EXPANDED@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x28, x26
	mov	x27, x8
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x1, [x28]
	mov	x0, x20
	bl	_wpabuf_put_u8
	add	w22, w22, #1
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x21, [x21, #16]
	cbz	x21, LBB0_15
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x21]
	ldr	x8, [x25]
	mov	x28, x21
	ldr	x2, [x28, #8]!
	cmp	x1, x8
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19]
	cmp	x2, x8
	b.eq	LBB0_8
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	bl	_eap_allowed_method
	cbz	x0, LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w8, #1
	cbz	w27, LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w27, #1
	b	LBB0_8
LBB0_15:
	cbnz	w22, LBB0_17
; %bb.16:
Lloh17:
	adrp	x8, _EAP_TYPE_NONE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EAP_TYPE_NONE@GOTPAGEOFF]
Lloh19:
	ldr	x1, [x8]
	mov	x0, x20
	bl	_wpabuf_put_u8
LBB0_17:
	ldr	w0, [x24]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
	mov	x3, x22
	bl	_wpa_hexdump
	mov	x0, x20
	bl	_eap_update_len
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP: Building EAP-Nak (requested type %u vendor=%u method=%u not allowed)"

	.comm	_EAP_TYPE_EXPANDED,8,3          ; @EAP_TYPE_EXPANDED
	.comm	_EAP_VENDOR_IETF,8,3            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_NAK,4,2               ; @EAP_TYPE_NAK
	.comm	_EAP_CODE_RESPONSE,4,2          ; @EAP_CODE_RESPONSE
	.comm	_EAP_TYPE_NONE,8,3              ; @EAP_TYPE_NONE
l_.str.1:                               ; @.str.1
	.asciz	"EAP: allowed methods"

	.no_dead_strip	_eap_sm_buildNak
.subsections_via_symbols
