	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_proto_password_scramble ## -- Begin function network_mysqld_proto_password_scramble
	.p2align	4, 0x90
_network_mysqld_proto_password_scramble: ## @network_mysqld_proto_password_scramble
	.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
	movl	%r8d, %r12d
	movq	%rcx, %rbx
	movl	%edx, %r15d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r14
	xorl	%edi, %edi
	testq	%rsi, %rsi
	setne	%dil
	movl	$-1, %esi
	callq	_g_return_val_if_fail
	xorl	%edi, %edi
	cmpl	$20, %r15d
	sete	%dil
	movl	$-1, %esi
	callq	_g_return_val_if_fail
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	movl	$-1, %esi
	callq	_g_return_val_if_fail
	xorl	%edi, %edi
	cmpl	$20, %r12d
	sete	%dil
	movl	$-1, %esi
	callq	_g_return_val_if_fail
	xorl	%edi, %edi
	callq	_g_string_new
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_network_mysqld_proto_password_hash
	movq	_G_CHECKSUM_SHA1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_g_checksum_new
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_g_checksum_update
	movq	(%r15), %rsi
	movl	8(%r15), %edx
	movq	%r12, %rdi
	callq	_g_checksum_update
	movq	_G_CHECKSUM_SHA1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_g_checksum_type_get_length
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_g_string_set_size
	movl	12(%r14), %eax
	leaq	8(%r14), %rdx
	movl	%eax, 8(%r14)
	movq	(%r14), %rsi
	movq	%r12, %rdi
	callq	_g_checksum_get_digest
	movq	%r12, %rdi
	callq	_g_checksum_free
	movq	(%r14), %rax
	movsbl	(%rbx), %ecx
	xorl	%ecx, (%rax)
	movsbl	1(%rbx), %ecx
	xorl	%ecx, 4(%rax)
	movsbl	2(%rbx), %ecx
	xorl	%ecx, 8(%rax)
	movsbl	3(%rbx), %ecx
	xorl	%ecx, 12(%rax)
	movsbl	4(%rbx), %ecx
	xorl	%ecx, 16(%rax)
	movsbl	5(%rbx), %ecx
	xorl	%ecx, 20(%rax)
	movsbl	6(%rbx), %ecx
	xorl	%ecx, 24(%rax)
	movsbl	7(%rbx), %ecx
	xorl	%ecx, 28(%rax)
	movsbl	8(%rbx), %ecx
	xorl	%ecx, 32(%rax)
	movsbl	9(%rbx), %ecx
	xorl	%ecx, 36(%rax)
	movsbl	10(%rbx), %ecx
	xorl	%ecx, 40(%rax)
	movsbl	11(%rbx), %ecx
	xorl	%ecx, 44(%rax)
	movsbl	12(%rbx), %ecx
	xorl	%ecx, 48(%rax)
	movsbl	13(%rbx), %ecx
	xorl	%ecx, 52(%rax)
	movsbl	14(%rbx), %ecx
	xorl	%ecx, 56(%rax)
	movsbl	15(%rbx), %ecx
	xorl	%ecx, 60(%rax)
	movsbl	16(%rbx), %ecx
	xorl	%ecx, 64(%rax)
	movsbl	17(%rbx), %ecx
	xorl	%ecx, 68(%rax)
	movsbl	18(%rbx), %ecx
	xorl	%ecx, 72(%rax)
	movsbl	19(%rbx), %ecx
	xorl	%ecx, 76(%rax)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_g_string_free
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_G_CHECKSUM_SHA1,4,2            ## @G_CHECKSUM_SHA1
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_proto_password_scramble ; -- Begin function network_mysqld_proto_password_scramble
	.p2align	2
_network_mysqld_proto_password_scramble: ; @network_mysqld_proto_password_scramble
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x4
	mov	x19, x3
	mov	x23, x2
	mov	x24, x1
	mov	x21, x0
	cmp	x1, #0
	cset	w0, ne
	mov	w1, #-1
	bl	_g_return_val_if_fail
	cmp	w23, #20
	cset	w0, eq
	mov	w1, #-1
	bl	_g_return_val_if_fail
	cmp	x19, #0
	cset	w0, ne
	mov	w1, #-1
	bl	_g_return_val_if_fail
	cmp	w22, #20
	cset	w0, eq
	mov	w1, #-1
	bl	_g_return_val_if_fail
	mov	x0, #0
	bl	_g_string_new
	mov	x20, x0
	mov	x1, x19
	mov	x2, x22
	bl	_network_mysqld_proto_password_hash
