	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_net_setsockopt                 ## -- Begin function net_setsockopt
	.p2align	4, 0x90
_net_setsockopt:                        ## @net_setsockopt
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movq	%rcx, %r14
	movl	%edx, %r15d
	movl	%esi, %ebx
	callq	_get_socket
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	testq	%r14, %r14
	je	LBB0_9
## %bb.2:
	movq	%rax, %r12
	cmpl	$138, %ebx
	je	LBB0_11
## %bb.3:
	cmpl	$137, %ebx
	je	LBB0_14
## %bb.4:
	cmpl	$134, %ebx
	jne	LBB0_18
## %bb.5:
	leal	-130(%r15), %eax
	cmpl	$3, %eax
	ja	LBB0_18
## %bb.6:
	cmpl	$4, %r13d
	jae	LBB0_24
	jmp	LBB0_7
LBB0_8:
	movq	_ENOTSOCK@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_10:
	xorl	%eax, %eax
	subq	(%rcx), %rax
	jmp	LBB0_41
LBB0_11:
	leal	-135(%r15), %eax
	cmpl	$1, %eax
	ja	LBB0_18
## %bb.12:
	cmpl	$4, %r13d
	jb	LBB0_7
	jmp	LBB0_26
LBB0_14:
	cmpl	$4, %r13d
	jae	LBB0_16
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
LBB0_16:
	movq	(%r12), %rax
	movl	8(%rax), %eax
	movq	_NETCONN_TCP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_40
## %bb.17:
	movl	%r15d, %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	je	LBB0_29
LBB0_18:
	movq	_SOCKETS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	%r15d, %rsi
	callq	_LWIP_DEBUGF
	movq	_ENOPROTOOPT@GOTPCREL(%rip), %rcx
LBB0_19:
	movq	$-1, %rax
	cmpq	$0, (%rcx)
	jne	LBB0_41
## %bb.20:
	cmpl	$138, %ebx
	je	LBB0_26
## %bb.21:
	cmpl	$137, %ebx
	je	LBB0_29
## %bb.22:
	cmpl	$134, %ebx
	jne	LBB0_40
## %bb.23:
	leal	-130(%r15), %eax
	cmpl	$3, %eax
	ja	LBB0_40
LBB0_24:
	cmpl	$0, (%r14)
	je	LBB0_34
## %bb.25:
	movq	(%r12), %rax
	movq	(%rax), %rax
	orl	%r15d, (%rax)
	jmp	LBB0_38
LBB0_26:
	cmpl	$136, %r15d
	je	LBB0_33
## %bb.27:
	cmpl	$135, %r15d
	jne	LBB0_40
## %bb.28:
	movslq	(%r14), %rsi
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	%rsi, 24(%rax)
	jmp	LBB0_36
LBB0_29:
	cmpl	$129, %r15d
	je	LBB0_35
## %bb.30:
	cmpl	$128, %r15d
	jne	LBB0_40
## %bb.31:
	cmpl	$0, (%r14)
	movq	_TF_NODELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_37
## %bb.32:
	movq	(%r12), %rcx
	movq	(%rcx), %rcx
	orl	%eax, 8(%rcx)
	jmp	LBB0_38
LBB0_33:
	movslq	(%r14), %rsi
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	%rsi, 16(%rax)
	jmp	LBB0_36
LBB0_34:
	notl	%r15d
	movq	(%r12), %rax
	movq	(%rax), %rax
	andl	%r15d, (%rax)
	jmp	LBB0_38
LBB0_35:
	movslq	(%r14), %rsi
	movq	(%r12), %rax
	movq	(%rax), %rax
	movl	%esi, 4(%rax)
LBB0_36:
	movq	_SOCKETS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_39
LBB0_37:
	notl	%eax
	movq	(%r12), %rcx
	movq	(%rcx), %rcx
	andl	%eax, 8(%rcx)
LBB0_38:
	movq	_SOCKETS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	$0, (%r14)
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.5(%rip), %rsi
	cmoveq	%rax, %rsi
LBB0_39:
	callq	_LWIP_DEBUGF
LBB0_40:
	xorl	%eax, %eax
LBB0_41:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTSOCK,8,3                   ## @ENOTSOCK
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_SOCKETS_DEBUG,4,2              ## @SOCKETS_DEBUG
	.comm	_ENOPROTOOPT,8,3                ## @ENOPROTOOPT
	.comm	_NETCONN_TCP,4,2                ## @NETCONN_TCP
	.section	__TEXT,__cstring,cstring_literals
L_.str.5:                               ## @.str.5
	.asciz	"on"

L_.str.6:                               ## @.str.6
	.asciz	"off"

	.comm	_TF_NODELAY,4,2                 ## @TF_NODELAY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_net_setsockopt                 ; -- Begin function net_setsockopt
	.p2align	2
_net_setsockopt:                        ; @net_setsockopt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x23, x4
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	bl	_get_socket
	cbz	x0, LBB0_7
; %bb.1:
	cbz	x19, LBB0_8
; %bb.2:
	mov	x20, x0
	cmp	w22, #138
	b.eq	LBB0_10
