	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_ctrl_vendor_elem_add
_wpas_ctrl_vendor_elem_add:             ## @wpas_ctrl_vendor_elem_add
	.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	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_atoi
	movl	$-1, %r15d
	testl	%eax, %eax
	js	LBB0_15
## %bb.1:
	movl	%eax, %r14d
	movq	_NUM_VENDOR_ELEM_FRAMES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_15
## %bb.2:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_wpas_vendor_elem
	movq	%rax, %r13
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_os_strchr
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	movq	%rax, %r12
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	incq	%r12
	movq	%r12, %rdi
	callq	_os_strlen
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:
	movq	%rax, %r13
	testb	$1, %r13b
	jne	LBB0_15
## %bb.5:
	shrq	%r13
	movq	%r13, %rdi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_wpabuf_put
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%r13, %rdx
	callq	_hexstr2bin
	testq	%rax, %rax
	js	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	callq	_wpabuf_head_u8
	leaq	-56(%rbp), %rdx
	movl	%eax, %edi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	callq	_ieee802_11_parse_elems
	movq	_ParseFailed@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_7:
	movq	%rbx, %rdi
	callq	_wpabuf_free
	jmp	LBB0_15
LBB0_9:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movl	%r14d, %r12d
	leaq	(%rax,%r12,8), %rdi
	cmpq	$0, (%rax,%r12,8)
	je	LBB0_10
## %bb.11:
	movq	%r13, %rsi
	callq	_wpabuf_resize
	testq	%rax, %rax
	js	LBB0_7
## %bb.12:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rax
	movq	(%rax,%r12,8), %rdi
	movq	%rbx, %rsi
	callq	_wpabuf_put_buf
	movq	%rbx, %rdi
	callq	_wpabuf_free
	movq	%r14, %rdi
	jmp	LBB0_13
LBB0_10:
	movq	%rbx, (%rdi)
	movq	%rcx, %rdi
LBB0_13:
	callq	_wpas_vendor_elem_update
LBB0_14:
	xorl	%r15d, %r15d
LBB0_15:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_VENDOR_ELEM_FRAMES,4,2     ## @NUM_VENDOR_ELEM_FRAMES
	.comm	_ParseFailed,8,3                ## @ParseFailed
	.no_dead_strip	_wpas_ctrl_vendor_elem_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_ctrl_vendor_elem_add
_wpas_ctrl_vendor_elem_add:             ; @wpas_ctrl_vendor_elem_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_atoi
	mov	x19, x0
	mov	w0, #-1
	tbnz	w19, #31, LBB0_10
; %bb.1:
Lloh0:
	adrp	x8, _NUM_VENDOR_ELEM_FRAMES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_VENDOR_ELEM_FRAMES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w19, w8
	b.ge	LBB0_10
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_wpas_vendor_elem
	mov	x20, x0
	mov	x0, x21
	mov	w1, #32
	bl	_os_strchr
	cbz	x0, LBB0_9
; %bb.3:
	add	x23, x0, #1
	mov	x0, x23
	bl	_os_strlen
	cbz	x0, LBB0_10
; %bb.4:
	tbnz	w0, #0, LBB0_9
; %bb.5:
	lsr	x22, x0, #1
	mov	x0, x22
	bl	_wpabuf_alloc
	cbz	x0, LBB0_9
; %bb.6:
	mov	x21, x0
	mov	x1, x22
	bl	_wpabuf_put
	mov	x1, x0
	mov	x0, x23
	mov	x2, x22
	bl	_hexstr2bin
	tbnz	x0, #63, LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_wpabuf_head_u8
	add	x2, sp, #8
	mov	x1, x22
	mov	w3, #0
	bl	_ieee802_11_parse_elems
Lloh3:
	adrp	x8, _ParseFailed@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ParseFailed@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
LBB0_8:
	mov	x0, x21
	bl	_wpabuf_free
LBB0_9:
	mov	w0, #-1
LBB0_10:
	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
	add	sp, sp, #80
	ret
LBB0_11:
	ldr	x8, [x20]
	add	x0, x8, w19, uxtw #3
	ldr	x8, [x0]
	cbz	x8, LBB0_14
; %bb.12:
	mov	x1, x22
	bl	_wpabuf_resize
	tbnz	x0, #63, LBB0_8
; %bb.13:
	mov	w8, w19
	ldr	x9, [x20]
	ldr	x0, [x9, x8, lsl #3]
	mov	x1, x21
	bl	_wpabuf_put_buf
	mov	x0, x21
	bl	_wpabuf_free
	b	LBB0_15
LBB0_14:
	str	x21, [x0]
LBB0_15:
	mov	x0, x20
	bl	_wpas_vendor_elem_update
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_VENDOR_ELEM_FRAMES,4,2     ; @NUM_VENDOR_ELEM_FRAMES
	.comm	_ParseFailed,8,3                ; @ParseFailed
	.no_dead_strip	_wpas_ctrl_vendor_elem_add
.subsections_via_symbols
