	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_auth_new_chap_mutual           ## -- Begin function auth_new_chap_mutual
	.p2align	4, 0x90
_auth_new_chap_mutual:                  ## @auth_new_chap_mutual
	.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	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	(%rdi), %rax
	movq	_AG_TYPE_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_AG_TYPE_CHAP_MUTUAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdi)
LBB0_2:
	movq	_AG_TYPE_CHAP_MUTUAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.7:
	callq	_auth_new
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_checked_strdup
	movq	%rax, 24(%rbx)
	movq	%r12, %rdi
	callq	_checked_strdup
	movq	%rax, 16(%rbx)
	movq	%r15, %rdi
	callq	_checked_strdup
	movq	%rax, 8(%rbx)
	movq	%r14, %rdi
	callq	_checked_strdup
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_auth_check_secret_length
	jmp	LBB0_8
LBB0_3:
	movq	16(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_5
LBB0_6:
	movq	8(%rdi), %rax
	movq	(%rax), %rsi
	leaq	L_.str.1(%rip), %rdi
LBB0_5:
	callq	_log_warnx
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AG_TYPE_UNKNOWN,8,3            ## @AG_TYPE_UNKNOWN
	.comm	_AG_TYPE_CHAP_MUTUAL,8,3        ## @AG_TYPE_CHAP_MUTUAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot mix \"chap-mutual\" authentication with other types for auth-group \"%s\""

L_.str.1:                               ## @.str.1
	.asciz	"cannot mix \"chap-mutual\" authentication with other types for target \"%s\""

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_auth_new_chap_mutual           ; -- Begin function auth_new_chap_mutual
	.p2align	2
_auth_new_chap_mutual:                  ; @auth_new_chap_mutual
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AG_TYPE_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AG_TYPE_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x9]
Lloh3:
	adrp	x9, _AG_TYPE_CHAP_MUTUAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AG_TYPE_CHAP_MUTUAL@GOTPAGEOFF]
	cmp	x8, x10
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x9]
	str	x8, [x0]
LBB0_2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	bl	_auth_new
	mov	x22, x0
	mov	x0, x23
	bl	_checked_strdup
	str	x0, [x22, #24]
	mov	x0, x21
	bl	_checked_strdup
	str	x0, [x22, #16]
	mov	x0, x20
	bl	_checked_strdup
	str	x0, [x22, #8]
	mov	x0, x19
	bl	_checked_strdup
	str	x0, [x22]
	mov	x0, x22
	bl	_auth_check_secret_length
	b	LBB0_8
LBB0_4:
	ldr	x1, [x0, #16]
	cbz	x1, LBB0_6
; %bb.5:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
	ldr	x8, [x0, #8]
	ldr	x1, [x8]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
	bl	_log_warnx
	mov	x22, #0
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AG_TYPE_UNKNOWN,8,3            ; @AG_TYPE_UNKNOWN
	.comm	_AG_TYPE_CHAP_MUTUAL,8,3        ; @AG_TYPE_CHAP_MUTUAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot mix \"chap-mutual\" authentication with other types for auth-group \"%s\""

l_.str.1:                               ; @.str.1
	.asciz	"cannot mix \"chap-mutual\" authentication with other types for target \"%s\""

.subsections_via_symbols
