	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function os_tests
_os_tests:                              ## @os_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	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	$-1, %rdi
	movq	$-1, %rsi
	callq	_os_calloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	callq	_os_free
	movl	$1, %ebx
LBB0_2:
	movl	$2, %edi
	movq	$-1, %rsi
	callq	_os_calloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	incl	%ebx
	movq	%rax, %rdi
	callq	_os_free
LBB0_4:
	movl	$2, %esi
	movq	$-1, %rdi
	callq	_os_calloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	incl	%ebx
	movq	%rax, %rdi
	callq	_os_free
LBB0_6:
	xorl	%edi, %edi
	movq	$-1, %rsi
	movq	$-1, %rdx
	callq	_os_realloc_array
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	incl	%ebx
	movq	%rax, %rdi
	callq	_os_free
LBB0_8:
	movl	$1, %edi
	movl	$1, %esi
	callq	_os_sleep
	leaq	-20(%rbp), %r14
	movq	%r14, (%rsp)
	movl	$1969, %edi                     ## imm = 0x7B1
	movl	$1, %esi
	movl	$1, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_os_mktime
	testq	%rax, %rax
	je	LBB0_22
## %bb.9:
	movq	%r14, (%rsp)
	movl	$1971, %edi                     ## imm = 0x7B3
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_os_mktime
	testq	%rax, %rax
	je	LBB0_22
## %bb.10:
	movq	%r14, (%rsp)
	movl	$1971, %edi                     ## imm = 0x7B3
	movl	$13, %esi
	movl	$1, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_os_mktime
	testq	%rax, %rax
	je	LBB0_22
## %bb.11:
	movq	%r14, (%rsp)
	movl	$1971, %edi                     ## imm = 0x7B3
	movl	$1, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_os_mktime
	testq	%rax, %rax
	je	LBB0_22
## %bb.12:
	movq	%r14, (%rsp)
	movl	$1971, %edi                     ## imm = 0x7B3
	movl	$1, %esi
	movl	$32, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_os_mktime
	testq	%rax, %rax
	je	LBB0_22
## %bb.13:
	movq	%r14, (%rsp)
	movl	$1971, %edi                     ## imm = 0x7B3
	movl	$1, %esi
	movl	$1, %edx
	movl	$-1, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_os_mktime
	testq	%rax, %rax
	je	LBB0_22
## %bb.14:
	movq	%r14, (%rsp)
	movl	$1971, %edi                     ## imm = 0x7B3
	movl	$1, %esi
	movl	$1, %edx
	movl	$24, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_os_mktime
	testq	%rax, %rax
	je	LBB0_22
## %bb.15:
	movq	%r14, (%rsp)
	movl	$1971, %edi                     ## imm = 0x7B3
	movl	$1, %esi
	movl	$1, %edx
	movl	$1, %ecx
	movl	$-1, %r8d
	movl	$1, %r9d
	callq	_os_mktime
	testq	%rax, %rax
	je	LBB0_22
## %bb.16:
	movq	%r14, (%rsp)
	movl	$1971, %edi                     ## imm = 0x7B3
	movl	$1, %esi
	movl	$1, %edx
	movl	$1, %ecx
	movl	$60, %r8d
	movl	$1, %r9d
	callq	_os_mktime
	testq	%rax, %rax
	je	LBB0_22
## %bb.17:
	movq	%r14, (%rsp)
	movl	$1971, %edi                     ## imm = 0x7B3
	movl	$1, %esi
	movl	$1, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	movl	$-1, %r9d
	callq	_os_mktime
	testq	%rax, %rax
	je	LBB0_22
## %bb.18:
	movq	%r14, (%rsp)
	movl	$1971, %edi                     ## imm = 0x7B3
	movl	$1, %esi
	movl	$1, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	movl	$61, %r9d
	callq	_os_mktime
	testq	%rax, %rax
	je	LBB0_22
## %bb.19:
	movq	%r14, (%rsp)
	movl	$1971, %edi                     ## imm = 0x7B3
	movl	$1, %esi
	movl	$1, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_os_mktime
	testq	%rax, %rax
	jne	LBB0_22
