	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshbuf_b64tod                  ## -- Begin function sshbuf_b64tod
	.p2align	4, 0x90
_sshbuf_b64tod:                         ## @sshbuf_b64tod
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r14
	movq	%r12, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_b64_pton
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_sshbuf_put
	movl	%eax, %r15d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_explicit_bzero
	movq	%r14, %rdi
	callq	_free
	movl	%r15d, %eax
	sarl	$31, %eax
	andl	%r15d, %eax
	jmp	LBB0_8
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_5:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_explicit_bzero
	movq	%r14, %rdi
	callq	_free
	movq	_SSH_ERR_INVALID_FORMAT@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.comm	_SSH_ERR_INVALID_FORMAT,4,2     ## @SSH_ERR_INVALID_FORMAT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshbuf_b64tod                  ; -- Begin function sshbuf_b64tod
	.p2align	2
_sshbuf_b64tod:                         ; @sshbuf_b64tod
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x1
	mov	x21, x0
	mov	x0, x1
	bl	_strlen
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	bl	_malloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_b64_pton
	tbnz	w0, #31, LBB0_5
; %bb.3:
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_sshbuf_put
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_explicit_bzero
	mov	x0, x20
	bl	_free
	cmp	w21, #0
	csel	w0, w21, wzr, lt
	b	LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	_explicit_bzero
	mov	x0, x20
	bl	_free
Lloh2:
	adrp	x8, _SSH_ERR_INVALID_FORMAT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SSH_ERR_INVALID_FORMAT@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.comm	_SSH_ERR_INVALID_FORMAT,4,2     ; @SSH_ERR_INVALID_FORMAT
.subsections_via_symbols
