	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function network_mysqld_con_idle_handle
_network_mysqld_con_idle_handle:        ## @network_mysqld_con_idle_handle
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EV_READ@GOTPCREL(%rip), %rax
	cmpw	%si, (%rax)
	jne	LBB0_6
## %bb.1:
	movq	%rdx, %r14
	movl	%edi, %ebx
	movq	(%rdx), %r15
	movl	$-1, -28(%rbp)
	movq	_FIONREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_ioctlsocket
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_g_strerror
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_g_critical
	jmp	LBB0_6
LBB0_3:
	movl	-28(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_g_critical
	jmp	LBB0_6
LBB0_5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_network_connection_pool_remove
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_READ,2,1                    ## @EV_READ
	.comm	_FIONREAD,4,2                   ## @FIONREAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ioctl(%d, FIONREAD, ...) failed: %s"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"ioctl(%d, FIONREAD, ...) said there is something to read, oops: %d"

	.no_dead_strip	_network_mysqld_con_idle_handle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function network_mysqld_con_idle_handle
_network_mysqld_con_idle_handle:        ; @network_mysqld_con_idle_handle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _EV_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
	ldrh	w8, [x8]
	cmp	w8, w1, uxth
	b.ne	LBB0_6
; %bb.1:
	mov	x20, x2
	mov	x19, x0
	ldr	x21, [x2]
	mov	w8, #-1
	str	w8, [sp, #12]
Lloh2:
	adrp	x8, _FIONREAD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FIONREAD@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_ioctlsocket
	cbz	x0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_g_strerror
	mov	x2, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:
	ldr	w2, [sp, #12]
	cbz	w2, LBB0_7
; %bb.4:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	mov	x1, x19
	bl	_g_critical
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	mov	x0, x21
	mov	x1, x20
	bl	_network_connection_pool_remove
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_READ,2,1                    ; @EV_READ
	.comm	_FIONREAD,4,2                   ; @FIONREAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ioctl(%d, FIONREAD, ...) failed: %s"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"ioctl(%d, FIONREAD, ...) said there is something to read, oops: %d"

	.no_dead_strip	_network_mysqld_con_idle_handle
.subsections_via_symbols
