	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_connect
_on_connect:                            ## @on_connect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movq	_REDIS_OK@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_4
## %bb.2:
	leaq	12(%rbx), %rdi
	callq	_h2o_timer_unlink
	movq	_H2O_REDIS_CONNECTION_STATE_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	_h2o_redis_error_connection@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_close_and_detach_connection    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REDIS_OK,4,2                   ## @REDIS_OK
	.comm	_h2o_redis_error_connection,4,2 ## @h2o_redis_error_connection
	.comm	_H2O_REDIS_CONNECTION_STATE_CONNECTED,4,2 ## @H2O_REDIS_CONNECTION_STATE_CONNECTED
	.no_dead_strip	_on_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_connect
_on_connect:                            ; @on_connect
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
	cbz	x19, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _REDIS_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REDIS_OK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_5
; %bb.2:
	add	x0, x19, #12
	bl	_h2o_timer_unlink
Lloh3:
	adrp	x8, _H2O_REDIS_CONNECTION_STATE_CONNECTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _H2O_REDIS_CONNECTION_STATE_CONNECTED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh6:
	adrp	x8, _h2o_redis_error_connection@GOTPAGE
Lloh7:
	ldr	x8, [x8, _h2o_redis_error_connection@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_close_and_detach_connection
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_REDIS_OK,4,2                   ; @REDIS_OK
	.comm	_h2o_redis_error_connection,4,2 ; @h2o_redis_error_connection
	.comm	_H2O_REDIS_CONNECTION_STATE_CONNECTED,4,2 ; @H2O_REDIS_CONNECTION_STATE_CONNECTED
	.no_dead_strip	_on_connect
.subsections_via_symbols
