	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_redis_connect              ## -- Begin function h2o_redis_connect
	.p2align	4, 0x90
_h2o_redis_connect:                     ## @h2o_redis_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	_H2O_REDIS_CONNECTION_STATE_CLOSED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movl	%edx, %esi
	callq	_redisAsyncConnect
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_h2o_fatal
LBB0_3:
	movq	%rbx, 24(%r14)
	movq	%r14, 8(%rbx)
	movq	_H2O_REDIS_CONNECTION_STATE_CONNECTING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movl	20(%r14), %esi
	movq	%rbx, %rdi
	callq	_attach_loop
	movq	_on_connect@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_redisAsyncSetConnectCallback
	movq	_on_disconnect@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_redisAsyncSetDisconnectCallback
	movq	(%rbx), %rax
	movq	_REDIS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.7:
	movl	20(%r14), %edi
	addq	$16, %r14
	movq	%r14, %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_h2o_timer_link                 ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_h2o_redis_error_connection@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_disconnect                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_H2O_REDIS_CONNECTION_STATE_CLOSED,8,3 ## @H2O_REDIS_CONNECTION_STATE_CLOSED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no memory"

	.comm	_H2O_REDIS_CONNECTION_STATE_CONNECTING,8,3 ## @H2O_REDIS_CONNECTION_STATE_CONNECTING
	.comm	_on_connect,4,2                 ## @on_connect
	.comm	_on_disconnect,4,2              ## @on_disconnect
	.comm	_REDIS_OK,8,3                   ## @REDIS_OK
	.comm	_h2o_redis_error_connection,4,2 ## @h2o_redis_error_connection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_redis_connect              ; -- Begin function h2o_redis_connect
	.p2align	2
_h2o_redis_connect:                     ; @h2o_redis_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	x8, [x0]
Lloh0:
	adrp	x9, _H2O_REDIS_CONNECTION_STATE_CLOSED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _H2O_REDIS_CONNECTION_STATE_CLOSED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x0
	mov	x0, x1
	mov	x1, x2
	bl	_redisAsyncConnect
	mov	x20, x0
	cbnz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_h2o_fatal
LBB0_3:
	str	x20, [x19, #24]
	str	x19, [x20, #8]
Lloh5:
	adrp	x8, _H2O_REDIS_CONNECTION_STATE_CONNECTING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _H2O_REDIS_CONNECTION_STATE_CONNECTING@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	w1, [x19, #20]
	mov	x0, x20
	bl	_attach_loop
Lloh8:
	adrp	x8, _on_connect@GOTPAGE
Lloh9:
	ldr	x8, [x8, _on_connect@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_redisAsyncSetConnectCallback
Lloh11:
	adrp	x8, _on_disconnect@GOTPAGE
Lloh12:
	ldr	x8, [x8, _on_disconnect@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_redisAsyncSetDisconnectCallback
	ldr	x8, [x20]
Lloh14:
	adrp	x9, _REDIS_OK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _REDIS_OK@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_6
; %bb.5:
	ldr	w0, [x19, #20]
	add	x2, x19, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_h2o_timer_link
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh17:
	adrp	x8, _h2o_redis_error_connection@GOTPAGE
Lloh18:
	ldr	x8, [x8, _h2o_redis_error_connection@GOTPAGEOFF]
Lloh19:
	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	_disconnect
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_H2O_REDIS_CONNECTION_STATE_CLOSED,8,3 ; @H2O_REDIS_CONNECTION_STATE_CLOSED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no memory"

	.comm	_H2O_REDIS_CONNECTION_STATE_CONNECTING,8,3 ; @H2O_REDIS_CONNECTION_STATE_CONNECTING
	.comm	_on_connect,4,2                 ; @on_connect
	.comm	_on_disconnect,4,2              ; @on_disconnect
	.comm	_REDIS_OK,8,3                   ; @REDIS_OK
	.comm	_h2o_redis_error_connection,4,2 ; @h2o_redis_error_connection
.subsections_via_symbols
