	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_proto_append_auth_challenge ## -- Begin function network_mysqld_proto_append_auth_challenge
	.p2align	4, 0x90
_network_mysqld_proto_append_auth_challenge: ## @network_mysqld_proto_append_auth_challenge
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$10, %esi
	callq	_network_mysqld_proto_append_int8
	movq	32(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_g_string_append
	jmp	LBB0_5
LBB0_2:
	movl	(%r14), %r8d
	leal	-30001(%r8), %eax
	cmpl	$69998, %eax                    ## imm = 0x1116E
	ja	LBB0_4
## %bb.3:
	movl	%r8d, %eax
	movl	$3518437209, %edx               ## imm = 0xD1B71759
	imulq	%rax, %rdx
	shrq	$45, %rdx
	imull	$10000, %edx, %ecx              ## imm = 0x2710
	movl	%r8d, %esi
	subl	%ecx, %esi
	movzwl	%si, %ecx
	shrl	$2, %ecx
	imull	$5243, %ecx, %ecx               ## imm = 0x147B
	shrl	$17, %ecx
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	shrq	$37, %rax
	imull	$100, %eax, %eax
	subl	%eax, %r8d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_g_string_append_printf
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_C
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_g_string_append_len
LBB0_5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_network_mysqld_proto_append_int8
	movl	24(%r14), %esi
	movq	%rbx, %rdi
	callq	_network_mysqld_proto_append_int32
	movq	8(%r14), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_7
## %bb.6:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$8, %edx
	xorl	%eax, %eax
	callq	_g_string_append_len
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	callq	_C
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_g_string_append_len
LBB0_8:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_network_mysqld_proto_append_int8
	movl	20(%r14), %esi
	movq	%rbx, %rdi
	callq	_network_mysqld_proto_append_int16
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	callq	_network_mysqld_proto_append_int8
	movl	16(%r14), %esi
	movq	%rbx, %rdi
	callq	_network_mysqld_proto_append_int16
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_network_mysqld_proto_append_int8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_network_mysqld_proto_append_int8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_network_mysqld_proto_append_int8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_network_mysqld_proto_append_int8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_network_mysqld_proto_append_int8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_network_mysqld_proto_append_int8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_network_mysqld_proto_append_int8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_network_mysqld_proto_append_int8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_network_mysqld_proto_append_int8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_network_mysqld_proto_append_int8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_network_mysqld_proto_append_int8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_network_mysqld_proto_append_int8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_network_mysqld_proto_append_int8
	movq	8(%r14), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_10
## %bb.9:
	movl	(%rax), %esi
	addl	$8, %esi
	movq	%rbx, %rdi
	movl	$12, %edx
	xorl	%eax, %eax
	callq	_g_string_append_len
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
	callq	_C
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_g_string_append_len
LBB0_11:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_network_mysqld_proto_append_int8
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d.%02d.%02d"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"890123456789"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_proto_append_auth_challenge ; -- Begin function network_mysqld_proto_append_auth_challenge
	.p2align	2
_network_mysqld_proto_append_auth_challenge: ; @network_mysqld_proto_append_auth_challenge
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	mov	w1, #10
	bl	_network_mysqld_proto_append_int8
	ldr	x1, [x20, #32]
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_g_string_append
	b	LBB0_5
LBB0_2:
	ldr	w8, [x20]
	mov	w9, #-30001
	mov	w10, #4462
	movk	w10, #1, lsl #16
	add	w9, w8, w9
	cmp	w9, w10
	b.hi	LBB0_4
; %bb.3:
	mov	w9, #5977
	movk	w9, #53687, lsl #16
	umull	x9, w8, w9
	lsr	x2, x9, #45
	mov	w9, #10000
	msub	w9, w2, w9, w8
	ubfx	w9, w9, #2, #14
	mov	w10, #5243
	mul	w9, w9, w10
	lsr	w3, w9, #17
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	umull	x9, w8, w9
	lsr	x9, x9, #37
	mov	w10, #100
	msub	w4, w9, w10, w8
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_g_string_append_printf
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_C
	mov	x1, x0
	mov	x0, x19
	bl	_g_string_append_len
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	bl	_network_mysqld_proto_append_int8
	ldr	w1, [x20, #24]
	mov	x0, x19
	bl	_network_mysqld_proto_append_int32
	ldr	x8, [x20, #8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_7
; %bb.6:
	ldr	w1, [x8]
	mov	w8, #8
	str	x8, [sp]
	b	LBB0_8
LBB0_7:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_C
	mov	x1, x0
LBB0_8:
	mov	x0, x19
	bl	_g_string_append_len
	mov	x0, x19
	mov	w1, #0
	bl	_network_mysqld_proto_append_int8
	ldr	w1, [x20, #20]
	mov	x0, x19
	bl	_network_mysqld_proto_append_int16
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_network_mysqld_proto_append_int8
	ldr	w1, [x20, #16]
	mov	x0, x19
	bl	_network_mysqld_proto_append_int16
	mov	x0, x19
	mov	w1, #0
	bl	_network_mysqld_proto_append_int8
	mov	x0, x19
	mov	w1, #0
	bl	_network_mysqld_proto_append_int8
	mov	x0, x19
	mov	w1, #0
	bl	_network_mysqld_proto_append_int8
	mov	x0, x19
	mov	w1, #0
	bl	_network_mysqld_proto_append_int8
	mov	x0, x19
	mov	w1, #0
	bl	_network_mysqld_proto_append_int8
	mov	x0, x19
	mov	w1, #0
	bl	_network_mysqld_proto_append_int8
	mov	x0, x19
	mov	w1, #0
	bl	_network_mysqld_proto_append_int8
	mov	x0, x19
	mov	w1, #0
	bl	_network_mysqld_proto_append_int8
	mov	x0, x19
	mov	w1, #0
	bl	_network_mysqld_proto_append_int8
	mov	x0, x19
	mov	w1, #0
	bl	_network_mysqld_proto_append_int8
	mov	x0, x19
	mov	w1, #0
	bl	_network_mysqld_proto_append_int8
	mov	x0, x19
	mov	w1, #0
	bl	_network_mysqld_proto_append_int8
	mov	x0, x19
	mov	w1, #0
	bl	_network_mysqld_proto_append_int8
	ldr	x8, [x20, #8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_10
; %bb.9:
	ldr	w8, [x8]
	add	w1, w8, #8
	mov	w8, #12
	str	x8, [sp]
	b	LBB0_11
LBB0_10:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_C
	mov	x1, x0
LBB0_11:
	mov	x0, x19
	bl	_g_string_append_len
	mov	x0, x19
	mov	w1, #0
	bl	_network_mysqld_proto_append_int8
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d.%02d.%02d"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"890123456789"

.subsections_via_symbols