## %bb.20:
	movq	%r14, (%rsp)
	movl	$2020, %edi                     ## imm = 0x7E4
	movl	$1, %esi
	movl	$2, %edx
	movl	$3, %ecx
	movl	$4, %r8d
	movl	$5, %r9d
	callq	_os_mktime
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:
	movq	%r14, (%rsp)
	movl	$2015, %edi                     ## imm = 0x7DF
	movl	$12, %esi
	movl	$31, %edx
	movl	$23, %ecx
	movl	$59, %r8d
	movl	$59, %r9d
	callq	_os_mktime
	testq	%rax, %rax
	je	LBB0_23
LBB0_22:
	incl	%ebx
LBB0_23:
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%edx, %edx
	callq	_os_setenv
	testq	%rax, %rax
	jne	LBB0_26
## %bb.24:
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edx
	callq	_os_setenv
	testq	%rax, %rax
	jne	LBB0_26
## %bb.25:
	leaq	L_.str.1(%rip), %rdi
	callq	_os_unsetenv
	testq	%rax, %rax
	je	LBB0_27
LBB0_26:
	incl	%ebx
LBB0_27:
	leaq	L_.str.4(%rip), %rdi
	callq	_os_file_exists
	xorl	%edx, %edx
	testq	%rax, %rax
	setne	%dl
	addl	%ebx, %edx
	je	LBB0_28
## %bb.29:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %eax
	jmp	LBB0_30
LBB0_28:
	xorl	%eax, %eax
LBB0_30:
	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	"os tests"

L_.str.1:                               ## @.str.1
	.asciz	"hwsim_test_env"

L_.str.2:                               ## @.str.2
	.asciz	"test value"

L_.str.3:                               ## @.str.3
	.asciz	"test value 2"

L_.str.4:                               ## @.str.4
	.asciz	"/this-file-does-not-exists-hwsim"

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

	.no_dead_strip	_os_tests
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function os_tests
_os_tests:                              ; @os_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	x0, #-1
	mov	x1, #-1
	bl	_os_calloc
	cbz	x0, LBB0_2
; %bb.1:
	bl	_os_free
	mov	w19, #1
	b	LBB0_3
LBB0_2:
	mov	w19, #0
LBB0_3:
	mov	w0, #2
	mov	x1, #-1
	bl	_os_calloc
	cbz	x0, LBB0_5
; %bb.4:
	add	w19, w19, #1
	bl	_os_free
LBB0_5:
	mov	x0, #-1
	mov	w1, #2
	bl	_os_calloc
	cbz	x0, LBB0_7
; %bb.6:
	add	w19, w19, #1
	bl	_os_free
LBB0_7:
	mov	x0, #0
	mov	x1, #-1
	mov	x2, #-1
	bl	_os_realloc_array
	cbz	x0, LBB0_9
; %bb.8:
	add	w19, w19, #1
	bl	_os_free
LBB0_9:
	mov	w0, #1
	mov	w1, #1
	bl	_os_sleep
	add	x6, sp, #12
	mov	w0, #1969
	mov	w1, #1
	mov	w2, #1
	mov	w3, #1
	mov	w4, #1
	mov	w5, #1
	bl	_os_mktime
	cbz	x0, LBB0_23
; %bb.10:
	add	x6, sp, #12
	mov	w0, #1971
	mov	w1, #0
	mov	w2, #1
	mov	w3, #1
	mov	w4, #1
	mov	w5, #1
	bl	_os_mktime
	cbz	x0, LBB0_23
; %bb.11:
	add	x6, sp, #12
	mov	w0, #1971
	mov	w1, #13
	mov	w2, #1
	mov	w3, #1
	mov	w4, #1
	mov	w5, #1
	bl	_os_mktime
	cbz	x0, LBB0_23
