	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpabuf_tests
_wpabuf_tests:                          ## @wpabuf_tests
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$100, %edi
	callq	_os_malloc
	movl	$1, %r14d
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$100, %esi
	callq	_wpabuf_alloc_ext_data
	movq	%rax, -24(%rbp)
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	leaq	-24(%rbp), %rdi
	movl	$100, %esi
	callq	_wpabuf_resize
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movq	-24(%rbp), %rdi
	movl	$100, %esi
	callq	_wpabuf_put
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_6:
	movq	%rbx, %rdi
	callq	_os_free
	jmp	LBB0_7
LBB0_3:
	movl	$1, %r14d
LBB0_5:
	movq	-24(%rbp), %rdi
	callq	_wpabuf_free
LBB0_7:
	movl	$100, %edi
	callq	_wpabuf_alloc
	movq	%rax, -24(%rbp)
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	%rax, %rdi
	movl	$100, %esi
	callq	_wpabuf_put
	leaq	-24(%rbp), %rdi
	movl	$100, %esi
	callq	_wpabuf_resize
	testq	%rax, %rax
	js	LBB0_9
## %bb.10:
	movq	-24(%rbp), %rdi
	movl	$100, %esi
	callq	_wpabuf_put
	jmp	LBB0_11
LBB0_12:
	incl	%r14d
	movl	%r14d, %ebx
	jmp	LBB0_13
LBB0_9:
	incl	%r14d
LBB0_11:
	movq	-24(%rbp), %rdi
	xorl	%esi, %esi
	callq	_wpabuf_concat
	xorl	%ebx, %ebx
	cmpq	-24(%rbp), %rax
	setne	%bl
	addl	%r14d, %ebx
	movq	%rax, %rdi
	callq	_wpabuf_free
LBB0_13:
	movq	$0, -24(%rbp)
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	movl	$10, %esi
	callq	_wpabuf_zeropad
	movq	%rax, -24(%rbp)
	xorl	%edx, %edx
	testq	%rax, %rax
	setne	%dl
	addl	%ebx, %edx
	je	LBB0_15
## %bb.14:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wpabuf tests"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"%d wpabuf test(s) failed"

	.no_dead_strip	_wpabuf_tests
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpabuf_tests
_wpabuf_tests:                          ; @wpabuf_tests
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w0, #100
	bl	_os_malloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	mov	w1, #100
	bl	_wpabuf_alloc_ext_data
	str	x0, [sp, #8]
	cbz	x0, LBB0_4
; %bb.2:
	add	x0, sp, #8
	mov	w1, #100
	bl	_wpabuf_resize
	tbnz	x0, #63, LBB0_6
; %bb.3:
	ldr	x0, [sp, #8]
	mov	w1, #100
	bl	_wpabuf_put
	mov	w19, #0
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_os_free
LBB0_5:
	mov	w19, #1
	b	LBB0_8
LBB0_6:
	mov	w19, #1
LBB0_7:
	ldr	x0, [sp, #8]
	bl	_wpabuf_free
LBB0_8:
	mov	w0, #100
	bl	_wpabuf_alloc
	str	x0, [sp, #8]
	cbz	x0, LBB0_11
; %bb.9:
	mov	w1, #100
	bl	_wpabuf_put
	add	x0, sp, #8
	mov	w1, #100
	bl	_wpabuf_resize
	tbnz	x0, #63, LBB0_12
; %bb.10:
	ldr	x0, [sp, #8]
	mov	w1, #100
	bl	_wpabuf_put
	b	LBB0_13
LBB0_11:
	add	w19, w19, #1
	b	LBB0_14
LBB0_12:
	add	w19, w19, #1
LBB0_13:
	ldr	x0, [sp, #8]
	mov	x1, #0
	bl	_wpabuf_concat
	ldr	x8, [sp, #8]
	cmp	x0, x8
	cinc	w19, w19, ne
	bl	_wpabuf_free
LBB0_14:
	str	xzr, [sp, #8]
	mov	x0, #0
	mov	w1, #10
	bl	_wpabuf_zeropad
	str	x0, [sp, #8]
	cmp	x0, #0
	cinc	w8, w19, ne
	cbz	w8, LBB0_16
; %bb.15:
Lloh5:
	adrp	x9, _MSG_ERROR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MSG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_17
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wpabuf tests"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"%d wpabuf test(s) failed"

	.no_dead_strip	_wpabuf_tests
.subsections_via_symbols
