	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function authenticate
_authenticate:                          ## @authenticate
	.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, %r14
	movq	8(%rdi), %r15
	movl	8(%rbp), %edi
	movl	4(%r14), %esi
	movl	$6, %edx
	callq	_memcpy
	movl	$1, %ebx
	movl	$1, %edi
	callq	_htons
	movl	%eax, (%rbp)
	movq	_SN_PHASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	%rax, -16(%rbp)
	movq	$0, -24(%rbp)
	movq	_AuthMethods@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r15), %esi
	callq	_lookup
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_7
## %bb.1:
	xorl	%ebx, %ebx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movl	$2, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rbx
	testl	%edi, %edi
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rbx
	cmoveq	%rax, %rbx
LBB0_6:
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_addText
	movq	_handleChap@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_sendPDU
	movl	%eax, %ebx
	jmp	LBB0_7
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_ISCSI_LOGIN_CMD,4,2            ## @ISCSI_LOGIN_CMD
	.comm	_SN_PHASE,8,3                   ## @SN_PHASE
	.comm	_AuthMethods,4,2                ## @AuthMethods
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CHAP_A=5"

L_.str.1:                               ## @.str.1
	.asciz	"MD5"

L_.str.2:                               ## @.str.2
	.asciz	"SHA1"

L_.str.3:                               ## @.str.3
	.asciz	"CHAP_A=7"

L_.str.4:                               ## @.str.4
	.asciz	"CHAP_A=5,7"

	.comm	_handleChap,4,2                 ## @handleChap
	.no_dead_strip	_authenticate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function authenticate
_authenticate:                          ; @authenticate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	w0, [sp, #48]
	ldr	w1, [x19, #4]
	mov	w2, #6
	bl	_memcpy
	mov	w0, #1
	bl	_htons
	str	w0, [sp, #40]
Lloh0:
	adrp	x8, _SN_PHASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SN_PHASE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stp	x8, x8, [sp, #24]
	str	xzr, [sp, #16]
Lloh3:
	adrp	x8, _AuthMethods@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AuthMethods@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x20, #4]
	bl	_lookup
	sub	w8, w0, #128
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.1:
	mov	w0, #0
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w0, #2
	b	LBB0_9
LBB0_3:
	mov	w0, #1
	b	LBB0_9
LBB0_4:
	ldr	w0, [x20]
	cbz	w0, LBB0_7
; %bb.5:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_7
; %bb.6:
	ldr	w0, [x20]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
Lloh12:
	adrp	x8, l_.str.4@PAGE
Lloh13:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh14:
	adrp	x9, l_.str.3@PAGE
Lloh15:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w0, #0
	csel	x1, x9, x8, eq
	b	LBB0_8
LBB0_7:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
LBB0_8:
	add	x0, sp, #8
	bl	_addText
Lloh18:
	adrp	x8, _handleChap@GOTPAGE
Lloh19:
	ldr	x8, [x8, _handleChap@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_sendPDU
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
                                        ; -- End function
	.comm	_ISCSI_LOGIN_CMD,4,2            ; @ISCSI_LOGIN_CMD
	.comm	_SN_PHASE,8,3                   ; @SN_PHASE
	.comm	_AuthMethods,4,2                ; @AuthMethods
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CHAP_A=5"

l_.str.1:                               ; @.str.1
	.asciz	"MD5"

l_.str.2:                               ; @.str.2
	.asciz	"SHA1"

l_.str.3:                               ; @.str.3
	.asciz	"CHAP_A=7"

l_.str.4:                               ; @.str.4
	.asciz	"CHAP_A=5,7"

	.comm	_handleChap,4,2                 ; @handleChap
	.no_dead_strip	_authenticate
.subsections_via_symbols
