	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_backends_addpwd        ## -- Begin function network_backends_addpwd
	.p2align	4, 0x90
_network_backends_addpwd:               ## @network_backends_addpwd
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r12
	xorl	%edi, %edi
	callq	_g_string_new
	movq	%rax, %r15
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_decrypt
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_strlen
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_network_mysqld_proto_password_hash
	movq	%rbx, %rdi
	callq	_g_free
	movl	16(%r12), %ebx
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_g_strdup_printf
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_g_ptr_array_add
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
LBB0_4:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %r15
	movq	%r14, %rdi
	callq	_encrypt
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r13
	movl	16(%r12), %ebx
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdx
	callq	_g_strdup_printf
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_g_ptr_array_add
	movq	%r13, %rdi
	callq	_g_free
	movq	%r14, %rdi
	callq	_strlen
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_network_mysqld_proto_password_hash
LBB0_7:
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movq	(%rax), %rax
	movq	(%rcx,%rax,8), %r14
	movl	$1, %r13d
	subq	%rax, %r13
	movq	(%rcx,%r13,8), %rbx
	movq	%rbx, %rdi
	callq	_g_hash_table_remove_all
	movq	_copy_pwd@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_g_hash_table_foreach
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_g_strdup
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_g_hash_table_insert
	movq	(%r12), %rdi
	movl	%r13d, %esi
	callq	_g_atomic_int_set
	movq	_PWD_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_g_warning
	movq	_ERR_PWD_DECRYPT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_g_warning
	movq	_ERR_PWD_ENCRYPT@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$24, %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	"failed to decrypt %s\n"

	.comm	_ERR_PWD_DECRYPT,4,2            ## @ERR_PWD_DECRYPT
L_.str.1:                               ## @.str.1
	.asciz	"%s:%s"

L_.str.2:                               ## @.str.2
	.asciz	"failed to encrypt %s\n"

	.comm	_ERR_PWD_ENCRYPT,4,2            ## @ERR_PWD_ENCRYPT
	.comm	_copy_pwd,4,2                   ## @copy_pwd
	.comm	_PWD_SUCCESS,4,2                ## @PWD_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_backends_addpwd        ; -- Begin function network_backends_addpwd
	.p2align	2
_network_backends_addpwd:               ; @network_backends_addpwd
	.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	x23, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, #0
	bl	_g_string_new
	mov	x20, x0
	mov	x0, x22
	cbz	x23, LBB0_3
; %bb.1:
	bl	_decrypt
	cbz	x0, LBB0_6
; %bb.2:
	mov	x23, x0
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x23
	bl	_network_mysqld_proto_password_hash
	mov	x0, x23
	bl	_g_free
	ldr	w23, [x19, #16]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	mov	x2, x22
	bl	_g_strdup_printf
	mov	x1, x0
	mov	x0, x23
	bl	_g_ptr_array_add
	b	LBB0_5
LBB0_3:
	bl	_encrypt
	cbz	x0, LBB0_7
; %bb.4:
	mov	x23, x0
	ldr	w24, [x19, #16]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	mov	x2, x23
	bl	_g_strdup_printf
	mov	x1, x0
	mov	x0, x24
	bl	_g_ptr_array_add
	mov	x0, x23
	bl	_g_free
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_network_mysqld_proto_password_hash
LBB0_5:
	ldp	x8, x9, [x19]
	ldr	x8, [x8]
	ldr	x22, [x9, x8, lsl #3]
	mov	w10, #1
	sub	x23, x10, x8
	ldr	x24, [x9, x23, lsl #3]
	mov	x0, x24
	bl	_g_hash_table_remove_all
Lloh4:
	adrp	x8, _copy_pwd@GOTPAGE
Lloh5:
	ldr	x8, [x8, _copy_pwd@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x24
	bl	_g_hash_table_foreach
	mov	x0, x21
	bl	_g_strdup
	mov	x1, x0
	mov	x0, x24
	mov	x2, x20
	bl	_g_hash_table_insert
	ldr	x0, [x19]
	mov	x1, x23
	bl	_g_atomic_int_set
Lloh7:
	adrp	x8, _PWD_SUCCESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PWD_SUCCESS@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_g_warning
Lloh11:
	adrp	x8, _ERR_PWD_DECRYPT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERR_PWD_DECRYPT@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x22
	bl	_g_warning
Lloh15:
	adrp	x8, _ERR_PWD_ENCRYPT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERR_PWD_ENCRYPT@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to decrypt %s\n"

	.comm	_ERR_PWD_DECRYPT,4,2            ; @ERR_PWD_DECRYPT
l_.str.1:                               ; @.str.1
	.asciz	"%s:%s"

l_.str.2:                               ; @.str.2
	.asciz	"failed to encrypt %s\n"

	.comm	_ERR_PWD_ENCRYPT,4,2            ; @ERR_PWD_ENCRYPT
	.comm	_copy_pwd,4,2                   ; @copy_pwd
	.comm	_PWD_SUCCESS,4,2                ; @PWD_SUCCESS
.subsections_via_symbols
