	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_maximize_rcvbuf                ## -- Begin function maximize_rcvbuf
	.p2align	4, 0x90
_maximize_rcvbuf:                       ## @maximize_rcvbuf
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movl	$4, -52(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_RCVBUF@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	-44(%rbp), %rcx
	leaq	-52(%rbp), %r8
	callq	_getsockopt
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_7
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	jmp	LBB0_7
LBB0_3:
	movl	-44(%rbp), %r15d
	movq	_MAX_UDP_RCVBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r15d, %ebx
	cmpl	%r13d, %r15d
	jg	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%r13), %eax
	shrl	%eax
	movl	%eax, -48(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movl	-52(%rbp), %r8d
	movl	%r14d, %edi
	leaq	-48(%rbp), %rcx
	callq	_setsockopt
	movl	-48(%rbp), %ecx
	leal	-1(%rcx), %edx
	testq	%rax, %rax
	cmovel	%r13d, %edx
	cmovel	%ecx, %ebx
	leal	1(%rcx), %eax
	cmovnel	%r15d, %eax
	movl	%eax, %r15d
	movl	%edx, %r13d
	cmpl	%edx, %eax
	jle	LBB0_4
## %bb.5:
	movl	-44(%rbp), %r15d
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%ebx, %r8d
	callq	_vkprintf
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_UDP_RCVBUF_SIZE,4,2        ## @MAX_UDP_RCVBUF_SIZE
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_RCVBUF,4,2                  ## @SO_RCVBUF
	.comm	_verbosity,8,3                  ## @verbosity
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getsockopt (SO_RCVBUF)"

L_.str.1:                               ## @.str.1
	.asciz	">%d receive buffer was %d, now %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_maximize_rcvbuf                ; -- Begin function maximize_rcvbuf
	.p2align	2
_maximize_rcvbuf:                       ; @maximize_rcvbuf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	w8, #4
	str	w8, [sp, #12]
Lloh0:
	adrp	x22, _SOL_SOCKET@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SOL_SOCKET@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x23, _SO_RCVBUF@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SO_RCVBUF@GOTPAGEOFF]
	ldr	w2, [x23]
	add	x3, sp, #4
	add	x4, sp, #12
	bl	_getsockopt
	cbz	x0, LBB0_3
; %bb.1:
Lloh4:
	adrp	x8, _verbosity@GOTPAGE
Lloh5:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.2:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	b	LBB0_7
LBB0_3:
	ldr	w20, [sp, #4]
Lloh9:
	adrp	x8, _MAX_UDP_RCVBUF_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX_UDP_RCVBUF_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w24, [x8]
	mov	x21, x20
	cmp	w20, w24
	b.gt	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w20, w24
	lsr	w8, w8, #1
	str	w8, [sp, #8]
	ldr	w1, [x22]
	ldr	w2, [x23]
	ldr	w4, [sp, #12]
	add	x3, sp, #8
	mov	x0, x19
	bl	_setsockopt
	ldr	w8, [sp, #8]
	sub	w9, w8, #1
	cmp	x0, #0
	csel	w24, w24, w9, eq
	csel	w21, w8, w21, eq
	csinc	w20, w20, w8, ne
	cmp	w20, w24
	b.le	LBB0_4
; %bb.5:
	ldr	w20, [sp, #4]
LBB0_6:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	mov	x2, x19
	mov	x3, x20
	mov	x4, x21
	bl	_vkprintf
LBB0_7:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_UDP_RCVBUF_SIZE,4,2        ; @MAX_UDP_RCVBUF_SIZE
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_RCVBUF,4,2                  ; @SO_RCVBUF
	.comm	_verbosity,8,3                  ; @verbosity
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getsockopt (SO_RCVBUF)"

l_.str.1:                               ; @.str.1
	.asciz	">%d receive buffer was %d, now %d\n"

.subsections_via_symbols