; %bb.3:
	cmp	w22, #137
	b.eq	LBB0_12
; %bb.4:
	cmp	w22, #134
	b.ne	LBB0_29
; %bb.5:
	sub	w8, w21, #130
	cmp	w8, #3
	b.hi	LBB0_29
; %bb.6:
	cmp	w23, #4
	b.lo	LBB0_13
	b	LBB0_18
LBB0_7:
Lloh0:
	adrp	x8, _ENOTSOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOTSOCK@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	x8, [x8]
	neg	x0, x8
	b	LBB0_39
LBB0_10:
	sub	w8, w21, #135
	cmp	w8, #1
	b.hi	LBB0_29
; %bb.11:
	cmp	w23, #4
	b.lo	LBB0_13
	b	LBB0_20
LBB0_12:
	cmp	w23, #4
	b.hs	LBB0_23
LBB0_13:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cbnz	x8, LBB0_30
LBB0_14:
	cmp	w22, #138
	b.eq	LBB0_20
; %bb.15:
	cmp	w22, #137
	b.eq	LBB0_25
; %bb.16:
	cmp	w22, #134
	b.ne	LBB0_38
; %bb.17:
	sub	w8, w21, #130
	cmp	w8, #3
	b.hi	LBB0_38
LBB0_18:
	ldr	w8, [x19]
	cbz	w8, LBB0_32
; %bb.19:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w9, [x8]
	orr	w9, w9, w21
	b	LBB0_33
LBB0_20:
	cmp	w21, #136
	b.eq	LBB0_31
; %bb.21:
	cmp	w21, #135
	b.ne	LBB0_38
; %bb.22:
	ldrsw	x1, [x19]
	ldr	x8, [x20]
	ldr	x8, [x8]
	str	x1, [x8, #24]
	b	LBB0_36
LBB0_23:
	ldr	x8, [x20]
	ldr	w8, [x8, #8]
Lloh7:
	adrp	x9, _NETCONN_TCP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NETCONN_TCP@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_38
; %bb.24:
	and	w8, w21, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_29
LBB0_25:
	cmp	w21, #129
	b.eq	LBB0_35
; %bb.26:
	cmp	w21, #128
	b.ne	LBB0_38
; %bb.27:
	ldr	w9, [x19]
Lloh10:
	adrp	x8, _TF_NODELAY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TF_NODELAY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cbz	w9, LBB0_40
; %bb.28:
	ldr	x9, [x20]
	ldr	x9, [x9]
	ldr	w10, [x9, #8]
	orr	w8, w10, w8
	str	w8, [x9, #8]
	b	LBB0_34
LBB0_29:
Lloh13:
	adrp	x8, _SOCKETS_DEBUG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SOCKETS_DEBUG@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	sxtw	x1, w21
	bl	_LWIP_DEBUGF
Lloh16:
	adrp	x8, _ENOPROTOOPT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOPROTOOPT@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cbz	x8, LBB0_14
LBB0_30:
	mov	x0, #-1
	b	LBB0_39
LBB0_31:
	ldrsw	x1, [x19]
	ldr	x8, [x20]
	ldr	x8, [x8]
	str	x1, [x8, #16]
	b	LBB0_36
LBB0_32:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w9, [x8]
	bic	w9, w9, w21
LBB0_33:
	str	w9, [x8]
LBB0_34:
Lloh19:
	adrp	x8, _SOCKETS_DEBUG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SOCKETS_DEBUG@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	w8, [x19]
Lloh22:
	adrp	x9, l_.str.5@PAGE
Lloh23:
	add	x9, x9, l_.str.5@PAGEOFF
Lloh24:
	adrp	x10, l_.str.6@PAGE
Lloh25:
	add	x10, x10, l_.str.6@PAGEOFF
	cmp	w8, #0
	csel	x1, x10, x9, eq
	b	LBB0_37
LBB0_35:
	ldrsw	x1, [x19]
	ldr	x8, [x20]
	ldr	x8, [x8]
	str	w1, [x8, #4]
LBB0_36:
Lloh26:
	adrp	x8, _SOCKETS_DEBUG@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SOCKETS_DEBUG@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
LBB0_37:
	bl	_LWIP_DEBUGF
LBB0_38:
	mov	x0, #0
LBB0_39:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_40:
	ldr	x9, [x20]
	ldr	x9, [x9]
	ldr	w10, [x9, #8]
	bic	w8, w10, w8
	str	w8, [x9, #8]
	b	LBB0_34
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTSOCK,8,3                   ; @ENOTSOCK
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_SOCKETS_DEBUG,4,2              ; @SOCKETS_DEBUG
	.comm	_ENOPROTOOPT,8,3                ; @ENOPROTOOPT
	.comm	_NETCONN_TCP,4,2                ; @NETCONN_TCP
	.section	__TEXT,__cstring,cstring_literals
l_.str.5:                               ; @.str.5
	.asciz	"on"

l_.str.6:                               ; @.str.6
	.asciz	"off"

	.comm	_TF_NODELAY,4,2                 ; @TF_NODELAY
.subsections_via_symbols
