	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uclparse_chap
_uclparse_chap:                         ## @uclparse_chap
	.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, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ucl_object_find_key
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	_UCL_STRING@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_2
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ucl_object_find_key
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%r15), %rax
	cmpq	(%r13), %rax
	je	LBB0_6
LBB0_5:
	movl	(%r14), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_log_warnx
LBB0_6:
	movq	%r12, %rdi
	callq	_ucl_object_tostring
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_ucl_object_tostring
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_auth_new_chap
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	sete	%al
	jmp	LBB0_7
LBB0_2:
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_log_warnx
	movl	$1, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"user"

	.comm	_UCL_STRING,8,3                 ## @UCL_STRING
L_.str.1:                               ## @.str.1
	.asciz	"chap section in auth-group \"%s\" is missing \"user\" string key"

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

L_.str.3:                               ## @.str.3
	.asciz	"chap section in auth-group \"%s\" is missing \"secret\" string key"

	.no_dead_strip	_uclparse_chap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uclparse_chap
_uclparse_chap:                         ; @uclparse_chap
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_ucl_object_find_key
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
Lloh2:
	adrp	x22, _UCL_STRING@GOTPAGE
Lloh3:
	ldr	x22, [x22, _UCL_STRING@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_ucl_object_find_key
	mov	x21, x0
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_5
LBB0_4:
	ldr	w1, [x19]
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_log_warnx
LBB0_5:
	mov	x0, x20
	bl	_ucl_object_tostring
	mov	x20, x0
	mov	x0, x21
	bl	_ucl_object_tostring
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_auth_new_chap
	cmp	x0, #0
	cset	w0, eq
	b	LBB0_7
LBB0_6:
	ldr	w1, [x19]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_log_warnx
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"user"

	.comm	_UCL_STRING,8,3                 ; @UCL_STRING
l_.str.1:                               ; @.str.1
	.asciz	"chap section in auth-group \"%s\" is missing \"user\" string key"

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

l_.str.3:                               ; @.str.3
	.asciz	"chap section in auth-group \"%s\" is missing \"secret\" string key"

	.no_dead_strip	_uclparse_chap
.subsections_via_symbols
