	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function base64_tests
_base64_tests:                          ## @base64_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	L_.str.1(%rip), %rdi
	leaq	-16(%rbp), %rdx
	movl	$-1, %esi
	callq	_base64_encode
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	callq	_os_free
	movl	$1, %ebx
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	leaq	-16(%rbp), %rdx
	movl	$1, %esi
	callq	_base64_encode
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	cmpq	$5, -16(%rbp)
	jne	LBB0_9
## %bb.4:
	cmpb	$80, (%rax)
	jne	LBB0_9
## %bb.5:
	cmpb	$81, 1(%rax)
	jne	LBB0_9
## %bb.6:
	cmpb	$61, 2(%rax)
	jne	LBB0_9
## %bb.7:
	cmpb	$61, 3(%rax)
	jne	LBB0_9
## %bb.8:
	cmpb	$10, 4(%rax)
	je	LBB0_10
LBB0_9:
	incl	%ebx
LBB0_10:
	movq	%rax, %rdi
	callq	_os_free
	leaq	L_.str.2(%rip), %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_base64_encode
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	cmpb	$80, (%rax)
	jne	LBB0_16
## %bb.12:
	cmpb	$81, 1(%rax)
	jne	LBB0_16
## %bb.13:
	cmpb	$61, 2(%rax)
	jne	LBB0_16
## %bb.14:
	cmpb	$61, 3(%rax)
	jne	LBB0_16
## %bb.15:
	cmpb	$10, 4(%rax)
	je	LBB0_17
LBB0_16:
	incl	%ebx
LBB0_17:
	movq	%rax, %rdi
	callq	_os_free
	leaq	L_.str.1(%rip), %rdi
	leaq	-16(%rbp), %rdx
	xorl	%esi, %esi
	callq	_base64_decode
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	incl	%ebx
	movq	%rax, %rdi
	callq	_os_free
LBB0_19:
	leaq	L_.str.3(%rip), %rdi
	leaq	-16(%rbp), %rdx
	movl	$1, %esi
	callq	_base64_decode
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	incl	%ebx
	movq	%rax, %rdi
	callq	_os_free
LBB0_21:
	leaq	L_.str.4(%rip), %rdi
	leaq	-16(%rbp), %rdx
	movl	$4, %esi
	callq	_base64_decode
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	incl	%ebx
	movq	%rax, %rdi
	callq	_os_free
LBB0_23:
	leaq	L_.str.5(%rip), %rdi
	leaq	-16(%rbp), %rdx
	movl	$4, %esi
	callq	_base64_decode
	testq	%rax, %rax
	je	LBB0_26
## %bb.24:
	cmpq	$1, -16(%rbp)
	jne	LBB0_26
## %bb.25:
	cmpb	$61, (%rax)
	je	LBB0_27
LBB0_26:
	incl	%ebx
LBB0_27:
	movq	%rax, %rdi
	callq	_os_free
	leaq	L_.str.6(%rip), %rdi
	leaq	-16(%rbp), %rdx
	movl	$8, %esi
	callq	_base64_decode
	testq	%rax, %rax
	je	LBB0_30
## %bb.28:
	cmpq	$1, -16(%rbp)
	jne	LBB0_30
## %bb.29:
	cmpb	$61, (%rax)
	jne	LBB0_30
## %bb.32:
	movq	%rax, %rdi
	callq	_os_free
	testl	%ebx, %ebx
	jne	LBB0_31
## %bb.33:
	xorl	%eax, %eax
	jmp	LBB0_34
LBB0_30:
	incl	%ebx
	movq	%rax, %rdi
	callq	_os_free
LBB0_31:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %eax
LBB0_34:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"base64 tests"

L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"="

L_.str.3:                               ## @.str.3
	.asciz	"a"

L_.str.4:                               ## @.str.4
	.asciz	"===="

L_.str.5:                               ## @.str.5
	.asciz	"PQ=="

L_.str.6:                               ## @.str.6
	.asciz	"P.Q-=!=*"

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

	.no_dead_strip	_base64_tests
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function base64_tests
_base64_tests:                          ; @base64_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
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	w1, #-1
	bl	_base64_encode
	cbz	x0, LBB0_2
; %bb.1:
	bl	_os_free
	mov	w19, #1
	b	LBB0_3
LBB0_2:
	mov	w19, #0
