	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_limit_gdb_socket               ## -- Begin function limit_gdb_socket
	.p2align	4, 0x90
_limit_gdb_socket:                      ## @limit_gdb_socket
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_FIONREAD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_CAP_ACCEPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CAP_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CAP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_CAP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_CAP_SETSOCKOPT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_CAP_IOCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	leaq	-36(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_cap_rights_init
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_caph_rights_limit
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_errx
LBB0_2:
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_nitems
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_caph_ioctls_limit
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_errx
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FIONREAD,8,3                   ## @FIONREAD
	.comm	_CAP_ACCEPT,4,2                 ## @CAP_ACCEPT
	.comm	_CAP_EVENT,4,2                  ## @CAP_EVENT
	.comm	_CAP_READ,4,2                   ## @CAP_READ
	.comm	_CAP_WRITE,4,2                  ## @CAP_WRITE
	.comm	_CAP_SETSOCKOPT,4,2             ## @CAP_SETSOCKOPT
	.comm	_CAP_IOCTL,4,2                  ## @CAP_IOCTL
	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to apply rights for sandbox"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_limit_gdb_socket               ; -- Begin function limit_gdb_socket
	.p2align	2
_limit_gdb_socket:                      ; @limit_gdb_socket
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	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]
Lloh3:
	adrp	x8, _FIONREAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FIONREAD@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp, #16]
Lloh6:
	adrp	x8, _CAP_ACCEPT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAP_ACCEPT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _CAP_EVENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CAP_EVENT@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _CAP_READ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CAP_READ@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x8, _CAP_WRITE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CAP_WRITE@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
Lloh18:
	adrp	x8, _CAP_SETSOCKOPT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CAP_SETSOCKOPT@GOTPAGEOFF]
Lloh20:
	ldr	w5, [x8]
Lloh21:
	adrp	x8, _CAP_IOCTL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CAP_IOCTL@GOTPAGEOFF]
Lloh23:
	ldr	w6, [x8]
	add	x0, sp, #12
	bl	_cap_rights_init
	add	x1, sp, #12
	mov	x0, x19
	bl	_caph_rights_limit
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh24:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	bl	_errx
LBB0_2:
	add	x0, sp, #16
	bl	_nitems
	mov	x2, x0
	add	x1, sp, #16
	mov	x0, x19
	bl	_caph_ioctls_limit
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh29:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	bl	_errx
LBB0_4:
	ldr	x8, [sp, #24]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_FIONREAD,8,3                   ; @FIONREAD
	.comm	_CAP_ACCEPT,4,2                 ; @CAP_ACCEPT
	.comm	_CAP_EVENT,4,2                  ; @CAP_EVENT
	.comm	_CAP_READ,4,2                   ; @CAP_READ
	.comm	_CAP_WRITE,4,2                  ; @CAP_WRITE
	.comm	_CAP_SETSOCKOPT,4,2             ; @CAP_SETSOCKOPT
	.comm	_CAP_IOCTL,4,2                  ; @CAP_IOCTL
	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to apply rights for sandbox"

.subsections_via_symbols
