	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function osmesa_fifo_accept
_osmesa_fifo_accept:                    ## @osmesa_fifo_accept
	.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
	movl	8(%rdi), %eax
	movl	%eax, -12(%rbp)
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	cmpq	$0, (%rdi)
	jns	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	leaq	-16(%rbp), %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_poll
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	je	LBB0_5
## %bb.4:
	movl	8(%rbx), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_accept
	movq	%rax, (%rbx)
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdx
	callq	_fprintf
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_POLLIN,4,2                     ## @POLLIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[osmesa] poll() error"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"[osmesa] Client %i connected.\n"

	.no_dead_strip	_osmesa_fifo_accept
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function osmesa_fifo_accept
_osmesa_fifo_accept:                    ; @osmesa_fifo_accept
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _POLLIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _POLLIN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #8]
	ldr	x8, [x0]
	tbz	x8, #63, LBB0_4
; %bb.1:
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #0
	bl	_poll
	tbnz	w0, #31, LBB0_5
; %bb.2:
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #8]
	mov	x1, #0
	mov	x2, #0
	bl	_accept
	mov	x2, x0
	str	x0, [x19]
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_POLLIN,4,2                     ; @POLLIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[osmesa] poll() error"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"[osmesa] Client %i connected.\n"

	.no_dead_strip	_osmesa_fifo_accept
.subsections_via_symbols
