	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sshbuf_check_sanity
_sshbuf_check_sanity:                   ## @sshbuf_check_sanity
	.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	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_SSHBUF_TELL
	movl	$1, %edi
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	cmpl	$0, 56(%rbx)
	je	LBB0_2
LBB0_3:
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.4:
	movq	_SSHBUF_REFS_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_10
## %bb.5:
	cmpq	$0, 40(%rbx)
	je	LBB0_10
## %bb.6:
	movq	8(%rbx), %rax
	movq	_SSHBUF_SIZE_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_10
## %bb.7:
	movq	16(%rbx), %rcx
	cmpq	%rax, %rcx
	jg	LBB0_10
## %bb.8:
	movq	24(%rbx), %rax
	cmpq	%rcx, %rax
	jg	LBB0_10
## %bb.9:
	xorl	%edi, %edi
	cmpq	%rax, 32(%rbx)
	setg	%dil
	jmp	LBB0_10
LBB0_2:
	movq	48(%rbx), %rax
	cmpq	40(%rbx), %rax
	je	LBB0_3
LBB0_10:
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	leaq	L_.str.1(%rip), %rdi
	callq	_SSHBUF_DBG
	movq	_SIGSEGV@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_SIG_DFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movl	(%rbx), %edi
	callq	_raise
	movq	_SSH_ERR_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_11:
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sanity"

	.comm	_SSHBUF_REFS_MAX,4,2            ## @SSHBUF_REFS_MAX
	.comm	_SSHBUF_SIZE_MAX,8,3            ## @SSHBUF_SIZE_MAX
L_.str.1:                               ## @.str.1
	.asciz	"SSH_ERR_INTERNAL_ERROR"

	.comm	_SIGSEGV,4,2                    ## @SIGSEGV
	.comm	_SIG_DFL,4,2                    ## @SIG_DFL
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ## @SSH_ERR_INTERNAL_ERROR
	.no_dead_strip	_sshbuf_check_sanity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sshbuf_check_sanity
_sshbuf_check_sanity:                   ; @sshbuf_check_sanity
	.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	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_SSHBUF_TELL
	cbz	x19, LBB0_9
; %bb.1:
	ldr	w8, [x19, #56]
	cbz	w8, LBB0_8
LBB0_2:
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _SSHBUF_REFS_MAX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SSHBUF_REFS_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, #1
	ccmp	w8, w9, #0, ge
	b.gt	LBB0_9
; %bb.3:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_9
; %bb.4:
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _SSHBUF_SIZE_MAX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SSHBUF_SIZE_MAX@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_9
; %bb.5:
	ldr	x9, [x19, #16]
	cmp	x9, x8
	b.gt	LBB0_9
; %bb.6:
	ldr	x8, [x19, #24]
	cmp	x8, x9
	b.gt	LBB0_9
; %bb.7:
	ldr	x9, [x19, #32]
	cmp	x9, x8
	cset	w0, gt
	b	LBB0_10
LBB0_8:
	ldp	x9, x8, [x19, #40]
	cmp	x8, x9
	b.eq	LBB0_2
LBB0_9:
	mov	w0, #1
LBB0_10:
	bl	___predict_false
	cbz	x0, LBB0_12
; %bb.11:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_SSHBUF_DBG
Lloh10:
	adrp	x19, _SIGSEGV@GOTPAGE
Lloh11:
	ldr	x19, [x19, _SIGSEGV@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh12:
	adrp	x8, _SIG_DFL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SIG_DFL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_signal
	ldr	w0, [x19]
	bl	_raise
Lloh15:
	adrp	x8, _SSH_ERR_INTERNAL_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SSH_ERR_INTERNAL_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sanity"

	.comm	_SSHBUF_REFS_MAX,4,2            ; @SSHBUF_REFS_MAX
	.comm	_SSHBUF_SIZE_MAX,8,3            ; @SSHBUF_SIZE_MAX
l_.str.1:                               ; @.str.1
	.asciz	"SSH_ERR_INTERNAL_ERROR"

	.comm	_SIGSEGV,4,2                    ; @SIGSEGV
	.comm	_SIG_DFL,4,2                    ; @SIG_DFL
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ; @SSH_ERR_INTERNAL_ERROR
	.no_dead_strip	_sshbuf_check_sanity
.subsections_via_symbols
