	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CiWriteClientAuth              ## -- Begin function CiWriteClientAuth
	.p2align	4, 0x90
_CiWriteClientAuth:                     ## @CiWriteClientAuth
	.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
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.2:
	movq	%rdi, %r14
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_CfgAddInt
	movl	40(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_CfgAddStr
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_11
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:
	movl	8(%rbx), %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_CfgAddStr
	movl	4(%rbx), %edx
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CfgAddStr                      ## TAILCALL
LBB0_5:
	movl	32(%rbx), %edi
	callq	_EncryptPassword
	movq	%rax, %rbx
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_6
LBB0_4:
	movl	36(%rbx), %edx
	movq	_SHA1_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CfgAddByte                     ## TAILCALL
LBB0_7:
	cmpq	$0, 16(%rbx)
	je	LBB0_11
## %bb.8:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.9:
	xorl	%esi, %esi
	callq	_XToBuf
	movq	%rax, %r15
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_CfgAddByte
	movq	%r15, %rdi
	callq	_FreeBuf
	movq	16(%rbx), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_KToBuf
	movq	%rax, %rbx
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	leaq	L_.str.5(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	callq	_CfgAddByte
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FreeBuf                        ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AuthType"

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

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

	.comm	_SHA1_SIZE,4,2                  ## @SHA1_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"EncryptedPassword"

L_.str.4:                               ## @.str.4
	.asciz	"ClientCert"

L_.str.5:                               ## @.str.5
	.asciz	"ClientKey"

L_.str.6:                               ## @.str.6
	.asciz	"SecurePublicCertName"

L_.str.7:                               ## @.str.7
	.asciz	"SecurePrivateKeyName"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CiWriteClientAuth              ; -- Begin function CiWriteClientAuth
	.p2align	2
_CiWriteClientAuth:                     ; @CiWriteClientAuth
	.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
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_11
; %bb.2:
	mov	x19, x0
	ldr	w2, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_CfgAddInt
	ldr	w2, [x20, #40]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_CfgAddStr
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_11
; %bb.3:
Lloh4:
	adrp	x9, lJTI0_0@PAGE
Lloh5:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	ldr	w2, [x20, #8]
Lloh6:
	adrp	x1, l_.str.6@PAGE
Lloh7:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_CfgAddStr
	ldr	w2, [x20, #4]
Lloh8:
	adrp	x1, l_.str.7@PAGE
Lloh9:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	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
	b	_CfgAddStr
LBB0_5:
	ldr	w0, [x20, #32]
	bl	_EncryptPassword
	mov	x20, x0
	ldp	w3, w2, [x0]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_6:
	ldr	w2, [x20, #36]
Lloh12:
	adrp	x8, _SHA1_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SHA1_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	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
	b	_CfgAddByte
LBB0_7:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_11
; %bb.8:
	ldr	x0, [x20, #24]
	cbz	x0, LBB0_11
; %bb.9:
	mov	w1, #0
	bl	_XToBuf
	mov	x21, x0
	ldp	w3, w2, [x0]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_CfgAddByte
	mov	x0, x21
	bl	_FreeBuf
	ldr	x0, [x20, #16]
	mov	w1, #0
	mov	x2, #0
	bl	_KToBuf
	mov	x20, x0
	ldp	w3, w2, [x0]
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_CfgAddByte
	mov	x0, x20
	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
	b	_FreeBuf
LBB0_11:
	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	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AuthType"

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

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

	.comm	_SHA1_SIZE,4,2                  ; @SHA1_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"EncryptedPassword"

l_.str.4:                               ; @.str.4
	.asciz	"ClientCert"

l_.str.5:                               ; @.str.5
	.asciz	"ClientKey"

l_.str.6:                               ; @.str.6
	.asciz	"SecurePublicCertName"

l_.str.7:                               ; @.str.7
	.asciz	"SecurePrivateKeyName"

.subsections_via_symbols
