	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intercept_socket
_intercept_socket:                      ## @intercept_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	%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, -52(%rbp)                 ## 4-byte Spill
	movq	_config_cnt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %eax
	testl	%edi, %edi
	je	LBB0_21
## %bb.1:
	testl	%edx, %edx
	jne	LBB0_7
## %bb.2:
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	%esi, (%rcx)
	jne	LBB0_7
## %bb.5:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %edx
LBB0_7:
	testl	%edi, %edi
	jle	LBB0_20
## %bb.8:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	movq	_config@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	incq	%r15
	movq	_config_cnt@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$16, %r12
	cmpq	%rax, %r15
	jge	LBB0_20
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	12(%rax,%r12), %ebx
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_program_invocation_short_name@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_strlen
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_strncasecmp
	testl	%eax, %eax
	jne	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r13), %rax
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	(%rax,%r12), %ecx
	testl	%ecx, %ecx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	-52(%rbp), %ecx                 ## 4-byte Folded Reload
	jne	LBB0_9
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	4(%rax,%r12), %ecx
	testl	%ecx, %ecx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	jne	LBB0_9
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	8(%rax,%r12), %eax
	testl	%eax, %eax
	je	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_9
LBB0_22:
	movl	$1, %eax
	jmp	LBB0_21
LBB0_20:
	xorl	%eax, %eax
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_config_cnt,4,2                 ## @config_cnt
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
	.comm	_config,8,3                     ## @config
	.comm	_program_invocation_short_name,4,2 ## @program_invocation_short_name
	.no_dead_strip	_intercept_socket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intercept_socket
_intercept_socket:                      ; @intercept_socket
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x24, _config_cnt@GOTPAGE
Lloh1:
	ldr	x24, [x24, _config_cnt@GOTPAGEOFF]
	ldr	w8, [x24]
	cbz	w8, LBB0_11
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	cbz	w2, LBB0_12
; %bb.2:
	cmp	w8, #1
	b.lt	LBB0_15
LBB0_3:
	mov	x25, #0
	mov	x26, #0
Lloh2:
	adrp	x27, _config@GOTPAGE
Lloh3:
	ldr	x27, [x27, _config@GOTPAGEOFF]
Lloh4:
	adrp	x28, _program_invocation_short_name@GOTPAGE
Lloh5:
	ldr	x28, [x28, _program_invocation_short_name@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x24]
	add	x25, x25, #16
	cmp	x26, x8
	b.ge	LBB0_15
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27]
	add	x9, x8, x25
	ldr	w22, [x9, #12]
	cbz	w22, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w23, [x28]
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_strncasecmp
	cbnz	w0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x27]
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x8, x25]
	cmp	w9, #0
	ccmp	w9, w20, #4, ne
	b.ne	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, x25
	ldr	w9, [x8, #4]
	cmp	w9, #0
	ccmp	w9, w19, #4, ne
	b.ne	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x8, #8]
	cmp	w8, #0
	ccmp	w8, w21, #4, ne
	b.ne	LBB0_4
LBB0_11:
	mov	w0, #1
	b	LBB0_16
LBB0_12:
Lloh6:
	adrp	x9, _SOCK_STREAM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SOCK_STREAM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w9, w19
	b.ne	LBB0_14
; %bb.13:
Lloh9:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x9]
	cmp	w8, #1
	b.ge	LBB0_3
	b	LBB0_15
LBB0_14:
Lloh12:
	adrp	x9, _SOCK_DGRAM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SOCK_DGRAM@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _IPPROTO_UDP@GOTPAGE
Lloh16:
	ldr	x10, [x10, _IPPROTO_UDP@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cmp	w9, w19
	csel	w21, w10, wzr, eq
	cmp	w8, #1
	b.ge	LBB0_3
LBB0_15:
	mov	w0, #0
LBB0_16:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_config_cnt,4,2                 ; @config_cnt
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
	.comm	_config,8,3                     ; @config
	.comm	_program_invocation_short_name,4,2 ; @program_invocation_short_name
	.no_dead_strip	_intercept_socket
.subsections_via_symbols
