	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_teap_build_start
_eap_teap_build_start:                  ## @eap_teap_build_start
	.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
	movl	%edx, %r8d
	movq	%rsi, %r14
	movslq	(%rsi), %rbx
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TYPE_TEAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	9(%rbx), %edx
	movq	_EAP_CODE_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_eap_msg_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	addq	$4, %rbx
	movq	_EAP_TLS_FLAGS_START@GOTPCREL(%rip), %rax
	movq	_EAP_TEAP_FLAGS_OUTER_TLV_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	orl	4(%r14), %esi
	movq	%r12, %rdi
	callq	_wpabuf_put_u8
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_wpabuf_put_be32
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put
	movq	%rax, %r13
	movq	_TEAP_TLV_AUTHORITY_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	movl	12(%r14), %edx
	movq	%r12, %rdi
	callq	_eap_teap_put_tlv
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put
	movq	%rax, %rbx
	movl	8(%r14), %edi
	callq	_wpabuf_free
	subq	%r13, %rbx
	shrq	$2, %rbx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_wpabuf_alloc_copy
	testl	%eax, %eax
	movq	_PHASE1@GOTPCREL(%rip), %rcx
	cmoveq	_FAILURE@GOTPCREL(%rip), %rcx
	movl	%eax, 8(%r14)
	cmovneq	%r12, %r15
	jmp	LBB0_3
LBB0_1:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	_FAILURE@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
LBB0_3:
	movl	(%rcx), %esi
	movq	%r14, %rdi
	callq	_eap_teap_state
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_TEAP,4,2              ## @EAP_TYPE_TEAP
	.comm	_EAP_CODE_REQUEST,4,2           ## @EAP_CODE_REQUEST
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TEAP: Failed to allocate memory for request"

	.comm	_FAILURE,4,2                    ## @FAILURE
	.comm	_EAP_TLS_FLAGS_START,4,2        ## @EAP_TLS_FLAGS_START
	.comm	_EAP_TEAP_FLAGS_OUTER_TLV_LEN,4,2 ## @EAP_TEAP_FLAGS_OUTER_TLV_LEN
	.comm	_TEAP_TLV_AUTHORITY_ID,4,2      ## @TEAP_TLV_AUTHORITY_ID
	.comm	_PHASE1,4,2                     ## @PHASE1
	.no_dead_strip	_eap_teap_build_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_teap_build_start
_eap_teap_build_start:                  ; @eap_teap_build_start
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x4, x2
	mov	x19, x1
	ldrsw	x21, [x1]
Lloh0:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh2:
	adrp	x9, _EAP_TYPE_TEAP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EAP_TYPE_TEAP@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	ldr	w1, [x9]
	add	w2, w21, #9
Lloh6:
	adrp	x8, _EAP_CODE_REQUEST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAP_CODE_REQUEST@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	bl	_eap_msg_alloc
	mov	x20, x0
	cbz	x0, LBB0_2
; %bb.1:
	add	x21, x21, #4
Lloh9:
	adrp	x8, _EAP_TLS_FLAGS_START@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EAP_TLS_FLAGS_START@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _EAP_TEAP_FLAGS_OUTER_TLV_LEN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EAP_TEAP_FLAGS_OUTER_TLV_LEN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #4]
	orr	w1, w8, w9
	mov	x0, x20
	bl	_wpabuf_put_u8
	mov	x0, x20
	mov	x1, x21
	bl	_wpabuf_put_be32
	mov	x0, x20
	mov	w1, #0
	bl	_wpabuf_put
	mov	x21, x0
Lloh15:
	adrp	x8, _TEAP_TLV_AUTHORITY_ID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TEAP_TLV_AUTHORITY_ID@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x19, #12]
	ldr	w3, [x19]
	mov	x0, x20
	bl	_eap_teap_put_tlv
	mov	x0, x20
	mov	w1, #0
	bl	_wpabuf_put
	mov	x22, x0
	ldr	w0, [x19, #8]
	bl	_wpabuf_free
	sub	x8, x22, x21
	lsr	x1, x8, #2
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_wpabuf_alloc_copy
Lloh18:
	adrp	x8, _PHASE1@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PHASE1@GOTPAGEOFF]
	str	w0, [x19, #8]
Lloh20:
	adrp	x9, _FAILURE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _FAILURE@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x9, x8, eq
	csel	x20, xzr, x20, eq
	b	LBB0_3
LBB0_2:
Lloh22:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
Lloh27:
	adrp	x8, _FAILURE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
LBB0_3:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_eap_teap_state
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_TEAP,4,2              ; @EAP_TYPE_TEAP
	.comm	_EAP_CODE_REQUEST,4,2           ; @EAP_CODE_REQUEST
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TEAP: Failed to allocate memory for request"

	.comm	_FAILURE,4,2                    ; @FAILURE
	.comm	_EAP_TLS_FLAGS_START,4,2        ; @EAP_TLS_FLAGS_START
	.comm	_EAP_TEAP_FLAGS_OUTER_TLV_LEN,4,2 ; @EAP_TEAP_FLAGS_OUTER_TLV_LEN
	.comm	_TEAP_TLV_AUTHORITY_ID,4,2      ; @TEAP_TLV_AUTHORITY_ID
	.comm	_PHASE1,4,2                     ; @PHASE1
	.no_dead_strip	_eap_teap_build_start
.subsections_via_symbols
