	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsnd_get_backend_info
_rsnd_get_backend_info:                 ## @rsnd_get_backend_info
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	8(%rdi), %edi
	leaq	-64(%rbp), %rsi
	movl	$8, %edx
	movl	$1, %ecx
	callq	_rsnd_recv_chunk
	cmpq	$8, %rax
	jne	LBB0_1
## %bb.3:
	xorl	%eax, %eax
	callq	_rsnd_is_little_endian
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	-64(%rbp), %rdi
	callq	_rsnd_swap_endian_32
	leaq	-56(%rbp), %rdi
	callq	_rsnd_swap_endian_32
LBB0_5:
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbx)
	movl	-56(%rbp), %ecx
	leal	-1025(%rcx), %eax
	cmpl	$-1024, %eax                    ## imm = 0xFC00
	movl	$1024, %eax                     ## imm = 0x400
	cmovael	%ecx, %eax
	movl	%eax, 24(%rbx)
	movl	(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_7
## %bb.6:
	leal	(%rax,%rax), %ecx
	cmpl	%ecx, %edi
	jge	LBB0_8
LBB0_7:
	shll	$5, %eax
	movl	%eax, (%rbx)
	movl	%eax, %edi
LBB0_8:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, %rdi
	callq	_fifo_free
	movl	(%rbx), %edi
LBB0_10:
	callq	_fifo_new
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	_RSD_CONN_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_14
## %bb.13:
	movl	(%rbx), %eax
	cmpl	$16384, %eax                    ## imm = 0x4000
	movl	$16384, %ecx                    ## imm = 0x4000
	cmovll	%eax, %ecx
	movl	%ecx, -68(%rbp)
	movl	8(%rbx), %edi
	movq	_SOL_SOCKET@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_SO_SNDBUF@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	-68(%rbp), %r14
	movq	%r14, %rcx
	movl	$4, %r8d
	callq	_setsockopt
	movl	(%rbx), %eax
	movl	%eax, -68(%rbp)
	movl	12(%rbx), %edi
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%r14, %rcx
	movl	$4, %r8d
	callq	_setsockopt
	movl	(%rbx), %eax
	movl	%eax, -68(%rbp)
	movl	12(%rbx), %edi
	movl	(%r15), %esi
	movq	_SO_RCVBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rcx
	movl	$4, %r8d
	callq	_setsockopt
	movl	$1, -72(%rbp)
	movl	8(%rbx), %edi
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_TCP_NODELAY@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	-72(%rbp), %r14
	movq	%r14, %rcx
	movl	$4, %r8d
	callq	_setsockopt
	movl	$1, -72(%rbp)
	movl	12(%rbx), %edi
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%r14, %rcx
	movl	$4, %r8d
	callq	_setsockopt
LBB0_14:
	movl	8(%rbx), %edi
	leaq	-64(%rbp), %rsi
	xorl	%r14d, %r14d
	movl	$8, %edx
	xorl	%ecx, %ecx
	callq	_rsnd_recv_chunk
	cmpq	$8, %rax
	jne	LBB0_16
## %bb.15:
	movq	_RSD_CONN_PROTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	jmp	LBB0_17
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	callq	_RSD_ERR
	movl	$-1, %r14d
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movl	%r14d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	leaq	L_.str.2(%rip), %rdi
	callq	_RSD_DEBUG
	jmp	LBB0_17
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[RSound] Couldn't receive chunk.\n"

L_.str.1:                               ## @.str.1
	.asciz	"[RSound] Failed to create FIFO buffer.\n"

	.comm	_RSD_CONN_TCP,4,2               ## @RSD_CONN_TCP
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_SNDBUF,4,2                  ## @SO_SNDBUF
	.comm	_SO_RCVBUF,4,2                  ## @SO_RCVBUF
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_TCP_NODELAY,4,2                ## @TCP_NODELAY
	.comm	_RSD_CONN_PROTO,4,2             ## @RSD_CONN_PROTO
L_.str.2:                               ## @.str.2
	.asciz	"[RSound] Failed to get new proto.\n"

	.comm	_CHUNKSIZE,8,3                  ## @CHUNKSIZE
	.comm	_LATENCY,8,3                    ## @LATENCY
	.comm	_MAX_CHUNK_SIZE,4,2             ## @MAX_CHUNK_SIZE
	.comm	_MAX_TCP_BUFSIZE,4,2            ## @MAX_TCP_BUFSIZE
	.comm	_RSND_HEADER_SIZE,8,3           ## @RSND_HEADER_SIZE
	.comm	_SD_RECEIVE,4,2                 ## @SD_RECEIVE
	.comm	_SHUT_RD,4,2                    ## @SHUT_RD
	.no_dead_strip	_rsnd_get_backend_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rsnd_get_backend_info
_rsnd_get_backend_info:                 ; @rsnd_get_backend_info
	.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	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	stp	xzr, xzr, [sp, #8]
	ldr	w0, [x0, #8]
	add	x1, sp, #8
	mov	w2, #8
	mov	w3, #1
	bl	_rsnd_recv_chunk
	cmp	x0, #8
	b.ne	LBB0_13
; %bb.1:
	bl	_rsnd_is_little_endian
	cbz	x0, LBB0_3
; %bb.2:
	add	x20, sp, #8
	add	x0, sp, #8
	bl	_rsnd_swap_endian_32
	add	x0, x20, #8
	bl	_rsnd_swap_endian_32
LBB0_3:
	ldr	x8, [sp, #8]
	str	x8, [x19, #32]
	ldr	w8, [sp, #16]
	sub	w9, w8, #1025
	cmn	w9, #1024
	mov	w9, #1024
	csel	w8, w9, w8, lo
	str	w8, [x19, #24]
	ldr	w0, [x19]
	cbz	w0, LBB0_5
; %bb.4:
	lsl	w9, w8, #1
	cmp	w0, w9
	b.ge	LBB0_6
LBB0_5:
	lsl	w0, w8, #5
	str	w0, [x19]
LBB0_6:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x8
	bl	_fifo_free
	ldr	w0, [x19]
LBB0_8:
	bl	_fifo_new
	str	x0, [x19, #16]
	cbz	x0, LBB0_14
; %bb.9:
	ldr	w8, [x19, #4]
Lloh3:
	adrp	x9, _RSD_CONN_TCP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RSD_CONN_TCP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	ldr	w8, [x19]
	mov	w9, #16384
	cmp	w8, #4, lsl #12                 ; =16384
	csel	w8, w8, w9, lt
	str	w8, [sp, #4]
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x20, _SOL_SOCKET@GOTPAGE
Lloh7:
	ldr	x20, [x20, _SOL_SOCKET@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh8:
	adrp	x21, _SO_SNDBUF@GOTPAGE
Lloh9:
	ldr	x21, [x21, _SO_SNDBUF@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x3, sp, #4
	mov	w4, #4
	bl	_setsockopt
	ldr	w8, [x19]
	str	w8, [sp, #4]
	ldr	w0, [x19, #12]
	ldr	w1, [x20]
	ldr	w2, [x21]
	add	x3, sp, #4
	mov	w4, #4
	bl	_setsockopt
	ldr	w8, [x19]
	str	w8, [sp, #4]
	ldr	w0, [x19, #12]
	ldr	w1, [x20]
Lloh10:
	adrp	x8, _SO_RCVBUF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SO_RCVBUF@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	add	x3, sp, #4
	mov	w4, #4
	bl	_setsockopt
	mov	w20, #1
	str	w20, [sp]
	ldr	w0, [x19, #8]
Lloh13:
	adrp	x21, _IPPROTO_TCP@GOTPAGE
Lloh14:
	ldr	x21, [x21, _IPPROTO_TCP@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh15:
	adrp	x22, _TCP_NODELAY@GOTPAGE
Lloh16:
	ldr	x22, [x22, _TCP_NODELAY@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x3, sp
	mov	w4, #4
	bl	_setsockopt
	str	w20, [sp]
	ldr	w0, [x19, #12]
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x3, sp
	mov	w4, #4
	bl	_setsockopt
LBB0_11:
	ldr	w0, [x19, #8]
	add	x1, sp, #8
	mov	w2, #8
	mov	w3, #0
	bl	_rsnd_recv_chunk
	cmp	x0, #8
	b.ne	LBB0_18
; %bb.12:
	mov	w0, #0
Lloh17:
	adrp	x8, _RSD_CONN_PROTO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RSD_CONN_PROTO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	b	LBB0_16
LBB0_13:
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_15:
	bl	_RSD_ERR
	mov	w0, #-1
LBB0_16:
	ldr	x8, [sp, #24]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.17:
	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_18:
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_RSD_DEBUG
	mov	w0, #0
	b	LBB0_16
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[RSound] Couldn't receive chunk.\n"

l_.str.1:                               ; @.str.1
	.asciz	"[RSound] Failed to create FIFO buffer.\n"

	.comm	_RSD_CONN_TCP,4,2               ; @RSD_CONN_TCP
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_SNDBUF,4,2                  ; @SO_SNDBUF
	.comm	_SO_RCVBUF,4,2                  ; @SO_RCVBUF
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_TCP_NODELAY,4,2                ; @TCP_NODELAY
	.comm	_RSD_CONN_PROTO,4,2             ; @RSD_CONN_PROTO
l_.str.2:                               ; @.str.2
	.asciz	"[RSound] Failed to get new proto.\n"

	.comm	_CHUNKSIZE,8,3                  ; @CHUNKSIZE
	.comm	_LATENCY,8,3                    ; @LATENCY
	.comm	_MAX_CHUNK_SIZE,4,2             ; @MAX_CHUNK_SIZE
	.comm	_MAX_TCP_BUFSIZE,4,2            ; @MAX_TCP_BUFSIZE
	.comm	_RSND_HEADER_SIZE,8,3           ; @RSND_HEADER_SIZE
	.comm	_SD_RECEIVE,4,2                 ; @SD_RECEIVE
	.comm	_SHUT_RD,4,2                    ; @SHUT_RD
	.no_dead_strip	_rsnd_get_backend_info
.subsections_via_symbols