LBB0_3:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x2, sp, #8
	mov	w1, #1
	bl	_base64_encode
	cbz	x0, LBB0_10
; %bb.4:
	ldr	x8, [sp, #8]
	cmp	x8, #5
	b.ne	LBB0_10
; %bb.5:
	ldrb	w8, [x0]
	cmp	w8, #80
	b.ne	LBB0_10
; %bb.6:
	ldrb	w8, [x0, #1]
	cmp	w8, #81
	b.ne	LBB0_10
; %bb.7:
	ldrb	w8, [x0, #2]
	cmp	w8, #61
	b.ne	LBB0_10
; %bb.8:
	ldrb	w8, [x0, #3]
	cmp	w8, #61
	b.ne	LBB0_10
; %bb.9:
	ldrb	w8, [x0, #4]
	cmp	w8, #10
	b.eq	LBB0_11
LBB0_10:
	add	w19, w19, #1
LBB0_11:
	bl	_os_free
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #1
	mov	x2, #0
	bl	_base64_encode
	cbz	x0, LBB0_17
; %bb.12:
	ldrb	w8, [x0]
	cmp	w8, #80
	b.ne	LBB0_17
; %bb.13:
	ldrb	w8, [x0, #1]
	cmp	w8, #81
	b.ne	LBB0_17
; %bb.14:
	ldrb	w8, [x0, #2]
	cmp	w8, #61
	b.ne	LBB0_17
; %bb.15:
	ldrb	w8, [x0, #3]
	cmp	w8, #61
	b.ne	LBB0_17
; %bb.16:
	ldrb	w8, [x0, #4]
	cmp	w8, #10
	b.eq	LBB0_18
LBB0_17:
	add	w19, w19, #1
LBB0_18:
	bl	_os_free
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	w1, #0
	bl	_base64_decode
	cbz	x0, LBB0_20
; %bb.19:
	add	w19, w19, #1
	bl	_os_free
LBB0_20:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	add	x2, sp, #8
	mov	w1, #1
	bl	_base64_decode
	cbz	x0, LBB0_22
; %bb.21:
	add	w19, w19, #1
	bl	_os_free
LBB0_22:
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	add	x2, sp, #8
	mov	w1, #4
	bl	_base64_decode
	cbz	x0, LBB0_24
; %bb.23:
	add	w19, w19, #1
	bl	_os_free
LBB0_24:
Lloh17:
	adrp	x0, l_.str.5@PAGE
Lloh18:
	add	x0, x0, l_.str.5@PAGEOFF
	add	x2, sp, #8
	mov	w1, #4
	bl	_base64_decode
	cbz	x0, LBB0_27
; %bb.25:
	ldr	x8, [sp, #8]
	cmp	x8, #1
	b.ne	LBB0_27
; %bb.26:
	ldrb	w8, [x0]
	cmp	w8, #61
	b.eq	LBB0_28
LBB0_27:
	add	w19, w19, #1
LBB0_28:
	bl	_os_free
Lloh19:
	adrp	x0, l_.str.6@PAGE
Lloh20:
	add	x0, x0, l_.str.6@PAGEOFF
	add	x2, sp, #8
	mov	w1, #8
	bl	_base64_decode
	cbz	x0, LBB0_33
; %bb.29:
	ldr	x8, [sp, #8]
	cmp	x8, #1
	b.ne	LBB0_33
; %bb.30:
	ldrb	w8, [x0]
	cmp	w8, #61
	b.ne	LBB0_33
; %bb.31:
	bl	_os_free
	cbnz	w19, LBB0_34
; %bb.32:
	mov	w0, #0
	b	LBB0_35
LBB0_33:
	add	w19, w19, #1
	bl	_os_free
LBB0_34:
Lloh21:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh24:
	adrp	x1, l_.str.7@PAGE
Lloh25:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_wpa_printf
	mov	w0, #-1
LBB0_35:
	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	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"base64 tests"

l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"="

l_.str.3:                               ; @.str.3
	.asciz	"a"

l_.str.4:                               ; @.str.4
	.asciz	"===="

l_.str.5:                               ; @.str.5
	.asciz	"PQ=="

l_.str.6:                               ; @.str.6
	.asciz	"P.Q-=!=*"

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

	.no_dead_strip	_base64_tests
.subsections_via_symbols
