	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bitfield_tests
_bitfield_tests:                        ## @bitfield_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	%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
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$123, %edi
	callq	_bitfield_alloc
	movl	$-1, %r12d
	testq	%rax, %rax
	je	LBB0_29
## %bb.1:
	movq	%rax, %r15
	xorl	%r13d, %r13d
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_bitfield_is_set
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_bitfield_is_set
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movl	$1, %r13d
LBB0_4:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_bitfield_set
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_bitfield_is_set
	movq	%rax, %rbx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_bitfield_clear
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_bitfield_is_set
	cmpq	$1, %rbx
	adcl	$0, %r13d
	cmpq	$1, %rax
	sbbl	$-1, %r13d
	movl	$2, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%r13d
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	leal	-1(%r14), %esi
	movq	%r15, %rdi
	callq	_bitfield_is_set
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_bitfield_set
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_bitfield_is_set
	cmpq	$1, %rax
	adcl	%ebx, %r13d
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_bitfield_clear
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_bitfield_is_set
	cmpq	$1, %rax
	sbbl	$-1, %r13d
	incl	%r12d
	cmpl	$122, %r14d
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%r12), %r14d
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_bitfield_is_set
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_bitfield_is_set
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_8
LBB0_9:
	movl	$124, %r12d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incl	%r13d
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	leal	-1(%rbx), %esi
	movq	%r15, %rdi
	callq	_bitfield_is_set
	cmpq	$1, %rax
	sbbl	$-1, %r13d
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_bitfield_set
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_bitfield_is_set
	cmpq	$1, %rax
	sbbl	$-1, %r13d
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_bitfield_clear
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_bitfield_is_set
	cmpq	$1, %rax
	sbbl	$-1, %r13d
	incl	%r12d
	cmpl	$199, %ebx
	je	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	leal	-1(%r12), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_bitfield_is_set
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_bitfield_is_set
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_13
LBB0_14:
	movl	$1, %ebx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	incl	%r13d
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_bitfield_set
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_bitfield_is_set
	cmpq	$1, %rax
	adcl	$0, %r13d
	incl	%ebx
	cmpl	$124, %ebx
	je	LBB0_19
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	leal	-1(%rbx), %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_bitfield_is_set
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_bitfield_is_set
	testq	%rax, %rax
	jne	LBB0_17
	jmp	LBB0_18
LBB0_19:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_bitfield_is_set
	cmpq	$1, %rax
	adcl	$0, %r13d
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_bitfield_clear
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_bitfield_is_set
	cmpq	$1, %rax
	sbbl	$-1, %r13d
	incl	%ebx
	cmpl	$123, %ebx
	jne	LBB0_20
## %bb.21:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_bitfield_get_first_zero
	xorl	%ecx, %ecx
	cmpl	%eax, %ebx
	setne	%cl
	addl	%ecx, %r13d
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_bitfield_set
	incl	%ebx
	cmpl	$123, %ebx
	jne	LBB0_22
## %bb.23:
	movq	%r15, %rdi
	callq	_bitfield_get_first_zero
	xorl	%ecx, %ecx
	cmpl	$-1, %eax
	setne	%cl
	addl	%ecx, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_bitfield_is_set
	movq	%rax, %r12
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_bitfield_clear
	movq	%r15, %rdi
	callq	_bitfield_get_first_zero
	xorl	%ecx, %ecx
	cmpl	%eax, %ebx
	setne	%cl
	cmpq	$1, %r12
	adcl	%ecx, %r13d
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_bitfield_set
	incl	%ebx
	cmpl	$123, %ebx
	jne	LBB0_24
## %bb.25:
	movq	%r15, %rdi
	callq	_bitfield_get_first_zero
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_bitfield_free
	movl	$8, %edi
	callq	_bitfield_alloc
	testq	%rax, %rax
	je	LBB0_28
## %bb.26:
	movq	%rax, %rbx
	xorl	%r14d, %r14d
	cmpl	$-1, %r12d
	setne	%r14b
	movq	%rax, %rdi
	callq	_bitfield_get_first_zero
	movl	%eax, %r15d
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_bitfield_set
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_bitfield_set
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_bitfield_set
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_bitfield_set
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_bitfield_set
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_bitfield_set
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_bitfield_set
	movq	%rbx, %rdi
	movl	$7, %esi
	callq	_bitfield_set
	addl	%r14d, %r13d
	cmpl	$1, %r15d
	sbbl	$-1, %r13d
	movq	%rbx, %rdi
	callq	_bitfield_get_first_zero
	xorl	%r15d, %r15d
	cmpl	$-1, %eax
	setne	%r15b
	movq	%rbx, %rdi
	callq	_bitfield_free
	addl	%r13d, %r15d
	je	LBB0_29
## %bb.27:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_28:
	movl	$-1, %r12d
LBB0_29:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bitfield tests"

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

	.no_dead_strip	_bitfield_tests
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bitfield_tests
_bitfield_tests:                        ; @bitfield_tests
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
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, #123
	bl	_bitfield_alloc
	cbz	x0, LBB0_28
; %bb.1:
	mov	x19, x0
	mov	w1, #0
	bl	_bitfield_is_set
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #1
	bl	_bitfield_is_set
	cbz	x0, LBB0_31
LBB0_3:
	mov	w21, #1