; %bb.12:
	add	x6, sp, #12
	mov	w0, #1971
	mov	w1, #1
	mov	w2, #0
	mov	w3, #1
	mov	w4, #1
	mov	w5, #1
	bl	_os_mktime
	cbz	x0, LBB0_23
; %bb.13:
	add	x6, sp, #12
	mov	w0, #1971
	mov	w1, #1
	mov	w2, #32
	mov	w3, #1
	mov	w4, #1
	mov	w5, #1
	bl	_os_mktime
	cbz	x0, LBB0_23
; %bb.14:
	add	x6, sp, #12
	mov	w0, #1971
	mov	w1, #1
	mov	w2, #1
	mov	w3, #-1
	mov	w4, #1
	mov	w5, #1
	bl	_os_mktime
	cbz	x0, LBB0_23
; %bb.15:
	add	x6, sp, #12
	mov	w0, #1971
	mov	w1, #1
	mov	w2, #1
	mov	w3, #24
	mov	w4, #1
	mov	w5, #1
	bl	_os_mktime
	cbz	x0, LBB0_23
; %bb.16:
	add	x6, sp, #12
	mov	w0, #1971
	mov	w1, #1
	mov	w2, #1
	mov	w3, #1
	mov	w4, #-1
	mov	w5, #1
	bl	_os_mktime
	cbz	x0, LBB0_23
; %bb.17:
	add	x6, sp, #12
	mov	w0, #1971
	mov	w1, #1
	mov	w2, #1
	mov	w3, #1
	mov	w4, #60
	mov	w5, #1
	bl	_os_mktime
	cbz	x0, LBB0_23
; %bb.18:
	add	x6, sp, #12
	mov	w0, #1971
	mov	w1, #1
	mov	w2, #1
	mov	w3, #1
	mov	w4, #1
	mov	w5, #-1
	bl	_os_mktime
	cbz	x0, LBB0_23
; %bb.19:
	add	x6, sp, #12
	mov	w0, #1971
	mov	w1, #1
	mov	w2, #1
	mov	w3, #1
	mov	w4, #1
	mov	w5, #61
	bl	_os_mktime
	cbz	x0, LBB0_23
; %bb.20:
	add	x6, sp, #12
	mov	w0, #1971
	mov	w1, #1
	mov	w2, #1
	mov	w3, #1
	mov	w4, #1
	mov	w5, #1
	bl	_os_mktime
	cbnz	x0, LBB0_23
; %bb.21:
	add	x6, sp, #12
	mov	w0, #2020
	mov	w1, #1
	mov	w2, #2
	mov	w3, #3
	mov	w4, #4
	mov	w5, #5
	bl	_os_mktime
	cbnz	x0, LBB0_23
; %bb.22:
	add	x6, sp, #12
	mov	w0, #2015
	mov	w1, #12
	mov	w2, #31
	mov	w3, #23
	mov	w4, #59
	mov	w5, #59
	bl	_os_mktime
	cbz	x0, LBB0_24
LBB0_23:
	add	w19, w19, #1
LBB0_24:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #0
	bl	_os_setenv
	cbnz	x0, LBB0_27
; %bb.25:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #1
	bl	_os_setenv
	cbnz	x0, LBB0_27
; %bb.26:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_os_unsetenv
	cbz	x0, LBB0_28
LBB0_27:
	add	w19, w19, #1
LBB0_28:
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_os_file_exists
	cmp	x0, #0
	cinc	w8, w19, ne
	cbz	w8, LBB0_30
; %bb.29:
Lloh17:
	adrp	x9, _MSG_ERROR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MSG_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_31
LBB0_30:
	mov	w0, #0
LBB0_31:
	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	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"os tests"

l_.str.1:                               ; @.str.1
	.asciz	"hwsim_test_env"

l_.str.2:                               ; @.str.2
	.asciz	"test value"

l_.str.3:                               ; @.str.3
	.asciz	"test value 2"

l_.str.4:                               ; @.str.4
	.asciz	"/this-file-does-not-exists-hwsim"

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

	.no_dead_strip	_os_tests
.subsections_via_symbols