Lloh0:
	adrp	x25, _G_CHECKSUM_SHA1@GOTPAGE
Lloh1:
	ldr	x25, [x25, _G_CHECKSUM_SHA1@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_g_checksum_new
	mov	x22, x0
	mov	x1, x24
	mov	x2, x23
	bl	_g_checksum_update
	ldr	x1, [x20]
	ldr	w2, [x20, #8]
	mov	x0, x22
	bl	_g_checksum_update
	ldr	w0, [x25]
	bl	_g_checksum_type_get_length
	mov	x1, x0
	mov	x0, x21
	bl	_g_string_set_size
	ldr	w8, [x21, #12]
	mov	x2, x21
	str	w8, [x2, #8]!
	ldr	x1, [x21]
	mov	x0, x22
	bl	_g_checksum_get_digest
	mov	x0, x22
	bl	_g_checksum_free
	ldr	x8, [x21]
	ldrsb	w9, [x19]
	ldp	w10, w11, [x8]
	eor	w9, w10, w9
	str	w9, [x8]
	ldrsb	w9, [x19, #1]
	eor	w9, w11, w9
	str	w9, [x8, #4]
	ldrsb	w9, [x19, #2]
	ldp	w10, w11, [x8, #8]
	eor	w9, w10, w9
	str	w9, [x8, #8]
	ldrsb	w9, [x19, #3]
	eor	w9, w11, w9
	str	w9, [x8, #12]
	ldrsb	w9, [x19, #4]
	ldp	w10, w11, [x8, #16]
	eor	w9, w10, w9
	str	w9, [x8, #16]
	ldrsb	w9, [x19, #5]
	eor	w9, w11, w9
	str	w9, [x8, #20]
	ldrsb	w9, [x19, #6]
	ldp	w10, w11, [x8, #24]
	eor	w9, w10, w9
	str	w9, [x8, #24]
	ldrsb	w9, [x19, #7]
	eor	w9, w11, w9
	str	w9, [x8, #28]
	ldrsb	w9, [x19, #8]
	ldp	w10, w11, [x8, #32]
	eor	w9, w10, w9
	str	w9, [x8, #32]
	ldrsb	w9, [x19, #9]
	eor	w9, w11, w9
	str	w9, [x8, #36]
	ldrsb	w9, [x19, #10]
	ldp	w10, w11, [x8, #40]
	eor	w9, w10, w9
	str	w9, [x8, #40]
	ldrsb	w9, [x19, #11]
	eor	w9, w11, w9
	str	w9, [x8, #44]
	ldrsb	w9, [x19, #12]
	ldp	w10, w11, [x8, #48]
	eor	w9, w10, w9
	str	w9, [x8, #48]
	ldrsb	w9, [x19, #13]
	eor	w9, w11, w9
	str	w9, [x8, #52]
	ldrsb	w9, [x19, #14]
	ldp	w10, w11, [x8, #56]
	eor	w9, w10, w9
	str	w9, [x8, #56]
	ldrsb	w9, [x19, #15]
	eor	w9, w11, w9
	str	w9, [x8, #60]
	ldrsb	w9, [x19, #16]
	ldp	w10, w11, [x8, #64]
	eor	w9, w10, w9
	str	w9, [x8, #64]
	ldrsb	w9, [x19, #17]
	eor	w9, w11, w9
	str	w9, [x8, #68]
	ldrsb	w9, [x19, #18]
	ldp	w10, w11, [x8, #72]
	eor	w9, w10, w9
	str	w9, [x8, #72]
	ldrsb	w9, [x19, #19]
	eor	w9, w11, w9
	str	w9, [x8, #76]
Lloh2:
	adrp	x8, _TRUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_g_string_free
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_G_CHECKSUM_SHA1,4,2            ; @G_CHECKSUM_SHA1
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