LBB0_4:
	mov	x0, x19
	mov	w1, #0
	bl	_bitfield_set
	mov	x0, x19
	mov	w1, #0
	bl	_bitfield_is_set
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_bitfield_clear
	mov	x0, x19
	mov	w1, #0
	bl	_bitfield_is_set
	cmp	x20, #0
	cinc	w8, w21, eq
	cmp	x0, #0
	cinc	w22, w8, ne
	mov	w20, #2
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w22, w22, #1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	sub	w1, w21, #1
	mov	x0, x19
	bl	_bitfield_is_set
	cmp	x0, #0
	cinc	w22, w22, ne
	mov	x0, x19
	mov	x1, x21
	bl	_bitfield_set
	mov	x0, x19
	mov	x1, x21
	bl	_bitfield_is_set
	cmp	x0, #0
	cinc	w22, w22, eq
	mov	x0, x19
	mov	x1, x21
	bl	_bitfield_clear
	mov	x0, x19
	mov	x1, x21
	bl	_bitfield_is_set
	cmp	x0, #0
	cinc	w22, w22, ne
	add	w20, w20, #1
	cmp	w21, #122
	b.eq	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	w21, w20, #1
	mov	x0, x19
	mov	x1, x21
	bl	_bitfield_is_set
	cbnz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_bitfield_is_set
	cbnz	x0, LBB0_5
	b	LBB0_6
LBB0_9:
	mov	w20, #124
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w22, w22, #1
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	sub	w1, w21, #1
	mov	x0, x19
	bl	_bitfield_is_set
	cmp	x0, #0
	cinc	w22, w22, ne
	mov	x0, x19
	mov	x1, x21
	bl	_bitfield_set
	mov	x0, x19
	mov	x1, x21
	bl	_bitfield_is_set
	cmp	x0, #0
	cinc	w22, w22, ne
	mov	x0, x19
	mov	x1, x21
	bl	_bitfield_clear
	mov	x0, x19
	mov	x1, x21
	bl	_bitfield_is_set
	cmp	x0, #0
	cinc	w22, w22, ne
	add	w20, w20, #1
	cmp	w21, #199
	b.eq	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	sub	w21, w20, #1
	mov	x0, x19
	mov	x1, x21
	bl	_bitfield_is_set
	cbnz	x0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_bitfield_is_set
	cbnz	x0, LBB0_10
	b	LBB0_11
LBB0_14:
	mov	w20, #1
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	add	w22, w22, #1
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_bitfield_set
	mov	x0, x19
	mov	x1, x21
	bl	_bitfield_is_set
	cmp	x0, #0
	cinc	w22, w22, eq
	add	w20, w20, #1
	cmp	w20, #124
	b.eq	LBB0_19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	sub	w21, w20, #1
	mov	x0, x19
	mov	x1, x21
	bl	_bitfield_is_set
	cbnz	x0, LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_bitfield_is_set
	cbnz	x0, LBB0_15
	b	LBB0_16
LBB0_19:
	mov	w20, #0
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_bitfield_is_set
	cmp	x0, #0
	cinc	w21, w22, eq
	mov	x0, x19
	mov	x1, x20
	bl	_bitfield_clear
	mov	x0, x19
	mov	x1, x20
	bl	_bitfield_is_set
	cmp	x0, #0
	cinc	w22, w21, ne
	add	w20, w20, #1
	cmp	w20, #123
	b.ne	LBB0_20
; %bb.21:
	mov	w20, #0
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_bitfield_get_first_zero
	cmp	w20, w0
	cinc	w22, w22, ne
	mov	x0, x19
	mov	x1, x20
	bl	_bitfield_set
	add	w20, w20, #1
	cmp	w20, #123
	b.ne	LBB0_22
; %bb.23:
	mov	x0, x19
	bl	_bitfield_get_first_zero
	mov	w20, #0
	cmn	w0, #1
	cinc	w22, w22, ne
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_bitfield_is_set
	cmp	x0, #0
	cinc	w21, w22, eq
	mov	x0, x19
	mov	x1, x20
	bl	_bitfield_clear
	mov	x0, x19
	bl	_bitfield_get_first_zero
	cmp	w20, w0
	cinc	w22, w21, ne
	mov	x0, x19
	mov	x1, x20
	bl	_bitfield_set
	add	w20, w20, #1
	cmp	w20, #123
	b.ne	LBB0_24
; %bb.25:
	mov	x0, x19
	bl	_bitfield_get_first_zero
	mov	x20, x0
	mov	x0, x19
	bl	_bitfield_free
	mov	w0, #8
	bl	_bitfield_alloc
	cbz	x0, LBB0_28
; %bb.26:
	mov	x19, x0
	bl	_bitfield_get_first_zero
	mov	x21, x0
	mov	x0, x19
	mov	w1, #0
	bl	_bitfield_set
	mov	x0, x19
	mov	w1, #1
	bl	_bitfield_set
	mov	x0, x19
	mov	w1, #2
	bl	_bitfield_set
	mov	x0, x19
	mov	w1, #3
	bl	_bitfield_set
	mov	x0, x19
	mov	w1, #4
	bl	_bitfield_set
	mov	x0, x19
	mov	w1, #5
	bl	_bitfield_set
	mov	x0, x19
	mov	w1, #6
	bl	_bitfield_set
	mov	x0, x19
	mov	w1, #7
	bl	_bitfield_set
	cmn	w20, #1
	cinc	w8, w22, ne
	cmp	w21, #0
	cinc	w20, w8, ne
	mov	x0, x19
	bl	_bitfield_get_first_zero
	cmn	w0, #1
	cinc	w20, w20, ne
	mov	x0, x19
	bl	_bitfield_free
	cbz	w20, LBB0_30
; %bb.27:
Lloh5:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
LBB0_28:
	mov	w0, #-1
LBB0_29:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_30:
	mov	w0, #0
	b	LBB0_29
LBB0_31:
	mov	w21, #0
	b	LBB0_4
	.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	"bitfield tests"

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

	.no_dead_strip	_bitfield_tests
.subsections_via_symbols
