	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_msg_alloc                  ## -- Begin function eap_msg_alloc
	.p2align	4, 0x90
_eap_msg_alloc:                         ## @eap_msg_alloc
	.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	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movl	%esi, %r13d
	movl	%edi, %r15d
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rcx
	leaq	32(%rdx), %rax
	addq	$25, %rbx
	cmpl	%edi, (%rcx)
	cmovneq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_wpabuf_alloc
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%r12, %rdi
	movl	$24, %esi
	callq	_wpabuf_put
	movq	%rax, %r13
	movq	%r14, 16(%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r13)
	movq	%rbx, %rdi
	callq	_host_to_be16
	movl	%eax, (%r13)
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_wpabuf_put_u8
	jmp	LBB0_4
LBB0_3:
	movq	_EAP_TYPE_EXPANDED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_wpabuf_put_u8
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_wpabuf_put_be24
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_wpabuf_put_be32
LBB0_4:
	movq	%r12, %rax
	addq	$24, %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_EXPANDED,4,2          ## @EAP_TYPE_EXPANDED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_msg_alloc                  ; -- Begin function eap_msg_alloc
	.p2align	2
_eap_msg_alloc:                         ; @eap_msg_alloc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x4
	mov	x23, x3
	mov	x19, x1
	mov	x21, x0
	mov	w8, #32
Lloh0:
	adrp	x26, _EAP_VENDOR_IETF@GOTPAGE
Lloh1:
	ldr	x26, [x26, _EAP_VENDOR_IETF@GOTPAGEOFF]
	ldr	w9, [x26]
	cmp	w9, w0
	mov	w9, #25
	csel	x8, x9, x8, eq
	add	x24, x8, x2
	mov	x0, x24
	bl	_wpabuf_alloc
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x20
	mov	w1, #24
	bl	_wpabuf_put
	mov	x25, x0
	stp	x22, x23, [x0, #8]
	mov	x0, x24
	bl	_host_to_be16
	str	w0, [x25]
	ldr	w8, [x26]
	cmp	w8, w21
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_wpabuf_put_u8
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _EAP_TYPE_EXPANDED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EAP_TYPE_EXPANDED@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wpabuf_put_u8
	mov	x0, x20
	mov	x1, x21
	bl	_wpabuf_put_be24
	mov	x0, x20
	mov	x1, x19
	bl	_wpabuf_put_be32
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_EXPANDED,4,2          ; @EAP_TYPE_EXPANDED
.subsections_via_symbols
