	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshbuf_dtob16                  ## -- Begin function sshbuf_dtob16
	.p2align	4, 0x90
_sshbuf_dtob16:                         ## @sshbuf_dtob16
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_sshbuf_len
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_sshbuf_ptr
	testq	%r14, %r14
	je	LBB0_5
## %bb.1:
	movq	%rax, %r15
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	cmpq	%rax, %r14
	jae	LBB0_7
## %bb.2:
	leaq	(%r14,%r14), %rdi
	incq	%rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	cmpq	$1, %r14
	jne	LBB0_8
## %bb.4:
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	testb	$1, %r14b
	jne	LBB0_11
	jmp	LBB0_12
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_5:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strdup                         ## TAILCALL
LBB0_8:
	movq	%r14, %r8
	andq	$-2, %r8
	negq	%r8
	xorl	%edi, %edi
	leaq	L___const.sshbuf_dtob16.hex(%rip), %r9
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rcx,2), %ebx
	movl	%ebx, %esi
	shrl	$4, %esi
	andl	$15, %esi
	movzbl	(%rsi,%r9), %edx
	movb	%dl, (%rax,%rcx)
	andl	$15, %ebx
	movzbl	(%rbx,%r9), %edx
	movb	%dl, 1(%rax,%rcx)
	movl	4(%r15,%rcx,2), %edx
	movl	%edx, %esi
	shrl	$4, %esi
	andl	$15, %esi
	movzbl	(%rsi,%r9), %ebx
	movb	%bl, 2(%rax,%rcx)
	andl	$15, %edx
	movzbl	(%rdx,%r9), %edx
	movb	%dl, 3(%rax,%rcx)
	addq	$4, %rcx
	addq	$-2, %rdi
	cmpq	%rdi, %r8
	jne	LBB0_9
## %bb.10:
	negq	%rdi
	testb	$1, %r14b
	je	LBB0_12
LBB0_11:
	movl	(%r15,%rdi,4), %edx
	movl	%edx, %esi
	shrl	$4, %esi
	andl	$15, %esi
	leaq	L___const.sshbuf_dtob16.hex(%rip), %rdi
	movb	(%rsi,%rdi), %bl
	movq	%rcx, %rsi
	orq	$1, %rsi
	movb	%bl, (%rax,%rcx)
	andl	$15, %edx
	movb	(%rdx,%rdi), %dl
	addq	$2, %rcx
	movb	%dl, (%rax,%rsi)
LBB0_12:
	movb	$0, (%rax,%rcx)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
	.p2align	4                               ## @__const.sshbuf_dtob16.hex
L___const.sshbuf_dtob16.hex:
	.asciz	"0123456789abcdef"

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

	.comm	_SIZE_MAX,4,2                   ## @SIZE_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshbuf_dtob16                  ; -- Begin function sshbuf_dtob16
	.p2align	2
_sshbuf_dtob16:                         ; @sshbuf_dtob16
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_sshbuf_len
	mov	x19, x0
	mov	x0, x20
	bl	_sshbuf_ptr
	cbz	x19, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	cmp	x19, w8, sxtw
	b.hs	LBB0_6
; %bb.2:
	mov	x20, x0
	mov	w0, #1
	bfi	x0, x19, #1, #63
	bl	_malloc
	cbz	x0, LBB0_18
; %bb.3:
Lloh3:
	adrp	x8, l___const.sshbuf_dtob16.hex@PAGE
Lloh4:
	add	x8, x8, l___const.sshbuf_dtob16.hex@PAGEOFF
	cmp	x19, #2
	b.hs	LBB0_7
; %bb.4:
	mov	x10, #0
	mov	x9, #0
	b	LBB0_15
LBB0_5:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_strdup
LBB0_6:
	mov	x0, #0
	b	LBB0_18
LBB0_7:
	mov	x10, #0
	sub	x9, x19, #1
	adds	x9, x9, x9
	add	x11, x0, x9
	cset	w12, hs
	cmp	x11, x0
	b.lo	LBB0_14
; %bb.8:
	tbnz	w12, #0, LBB0_14
; %bb.9:
	add	x11, x0, #1
	add	x9, x11, x9
	cmp	x9, x11
	b.lo	LBB0_14
; %bb.10:
	mov	x9, x10
	tbnz	w12, #0, LBB0_15
; %bb.11:
	and	x10, x19, #0xfffffffffffffffe
	lsl	x9, x10, #1
	add	x12, x20, #4
	mov	x13, x10
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldp	w14, w15, [x12, #-4]
	ubfx	x16, x14, #4, #4
	ubfx	x17, x15, #4, #4
	ldrb	w16, [x8, x16]
	ldrb	w17, [x8, x17]
	sturb	w16, [x11, #-1]
	and	x14, x14, #0xf
	and	x15, x15, #0xf
	ldrb	w14, [x8, x14]
	ldrb	w15, [x8, x15]
	strb	w17, [x11, #1]
	strb	w14, [x11]
	strb	w15, [x11, #2]
	add	x12, x12, #8
	add	x11, x11, #4
	subs	x13, x13, #2
	b.ne	LBB0_12
; %bb.13:
	cmp	x19, x10
	b.ne	LBB0_15
	b	LBB0_17
LBB0_14:
	mov	x9, x10
LBB0_15:
	sub	x11, x19, x10
	add	x10, x20, x10, lsl #2
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10], #4
	ubfx	x13, x12, #4, #4
	ldrb	w13, [x8, x13]
	add	x14, x0, x9
	strb	w13, [x14]
	and	x12, x12, #0xf
	ldrb	w12, [x8, x12]
	add	x9, x9, #2
	strb	w12, [x14, #1]
	subs	x11, x11, #1
	b.ne	LBB0_16
LBB0_17:
	strb	wzr, [x0, x9]
LBB0_18:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l___const.sshbuf_dtob16.hex:            ; @__const.sshbuf_dtob16.hex
	.asciz	"0123456789abcdef"

l_.str:                                 ; @.str
	.space	1

	.comm	_SIZE_MAX,4,2                   ; @SIZE_MAX
.subsections_via_symbols
