	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_ports
_check_ports:                           ## @check_ports
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ports@GOTPCREL(%rip), %rax
	movl	$1, %r14d
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.1:
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	_AF_INET@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	cmpq	%rcx, %rax
	je	LBB0_3
## %bb.2:
	movq	_AF_INET6@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_18
LBB0_3:
	movq	16(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	cmpq	%rcx, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_sstosin
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	callq	_sstosin6
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rax), %edi
	callq	_ntohs
	movl	%eax, %edi
	callq	_CHK_PORT
	testq	%rax, %rax
	jne	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %rax
	movq	(%r12), %rcx
	jmp	LBB0_4
LBB0_10:
	movq	8(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_17
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	cmpq	(%r12), %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	callq	_sstosin
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	callq	_sstosin6
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rax), %edi
	callq	_ntohs
	movl	%eax, %edi
	callq	_CHK_PORT
	testq	%rax, %rax
	jne	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_11
LBB0_17:
	xorl	%r14d, %r14d
LBB0_18:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ports,8,3                      ## @ports
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.no_dead_strip	_check_ports
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_ports
_check_ports:                           ; @check_ports
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _ports@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ports@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh3:
	adrp	x21, _AF_INET@GOTPAGE
Lloh4:
	ldr	x21, [x21, _AF_INET@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh5:
	adrp	x10, _AF_INET6@GOTPAGE
Lloh6:
	ldr	x10, [x10, _AF_INET6@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_16
; %bb.2:
	ldr	x20, [x19, #16]
	cbz	x20, LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_sstosin
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_sstosin6
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x0]
	bl	_ntohs
	bl	_CHK_PORT
	cbnz	x0, LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x20, [x20, #8]
	cbz	x20, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x21]
	b	LBB0_3
LBB0_9:
	ldr	x20, [x19, #8]
	cbz	x20, LBB0_15
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x9, [x21]
	mov	x0, x20
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	bl	_sstosin
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	bl	_sstosin6
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x0]
	bl	_ntohs
	bl	_CHK_PORT
	cbnz	x0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x20, [x20, #8]
	cbnz	x20, LBB0_10
LBB0_15:
	mov	w0, #0
	b	LBB0_17
LBB0_16:
	mov	w0, #1
LBB0_17:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ports,8,3                      ; @ports
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.no_dead_strip	_check_ports
.subsections_via_symbols
