	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_userauth                       ## -- Begin function userauth
	.p2align	4, 0x90
_userauth:                              ## @userauth
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	_active_state@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	24(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_3:
	movq	(%rbx), %rdi
	callq	_free
	movq	$0, (%rbx)
	movq	8(%rbx), %rdi
	testq	%r14, %r14
	je	LBB0_4
## %bb.5:
	callq	_free
	movq	%r14, 8(%rbx)
	jmp	LBB0_6
LBB0_4:
	movq	%rdi, %r14
LBB0_6:
	leaq	L_.str.2(%rip), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_authmethod_get
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	24(%rbx), %edx
	movl	28(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rcx
	callq	_fatal
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, 16(%rbx)
	movq	_SSH2_MSG_USERAUTH_PER_METHOD_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSH2_MSG_USERAUTH_PER_METHOD_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_ssh_dispatch_range
	movq	%rbx, %rdi
	callq	*(%r12)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_debug2
	movq	$0, 8(%r12)
	jmp	LBB0_7
LBB0_11:
	movl	16(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_debug2                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_active_state,8,3               ## @active_state
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s@%s: Permission denied (%s)."

	.comm	_SSH2_MSG_USERAUTH_PER_METHOD_MIN,4,2 ## @SSH2_MSG_USERAUTH_PER_METHOD_MIN
	.comm	_SSH2_MSG_USERAUTH_PER_METHOD_MAX,4,2 ## @SSH2_MSG_USERAUTH_PER_METHOD_MAX
L_.str.1:                               ## @.str.1
	.asciz	"we sent a %s packet, wait for reply"

L_.str.2:                               ## @.str.2
	.asciz	"we did not send a packet, disable method"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_userauth                       ; -- Begin function userauth
	.p2align	2
_userauth:                              ; @userauth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _active_state@GOTPAGE
Lloh1:
	ldr	x8, [x8, _active_state@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	blr	x8
LBB0_3:
	ldr	x0, [x19]
	bl	_free
	str	xzr, [x19]
	ldr	x0, [x19, #8]
	cbz	x20, LBB0_5
; %bb.4:
	bl	_free
	str	x20, [x19, #8]
	b	LBB0_6
LBB0_5:
	mov	x20, x0
LBB0_6:
Lloh3:
	adrp	x22, l_.str@PAGE
Lloh4:
	add	x22, x22, l_.str@PAGEOFF
Lloh5:
	adrp	x25, _SSH2_MSG_USERAUTH_PER_METHOD_MIN@GOTPAGE
Lloh6:
	ldr	x25, [x25, _SSH2_MSG_USERAUTH_PER_METHOD_MIN@GOTPAGEOFF]
Lloh7:
	adrp	x26, _SSH2_MSG_USERAUTH_PER_METHOD_MAX@GOTPAGE
Lloh8:
	ldr	x26, [x26, _SSH2_MSG_USERAUTH_PER_METHOD_MAX@GOTPAGEOFF]
Lloh9:
	adrp	x23, l_.str.2@PAGE
Lloh10:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_authmethod_get
	mov	x24, x0
	cbnz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldp	w2, w1, [x19, #24]
	mov	x0, x22
	mov	x3, x20
	bl	_fatal
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	x24, [x19, #16]
	ldr	w1, [x25]
	ldr	w2, [x26]
	mov	x0, x21
	mov	x3, #0
	bl	_ssh_dispatch_range
	ldr	x8, [x24]
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	bl	_debug2
	str	xzr, [x24, #8]
	b	LBB0_7
LBB0_11:
	ldr	w8, [x24, #16]
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_debug2
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_active_state,8,3               ; @active_state
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s@%s: Permission denied (%s)."

	.comm	_SSH2_MSG_USERAUTH_PER_METHOD_MIN,4,2 ; @SSH2_MSG_USERAUTH_PER_METHOD_MIN
	.comm	_SSH2_MSG_USERAUTH_PER_METHOD_MAX,4,2 ; @SSH2_MSG_USERAUTH_PER_METHOD_MAX
l_.str.1:                               ; @.str.1
	.asciz	"we sent a %s packet, wait for reply"

l_.str.2:                               ; @.str.2
	.asciz	"we did not send a packet, disable method"

.subsections_via_symbols
