	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function osmesa_fifo_open
_osmesa_fifo_open:                      ## @osmesa_fifo_open
	.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	%rdi, %rbx
	movq	_AF_UNIX@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movq	%rax, (%rbx)
	movl	$-1, 8(%rbx)
	testq	%rax, %rax
	js	LBB0_7
## %bb.1:
	movl	(%r14), %eax
	movl	%eax, -28(%rbp)
	movq	_g_osmesa_fifo@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	(%r14), %rdi
	callq	_unlink
	movq	(%rbx), %rdi
	leaq	-32(%rbp), %rsi
	movl	$8, %edx
	callq	_bind
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	movq	(%rbx), %rdi
	movl	$1, %esi
	callq	_listen
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	movq	_stderr@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	12(%rbx), %edx
	movl	16(%rbx), %ecx
	movl	20(%rbx), %r8d
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r15), %edi
	movq	(%r14), %rdx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_perror                         ## TAILCALL
LBB0_2:
	movq	%rbx, %rdi
	callq	_osmesa_fifo_open.cold.1
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_osmesa_fifo_open.cold.2
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function osmesa_fifo_open.cold.1
_osmesa_fifo_open.cold.1:               ## @osmesa_fifo_open.cold.1
	.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
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	movq	(%rbx), %rdi
	callq	_close
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function osmesa_fifo_open.cold.2
_osmesa_fifo_open.cold.2:               ## @osmesa_fifo_open.cold.2
	.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
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	movq	(%rbx), %rdi
	callq	_close
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[osmesa] socket()"

	.comm	_g_osmesa_fifo,8,3              ## @g_osmesa_fifo
L_.str.1:                               ## @.str.1
	.asciz	"[osmesa] bind()"

L_.str.2:                               ## @.str.2
	.asciz	"[osmesa] listen()"

	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"[osmesa] Frame size is %ix%ix%i\n"

L_.str.4:                               ## @.str.4
	.asciz	"[osmesa] Please connect to unix:%s\n"

	.no_dead_strip	_osmesa_fifo_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function osmesa_fifo_open
_osmesa_fifo_open:                      ; @osmesa_fifo_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _AF_UNIX@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AF_UNIX@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	str	x0, [x19]
	mov	w8, #-1
	str	w8, [x19, #8]
	tbnz	x0, #63, LBB0_5
; %bb.1:
	ldr	w8, [x20]
	str	w8, [sp, #28]
Lloh5:
	adrp	x20, _g_osmesa_fifo@GOTPAGE
Lloh6:
	ldr	x20, [x20, _g_osmesa_fifo@GOTPAGEOFF]
	ldr	x1, [x20]
	mov	w2, #4
	bl	_strlcpy
	ldr	x0, [x20]
	bl	_unlink
	ldr	x0, [x19]
	add	x1, sp, #24
	mov	w2, #8
	bl	_bind
	tbnz	x0, #63, LBB0_6
; %bb.2:
	ldr	x0, [x19]
	mov	w1, #1
	bl	_listen
	tbnz	x0, #63, LBB0_7
; %bb.3:
Lloh7:
	adrp	x21, _stderr@GOTPAGE
Lloh8:
	ldr	x21, [x21, _stderr@GOTPAGEOFF]
	ldr	w0, [x21]
	ldp	w8, w9, [x19, #12]
	ldr	w10, [x19, #20]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	ldr	w0, [x21]
	ldr	x8, [x20]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_perror
LBB0_6:
	mov	x0, x19
	bl	_osmesa_fifo_open.cold.1
	b	LBB0_4
LBB0_7:
	mov	x0, x19
	bl	_osmesa_fifo_open.cold.2
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function osmesa_fifo_open.cold.1
_osmesa_fifo_open.cold.1:               ; @osmesa_fifo_open.cold.1
	.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
	mov	x19, x0
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	ldr	x0, [x19]
	bl	_close
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function osmesa_fifo_open.cold.2
_osmesa_fifo_open.cold.2:               ; @osmesa_fifo_open.cold.2
	.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
	mov	x19, x0
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
	ldr	x0, [x19]
	bl	_close
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[osmesa] socket()"

	.comm	_g_osmesa_fifo,8,3              ; @g_osmesa_fifo
l_.str.1:                               ; @.str.1
	.asciz	"[osmesa] bind()"

l_.str.2:                               ; @.str.2
	.asciz	"[osmesa] listen()"

	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"[osmesa] Frame size is %ix%ix%i\n"

l_.str.4:                               ; @.str.4
	.asciz	"[osmesa] Please connect to unix:%s\n"

	.no_dead_strip	_osmesa_fifo_open
.subsections_via_symbols
