	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_setsockopt                 ## -- Begin function sys_setsockopt
	.p2align	4, 0x90
_sys_setsockopt:                        ## @sys_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movl	%esi, %r15d
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	movl	%r14d, %r9d
	callq	_STRACE
	movl	%ebx, %edi
	callq	_sock_getfd
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_user_read
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	__EFAULT@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r12d
	jmp	LBB0_10
LBB0_4:
	movq	__EBADF@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_12
LBB0_5:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_IPPROTO_ICMPV6@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpl	%r15d, (%rax)
	jne	LBB0_8
## %bb.6:
	movq	_ICMP6_FILTER_@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	je	LBB0_10
LBB0_8:
	movq	_IPPROTO_IP@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_14
## %bb.9:
	movq	_IP_MTU_DISCOVER_@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_14
LBB0_10:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_11:
	movq	%r15, %rsp
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.13:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	_sock_opt_to_real
	testl	%eax, %eax
	js	LBB0_19
## %bb.15:
	movl	%eax, %r13d
	movl	%r15d, %edi
	callq	_sock_level_to_real
	testl	%eax, %eax
	js	LBB0_19
## %bb.16:
	testl	%r13d, %r13d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_11
## %bb.17:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edi
	movl	%eax, %esi
	movl	%r13d, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%r14d, %r8d
	callq	_setsockopt
	testl	%eax, %eax
	jns	LBB0_11
## %bb.18:
	xorl	%eax, %eax
	callq	_errno_map
	movl	%eax, %r12d
	jmp	LBB0_11
LBB0_19:
	movq	__EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setsockopt(%d, %d, %d, 0x%x, %d)"

	.comm	__EBADF,4,2                     ## @_EBADF
	.comm	__EFAULT,4,2                    ## @_EFAULT
	.comm	_IPPROTO_ICMPV6,4,2             ## @IPPROTO_ICMPV6
	.comm	_ICMP6_FILTER_,4,2              ## @ICMP6_FILTER_
	.comm	_IPPROTO_IP,4,2                 ## @IPPROTO_IP
	.comm	_IP_MTU_DISCOVER_,4,2           ## @IP_MTU_DISCOVER_
	.comm	__EINVAL,4,2                    ## @_EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_setsockopt                 ; -- Begin function sys_setsockopt
	.p2align	2
_sys_setsockopt:                        ; @sys_setsockopt
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x19, x4
	mov	x24, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	mov	x4, x24
	mov	x5, x19
	bl	_STRACE
	mov	x0, x21
	bl	_sock_getfd
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	mov	x25, sp
	mov	w8, w19
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	mov	x0, x24
	mov	x1, x23
	mov	x2, x19
	bl	_user_read
	cbz	x0, LBB0_5
; %bb.2:
Lloh7:
	adrp	x8, __EFAULT@GOTPAGE
Lloh8:
	ldr	x8, [x8, __EFAULT@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_4:
Lloh9:
	adrp	x8, __EBADF@GOTPAGE
Lloh10:
	ldr	x8, [x8, __EBADF@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_5:
Lloh12:
	adrp	x8, _IPPROTO_ICMPV6@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IPPROTO_ICMPV6@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _ICMP6_FILTER_@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ICMP6_FILTER_@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, w20
	ccmp	w9, w22, #0, eq
	b.eq	LBB0_11
; %bb.6:
Lloh18:
	adrp	x8, _IPPROTO_IP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IPPROTO_IP@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _IP_MTU_DISCOVER_@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IP_MTU_DISCOVER_@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	w8, w20
	ccmp	w9, w22, #0, eq
	b.eq	LBB0_11
; %bb.7:
	mov	x0, x22
	mov	x1, x20
	bl	_sock_opt_to_real
	tbnz	w0, #31, LBB0_15
; %bb.8:
	mov	x22, x0
	mov	x0, x20
	bl	_sock_level_to_real
	tbnz	w0, #31, LBB0_15
; %bb.9:
	cbz	w22, LBB0_11
; %bb.10:
	mov	x1, x0
	ldr	w0, [x21]
	mov	x2, x22
	mov	x3, x23
	mov	x4, x19
	bl	_setsockopt
	tbnz	w0, #31, LBB0_16
LBB0_11:
	mov	w0, #0
LBB0_12:
	mov	sp, x25
LBB0_13:
	ldur	x8, [x29, #-72]
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_17
; %bb.14:
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh27:
	adrp	x8, __EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, __EINVAL@GOTPAGEOFF]
	b	LBB0_3
LBB0_16:
	bl	_errno_map
	b	LBB0_12
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setsockopt(%d, %d, %d, 0x%x, %d)"

	.comm	__EBADF,4,2                     ; @_EBADF
	.comm	__EFAULT,4,2                    ; @_EFAULT
	.comm	_IPPROTO_ICMPV6,4,2             ; @IPPROTO_ICMPV6
	.comm	_ICMP6_FILTER_,4,2              ; @ICMP6_FILTER_
	.comm	_IPPROTO_IP,4,2                 ; @IPPROTO_IP
	.comm	_IP_MTU_DISCOVER_,4,2           ; @IP_MTU_DISCOVER_
	.comm	__EINVAL,4,2                    ; @_EINVAL
.subsections_via_symbols
