	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chap_b642bin
_chap_b642bin:                          ## @chap_b642bin
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	3(%rax), %ecx
	addl	$6, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$2, %eax
	leal	(%rax,%rax,2), %r13d
	movl	%r13d, %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_log_err
LBB0_2:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_b64_pton
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%rbx, (%r15)
	movl	%eax, %eax
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_log_warnx
	movq	%rbx, %rdi
	callq	_free
	movl	$-1, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"calloc"

L_.str.1:                               ## @.str.1
	.asciz	"malformed base64 variable"

	.no_dead_strip	_chap_b642bin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chap_b642bin
_chap_b642bin:                          ; @chap_b642bin
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_strlen
	add	w8, w0, #3
	add	w9, w0, #6
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	add	w23, w8, w8, lsl #1
	mov	x0, x23
	mov	w1, #1
	bl	_calloc
	mov	x22, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_log_err
LBB0_2:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_b64_pton
	tbnz	w0, #31, LBB0_4
; %bb.3:
	mov	x8, x0
	mov	w0, #0
	str	x22, [x20]
	mov	w8, w8
	str	x8, [x19]
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_log_warnx
	mov	x0, x22
	bl	_free
	mov	w0, #-1
LBB0_5:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"calloc"

l_.str.1:                               ; @.str.1
	.asciz	"malformed base64 variable"

	.no_dead_strip	_chap_b642bin
.subsections_via_symbols
