	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_mysqlnd_change_auth_response_write
_php_mysqlnd_change_auth_response_write: ## @php_mysqlnd_change_auth_response_write
	.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	%rsi, %r12
	movq	%rdi, %r14
	movq	32(%rdi), %rax
	movq	24(%rdi), %r13
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rdx
	movq	(%rsi), %rdi
	cmpq	%rdi, (%r13)
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	jge	LBB0_1
## %bb.2:
	callq	_mnd_emalloc
	movq	%rax, %rbx
	jmp	LBB0_3
LBB0_1:
	movq	8(%r13), %rbx
LBB0_3:
	movq	_MYSQLND_HEADER_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rbx,%rax,4), %r15
	leaq	L_.str(%rip), %rdi
	callq	_DBG_ENTER
	movq	(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.4:
	movl	8(%r12), %esi
	movq	%r15, %rdi
	callq	_memcpy
	movq	(%r12), %rax
	leaq	(%r15,%rax,4), %r15
LBB0_5:
	movq	16(%r13), %rax
	subq	%rbx, %r15
	shrq	$2, %r15
	movq	_MYSQLND_HEADER_SIZE@GOTPCREL(%rip), %rcx
	subl	(%rcx), %r15d
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	callq	*(%rax)
	movq	%rax, %r15
	cmpq	8(%r13), %rbx
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_mnd_efree
LBB0_7:
	testq	%r15, %r15
	jne	LBB0_9
## %bb.8:
	movq	_CONN_QUIT_SENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_SET_CONNECTION_STATE
LBB0_9:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DBG_RETURN                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MYSQLND_HEADER_SIZE,4,2        ## @MYSQLND_HEADER_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"php_mysqlnd_change_auth_response_write"

	.comm	_CONN_QUIT_SENT,4,2             ## @CONN_QUIT_SENT
	.no_dead_strip	_php_mysqlnd_change_auth_response_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_mysqlnd_change_auth_response_write
_php_mysqlnd_change_auth_response_write: ; @php_mysqlnd_change_auth_response_write
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x1
	mov	x19, x0
	ldp	x20, x21, [x0, #24]
	ldp	x22, x24, [x0, #8]
	ldr	x8, [x20]
	ldr	x0, [x1]
	cmp	x8, x0
	b.ge	LBB0_2
; %bb.1:
	bl	_mnd_emalloc
	mov	x23, x0
	b	LBB0_3
LBB0_2:
	ldr	x23, [x20, #8]
LBB0_3:
Lloh0:
	adrp	x27, _MYSQLND_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _MYSQLND_HEADER_SIZE@GOTPAGEOFF]
	ldrsw	x8, [x27]
	add	x26, x23, x8, lsl #2
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG_ENTER
	ldr	x2, [x25]
	cbz	x2, LBB0_5
; %bb.4:
	ldr	w1, [x25, #8]
	mov	x0, x26
	bl	_memcpy
	ldr	x8, [x25]
	add	x26, x26, x8, lsl #2
LBB0_5:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	sub	x9, x26, x23
	lsr	x9, x9, #2
	ldr	w10, [x27]
	sub	w3, w9, w10
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	mov	x4, x22
	mov	x5, x21
	blr	x8
	mov	x21, x0
	ldr	x8, [x20, #8]
	cmp	x23, x8
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x23
	bl	_mnd_efree
LBB0_7:
	cbnz	x21, LBB0_9
; %bb.8:
Lloh4:
	adrp	x8, _CONN_QUIT_SENT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CONN_QUIT_SENT@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SET_CONNECTION_STATE
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_DBG_RETURN
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MYSQLND_HEADER_SIZE,4,2        ; @MYSQLND_HEADER_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"php_mysqlnd_change_auth_response_write"

	.comm	_CONN_QUIT_SENT,4,2             ; @CONN_QUIT_SENT
	.no_dead_strip	_php_mysqlnd_change_auth_response_write
.subsections_via_symbols
