	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kevent_socket_fill
_kevent_socket_fill:                    ## @kevent_socket_fill
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str(%rip), %rdi
	callq	_puts
	movq	_sockfd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edx
	callq	_write
	testl	%eax, %eax
	jle	LBB0_2
## %bb.1:
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	popq	%rbp
	jmp	_err                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"filling the read buffer"

	.comm	_sockfd,8,3                     ## @sockfd
L_.str.1:                               ## @.str.1
	.asciz	"."

L_.str.2:                               ## @.str.2
	.asciz	"write(2)"

	.no_dead_strip	_kevent_socket_fill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kevent_socket_fill
_kevent_socket_fill:                    ; @kevent_socket_fill
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_puts
Lloh2:
	adrp	x8, _sockfd@GOTPAGE
Lloh3:
	ldr	x8, [x8, _sockfd@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	w0, [x8, #4]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_write
	cmp	w0, #0
	b.le	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_err
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"filling the read buffer"

	.comm	_sockfd,8,3                     ; @sockfd
l_.str.1:                               ; @.str.1
	.asciz	"."

l_.str.2:                               ; @.str.2
	.asciz	"write(2)"

	.no_dead_strip	_kevent_socket_fill
.subsections_via_symbols
