	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fix_sock                       ## -- Begin function fix_sock
	.p2align	4, 0x90
_fix_sock:                              ## @fix_sock
	.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
	movq	%rsi, %rbx
	movl	%edi, %r12d
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_fcntl
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_logbad
LBB0_2:
	movl	$1, -44(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_SO_BROADCAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movl	%r12d, %edi
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	cmpl	$4095, _fix_sock.rbuf(%rip)     ## imm = 0xFFF
	jle	LBB0_5
LBB0_9:
	movl	(%r13), %esi
	movq	_SO_RCVBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	_fix_sock.rbuf(%rip), %rcx
	movl	%r12d, %edi
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	jns	LBB0_14
## %bb.10:
	movl	_fix_sock.rbuf(%rip), %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	jmp	LBB0_11
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_msglog
	cmpl	$4095, _fix_sock.rbuf(%rip)     ## imm = 0xFFF
	jg	LBB0_9
LBB0_5:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	$61440, _fix_sock.rbuf(%rip)    ## imm = 0xF000
	leaq	_fix_sock.rbuf(%rip), %rcx
	movl	(%r13), %esi
	movq	_SO_RCVBUF@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movl	%r12d, %edi
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	leaq	_fix_sock.rbuf(%rip), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	_fix_sock.rbuf(%rip), %ebx
	cmpl	$4095, %ebx                     ## imm = 0xFFF
	jle	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	addl	$-4096, %ebx                    ## imm = 0xF000
	movl	%ebx, _fix_sock.rbuf(%rip)
	movl	(%r13), %esi
	movl	(%r14), %edx
	movl	%r12d, %edi
	movq	%r15, %rcx
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	jne	LBB0_7
LBB0_13:
	movl	_fix_sock.rbuf(%rip), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_trace_act
	jmp	LBB0_14
LBB0_8:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.4(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
LBB0_11:
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_msglog
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_fix_sock.rbuf,4,2 ## @fix_sock.rbuf
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fcntl(%s) O_NONBLOCK: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_BROADCAST,4,2               ## @SO_BROADCAST
L_.str.1:                               ## @.str.1
	.asciz	"setsockopt(%s,SO_BROADCAST): %s"

	.comm	_SO_RCVBUF,4,2                  ## @SO_RCVBUF
L_.str.2:                               ## @.str.2
	.asciz	"setsockopt(%s,SO_RCVBUF=%d): %s"

L_.str.3:                               ## @.str.3
	.asciz	"RCVBUF=%d"

L_.str.4:                               ## @.str.4
	.asciz	"setsockopt(%s,SO_RCVBUF = %d): %s"

	.comm	_MIN_SOCKBUF,4,2                ## @MIN_SOCKBUF
	.comm	_SO_PASSIFNAME,4,2              ## @SO_PASSIFNAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fix_sock                       ; -- Begin function fix_sock
	.p2align	2
_fix_sock:                              ; @fix_sock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_fcntl
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_strerror
	mov	x3, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_logbad
LBB0_2:
	mov	w8, #1
	str	w8, [sp, #12]
Lloh11:
	adrp	x23, _SOL_SOCKET@GOTPAGE
Lloh12:
	ldr	x23, [x23, _SOL_SOCKET@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh13:
	adrp	x8, _SO_BROADCAST@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SO_BROADCAST@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x20
	mov	w4, #4
	bl	_setsockopt
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_msglog
LBB0_4:
	adrp	x24, _fix_sock.rbuf@PAGE
	ldr	w8, [x24, _fix_sock.rbuf@PAGEOFF]
	cmp	w8, #4095
	b.le	LBB0_7
; %bb.5:
	ldr	w1, [x23]
Lloh21:
	adrp	x8, _SO_RCVBUF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SO_RCVBUF@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x3, _fix_sock.rbuf@PAGE
Lloh25:
	add	x3, x3, _fix_sock.rbuf@PAGEOFF
	mov	x0, x20
	mov	w4, #4
	bl	_setsockopt
	tbz	x0, #63, LBB0_14
; %bb.6:
	ldr	w20, [x24, _fix_sock.rbuf@PAGEOFF]
Lloh26:
	adrp	x8, _errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	b	LBB0_13
LBB0_7:
Lloh31:
	adrp	x21, _fix_sock.rbuf@PAGE
Lloh32:
	add	x21, x21, _fix_sock.rbuf@PAGEOFF
	mov	w8, #61440
	str	w8, [x21]
	ldr	w1, [x23]
Lloh33:
	adrp	x25, _SO_RCVBUF@GOTPAGE
Lloh34:
	ldr	x25, [x25, _SO_RCVBUF@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x25]
	mov	x0, x20
	mov	x3, x21
	mov	w4, #4
	bl	_setsockopt
	cbz	x0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w22, [x24, _fix_sock.rbuf@PAGEOFF]
	cmp	w22, #4095
	b.le	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	sub	w8, w22, #1, lsl #12            ; =4096
	str	w8, [x21]
	ldr	w1, [x23]
	b	LBB0_8
LBB0_11:
	ldr	w1, [x24, _fix_sock.rbuf@PAGEOFF]
Lloh35:
	adrp	x0, l_.str.3@PAGE
Lloh36:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_trace_act
	b	LBB0_14
LBB0_12:
Lloh37:
	adrp	x8, _errno@GOTPAGE
Lloh38:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh40:
	adrp	x0, l_.str.4@PAGE
Lloh41:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	mov	x2, x22
LBB0_13:
	bl	_msglog
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_fix_sock.rbuf,4,2 ; @fix_sock.rbuf
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fcntl(%s) O_NONBLOCK: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_BROADCAST,4,2               ; @SO_BROADCAST
l_.str.1:                               ; @.str.1
	.asciz	"setsockopt(%s,SO_BROADCAST): %s"

	.comm	_SO_RCVBUF,4,2                  ; @SO_RCVBUF
l_.str.2:                               ; @.str.2
	.asciz	"setsockopt(%s,SO_RCVBUF=%d): %s"

l_.str.3:                               ; @.str.3
	.asciz	"RCVBUF=%d"

l_.str.4:                               ; @.str.4
	.asciz	"setsockopt(%s,SO_RCVBUF = %d): %s"

	.comm	_MIN_SOCKBUF,4,2                ; @MIN_SOCKBUF
	.comm	_SO_PASSIFNAME,4,2              ; @SO_PASSIFNAME
.subsections_via_symbols
